Skip to content

Commit

Permalink
use variant class as well when generating the oncokb query id (fix cB…
Browse files Browse the repository at this point in the history
  • Loading branch information
onursumer committed Mar 3, 2022
1 parent 769a7ac commit 9a8c599
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions packages/cbioportal-utils/src/oncokb/OncoKbUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down Expand Up @@ -267,7 +268,8 @@ export function generateAnnotateStructuralVariantQueryFromGenes(
id: generateQueryStructuralVariantId(
site1EntrezGeneId,
site2EntrezGeneId,
tumorType
tumorType,
structuralVariantType
),
geneA: {
entrezGeneId: site1EntrezGeneId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/resultsView/ResultsViewPageStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5365,7 +5365,8 @@ export class ResultsViewPageStore
cancerTypeForOncoKb(
structuralVariant.uniqueSampleKey,
{}
)
),
structuralVariant.variantClass.toUpperCase() as any
);
return structuralVariantOncoKbDataForOncoprint.indicatorMap![
id
Expand Down

0 comments on commit 9a8c599

Please sign in to comment.