Skip to content

Commit c7063b3

Browse files
committed
fix VAF heatmap header
1 parent 512fb4e commit c7063b3

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

src/shared/components/oncoprint/ResultsViewOncoprintUtils.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,22 @@ export function makeTrackGroupHeaders(
344344
} else {
345345
type = 'heatmap';
346346
}
347-
headerMap[nextEntry.trackGroupIndex] = makeTrackGroupHeader(
348-
type,
347+
348+
let headerText =
349349
molecularProfileIdToMolecularProfile[
350350
nextEntry.molecularProfileId
351-
].name,
351+
].name;
352+
353+
if (
354+
profile.molecularAlterationType ===
355+
AlterationTypeConstants.MUTATION_EXTENDED
356+
) {
357+
headerText = 'Variant Allele Frequency';
358+
}
359+
360+
headerMap[nextEntry.trackGroupIndex] = makeTrackGroupHeader(
361+
type,
362+
headerText,
352363
nextEntry.trackGroupIndex,
353364
onClickDeleteCallback,
354365
getClusteredTrackGroupIndex,

src/shared/components/oncoprint/controls/OncoprintControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ export default class OncoprintControls extends React.Component<
481481
profile.molecularAlterationType ===
482482
AlterationTypeConstants.MUTATION_EXTENDED
483483
) {
484-
label = `Variant Allele Frequency`;
484+
label = `Variant Allele Frequency in Selected Mutations Profile`;
485485
}
486486

487487
return {

0 commit comments

Comments
 (0)