Skip to content

Commit

Permalink
add oncokb resistance level info for annotation column download
Browse files Browse the repository at this point in the history
  • Loading branch information
onursumer committed Nov 29, 2021
1 parent 3e69f9c commit f1511a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/react-mutation-mapper/src/component/oncokb/OncoKB.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import autobind from 'autobind-decorator';
import { DefaultTooltip } from 'cbioportal-frontend-commons';
import { MobxCache, OncoKbCardDataType } from 'cbioportal-utils';
import { IndicatorQueryResp } from 'oncokb-ts-api-client';
import * as React from 'react';
Expand Down Expand Up @@ -63,11 +62,12 @@ export function download(
}

const oncogenic = indicator.oncogenic ? indicator.oncogenic : 'Unknown';
const level = indicator.highestSensitiveLevel
? indicator.highestSensitiveLevel.toLowerCase()
: 'level NA';
const sensitivityLevel =
indicator.highestSensitiveLevel?.toLowerCase() || 'level NA';
const resistanceLevel =
indicator.highestResistanceLevel?.toLowerCase() || 'resistance NA';

return `${oncogenic}, ${level}`;
return `${oncogenic}, ${sensitivityLevel}, ${resistanceLevel}`;
}

@observer
Expand Down

0 comments on commit f1511a8

Please sign in to comment.