Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Genome Nexus API model and reVUE reference to fit new model #4919

Merged
merged 5 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading