diff --git a/packages/cbioportal-utils/src/oncokb/OncoKbUtils.ts b/packages/cbioportal-utils/src/oncokb/OncoKbUtils.ts index 44983bbfe04..a7a06ed4d37 100644 --- a/packages/cbioportal-utils/src/oncokb/OncoKbUtils.ts +++ b/packages/cbioportal-utils/src/oncokb/OncoKbUtils.ts @@ -79,9 +79,10 @@ export function generateQueryVariant( export function generateQueryStructuralVariantId( site1EntrezGeneId: number, site2EntrezGeneId: number | undefined, - tumorType: string | null + tumorType: string | null, + structuralVariantType: keyof typeof StructuralVariantType ): string { - let id = `${site1EntrezGeneId}_${site2EntrezGeneId}`; + let id = `${site1EntrezGeneId}_${site2EntrezGeneId}_${structuralVariantType}`; if (tumorType) { id = `${id}_${tumorType}`; } @@ -267,7 +268,8 @@ export function generateAnnotateStructuralVariantQueryFromGenes( id: generateQueryStructuralVariantId( site1EntrezGeneId, site2EntrezGeneId, - tumorType + tumorType, + structuralVariantType ), geneA: { entrezGeneId: site1EntrezGeneId, diff --git a/src/pages/patientView/structuralVariant/column/AnnotationColumnFormatter.tsx b/src/pages/patientView/structuralVariant/column/AnnotationColumnFormatter.tsx index e7c0d936e32..54418ef7a6c 100644 --- a/src/pages/patientView/structuralVariant/column/AnnotationColumnFormatter.tsx +++ b/src/pages/patientView/structuralVariant/column/AnnotationColumnFormatter.tsx @@ -165,7 +165,8 @@ export default class AnnotationColumnFormatter { structuralVariantData[0].site2EntrezGeneId, uniqueSampleKeyToTumorType![ structuralVariantData[0].uniqueSampleKey - ] + ], + structuralVariantData[0].variantClass.toUpperCase() as any ); if (oncoKbData.indicatorMap[id]) { diff --git a/src/pages/resultsView/ResultsViewPageStore.ts b/src/pages/resultsView/ResultsViewPageStore.ts index b4db1745299..25c05569352 100644 --- a/src/pages/resultsView/ResultsViewPageStore.ts +++ b/src/pages/resultsView/ResultsViewPageStore.ts @@ -5365,7 +5365,8 @@ export class ResultsViewPageStore cancerTypeForOncoKb( structuralVariant.uniqueSampleKey, {} - ) + ), + structuralVariant.variantClass.toUpperCase() as any ); return structuralVariantOncoKbDataForOncoprint.indicatorMap![ id