Skip to content

Commit

Permalink
Update Genome Nexus API model and reVUE reference to fit new model (#…
Browse files Browse the repository at this point in the history
…4919)

* Update Genome Nexus API model
* Update revue reference to fit new model
  • Loading branch information
leexgh authored Jun 6, 2024
1 parent 20cf5ad commit 2e1a275
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3800,6 +3800,18 @@
}
}
},
"VueReference": {
"type": "object",
"properties": {
"pubmedId": {
"type": "integer",
"format": "int32"
},
"referenceText": {
"type": "string"
}
}
},
"Vues": {
"type": "object",
"properties": {
Expand All @@ -3824,19 +3836,24 @@
"hugoGeneSymbol": {
"type": "string"
},
"pubmedId": {
"type": "integer",
"format": "int32"
},
"referenceText": {
"mutationOrigin": {
"type": "string"
},
"references": {
"type": "array",
"items": {
"$ref": "#/definitions/VueReference"
}
},
"revisedProteinEffect": {
"type": "string"
},
"revisedVariantClassification": {
"type": "string"
},
"revisedVariantClassificationStandard": {
"type": "string"
},
"transcriptId": {
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,12 @@ export type Version = {

'version': string

};
export type VueReference = {
'pubmedId': number

'referenceText': string

};
export type Vues = {
'comment': string
Expand All @@ -1076,14 +1082,16 @@ export type Vues = {

'hugoGeneSymbol': string

'pubmedId': number
'mutationOrigin': string

'referenceText': string
'references': Array < VueReference >

'revisedProteinEffect': string

'revisedVariantClassification': string

'revisedVariantClassificationStandard': string

'transcriptId': string

'variant': string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2370,6 +2370,18 @@
}
}
},
"VueReference": {
"type": "object",
"properties": {
"pubmedId": {
"type": "integer",
"format": "int32"
},
"referenceText": {
"type": "string"
}
}
},
"Vues": {
"type": "object",
"properties": {
Expand All @@ -2394,19 +2406,24 @@
"hugoGeneSymbol": {
"type": "string"
},
"pubmedId": {
"type": "integer",
"format": "int32"
},
"referenceText": {
"mutationOrigin": {
"type": "string"
},
"references": {
"type": "array",
"items": {
"$ref": "#/definitions/VueReference"
}
},
"revisedProteinEffect": {
"type": "string"
},
"revisedVariantClassification": {
"type": "string"
},
"revisedVariantClassificationStandard": {
"type": "string"
},
"transcriptId": {
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,12 @@ export type Vcf = {

'ref': string

};
export type VueReference = {
'pubmedId': number

'referenceText': string

};
export type Vues = {
'comment': string
Expand All @@ -630,14 +636,16 @@ export type Vues = {

'hugoGeneSymbol': string

'pubmedId': number
'mutationOrigin': string

'referenceText': string
'references': Array < VueReference >

'revisedProteinEffect': string

'revisedVariantClassification': string

'revisedVariantClassificationStandard': string

'transcriptId': string

'variant': string
Expand Down
21 changes: 12 additions & 9 deletions packages/react-mutation-mapper/src/component/revue/Revue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,18 @@ export const RevueTooltipContent: React.FunctionComponent<{
</a>
}
{` (`}
{
<a
href={`https://pubmed.ncbi.nlm.nih.gov/${props.vue.pubmedId}/`}
rel="noopener noreferrer"
target="_blank"
>
{props.vue.referenceText}
</a>
}
{props.vue.references.map((reference, index) => (
<span key={index}>
<a
href={`https://pubmed.ncbi.nlm.nih.gov/${reference.pubmedId}/`}
rel="noopener noreferrer"
target="_blank"
>
{reference.referenceText}
</a>
{index < props.vue.references.length - 1 && ';'}
</span>
))}
{`): `}
<strong>{props.vue.revisedProteinEffect}</strong>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,18 @@ export default class AnnotationColumnFormatter {
annotationDownloadContent.push(
`reVUE: ${
annotationData.vue
? `${annotationData.vue.comment},PubmedId:${annotationData.vue.pubmedId},PredictedEffect:${annotationData.vue.defaultEffect},ExperimentallyValidatedEffect:${annotationData.vue.revisedVariantClassification},RevisedProteinEffect:${annotationData.vue.revisedProteinEffect}`
? `${
annotationData.vue.comment
},PubmedId:${annotationData.vue.references
.map(reference => reference.pubmedId)
.join(';')},PredictedEffect:${
annotationData.vue.defaultEffect
},ExperimentallyValidatedEffect:${
annotationData.vue
.revisedVariantClassificationStandard
},RevisedProteinEffect:${
annotationData.vue.revisedProteinEffect
}`
: 'no'
}`
);
Expand Down

0 comments on commit 2e1a275

Please sign in to comment.