... | @@ -493,7 +493,10 @@ Cspec Registry API on SequenceVariantInterpretation will return all the specific |
... | @@ -493,7 +493,10 @@ Cspec Registry API on SequenceVariantInterpretation will return all the specific |
|
|
|
|
|
For instance, given below is an example where the above logic is applied to the end point mentioned in step(1) and get the svi id, gene and vcep.
|
|
For instance, given below is an example where the above logic is applied to the end point mentioned in step(1) and get the svi id, gene and vcep.
|
|
|
|
|
|
` let currentVersions = []
|
|
|
|
|
|
`
|
|
|
|
let currentVersions = []
|
|
|
|
|
|
const sviObj = resp.data.data
|
|
const sviObj = resp.data.data
|
|
for( const svi of sviObj ) {
|
|
for( const svi of sviObj ) {
|
|
if( svi.entContent.states ) {
|
|
if( svi.entContent.states ) {
|
... | @@ -505,10 +508,10 @@ For instance, given below is an example where the above logic is applied to the |
... | @@ -505,10 +508,10 @@ For instance, given below is an example where the above logic is applied to the |
|
} else {
|
|
} else {
|
|
// get the RuleSet, where the gene
|
|
// get the RuleSet, where the gene
|
|
const rs = svi.ld.RuleSet[0]
|
|
const rs = svi.ld.RuleSet[0]
|
|
const gene = rs.entContent.genes ? rs.entContent.genes[0].gene : ""
|
|
const gene = rs.entContent.genes ? rs.entContent.genes[0].gene : ""
|
|
const vcep = svi.ldFor.Organization[0].entContent.title
|
|
const vcep = svi.ldFor.Organization[0].entContent.title
|
|
currentVersions.push( { svi : svi.entId, gene: gene, vcep: vcep} )
|
|
currentVersions.push( { svi : svi.entId, gene: gene, vcep: vcep} )
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
... | | ... | |