diff --git a/packages/react-mutation-mapper/src/component/gnomad/GnomadFrequency.tsx b/packages/react-mutation-mapper/src/component/gnomad/GnomadFrequency.tsx index d7d1aaf1bdf..b1330513001 100644 --- a/packages/react-mutation-mapper/src/component/gnomad/GnomadFrequency.tsx +++ b/packages/react-mutation-mapper/src/component/gnomad/GnomadFrequency.tsx @@ -148,8 +148,8 @@ export default class GnomadFrequency extends React.Component {result['Total'].alleleFrequency.toLocaleString(undefined, { - maximumSignificantDigits: 4, - minimumSignificantDigits: 1, + maximumSignificantDigits: 2, + minimumSignificantDigits: 2, })} ); diff --git a/packages/react-mutation-mapper/src/component/gnomad/GnomadFrequencyTable.tsx b/packages/react-mutation-mapper/src/component/gnomad/GnomadFrequencyTable.tsx index d1bd665a170..715763a4193 100644 --- a/packages/react-mutation-mapper/src/component/gnomad/GnomadFrequencyTable.tsx +++ b/packages/react-mutation-mapper/src/component/gnomad/GnomadFrequencyTable.tsx @@ -23,8 +23,8 @@ export function frequencyOutput(frequency: number) { return ( {frequency.toLocaleString(undefined, { - maximumSignificantDigits: 4, - minimumSignificantDigits: 1, + maximumSignificantDigits: 2, + minimumSignificantDigits: 2, })} ); diff --git a/src/shared/components/mutationTable/MutationTable.tsx b/src/shared/components/mutationTable/MutationTable.tsx index 63989c5e78e..583fe66d68c 100644 --- a/src/shared/components/mutationTable/MutationTable.tsx +++ b/src/shared/components/mutationTable/MutationTable.tsx @@ -597,7 +597,7 @@ export default class MutationTable

extends React. Overall population allele frequency is shown. Hover over a frequency to see the frequency for each specific population.), defaultSortDirection: "desc", visible: false, - align: "right" + align: "left" }; this._columns[MutationTableColumnType.CLINVAR] = { diff --git a/src/shared/components/mutationTable/column/GnomadColumnFormatter.tsx b/src/shared/components/mutationTable/column/GnomadColumnFormatter.tsx index e0085ed6705..594d165d8f6 100644 --- a/src/shared/components/mutationTable/column/GnomadColumnFormatter.tsx +++ b/src/shared/components/mutationTable/column/GnomadColumnFormatter.tsx @@ -3,20 +3,13 @@ import {Circle} from "better-react-spinkit"; import 'rc-tooltip/assets/bootstrap_white.css'; import {Mutation} from "shared/api/generated/CBioPortalAPI"; import { - DefaultTooltip, TableCellStatusIndicator, TableCellStatus, MyVariantInfo, - MyVariantInfoAnnotation, - Gnomad, - AlleleCount, - AlleleNumber, - Homozygotes, - AlleleFrequency + MyVariantInfoAnnotation } from 'cbioportal-frontend-commons'; import GenomeNexusMyVariantInfoCache, { GenomeNexusCacheDataType } from "shared/cache/GenomeNexusMyVariantInfoCache"; import {calculateGnomadAllelFrequency, GnomadFrequency, gnomadSortValue} from "react-mutation-mapper"; -import generalStyles from "./styles.module.scss"; export default class GnomadColumnFormatter { @@ -24,9 +17,7 @@ export default class GnomadColumnFormatter { genomeNexusMyVariantInfoCache: GenomeNexusMyVariantInfoCache | undefined) { const genomeNexusCacheData = GnomadColumnFormatter.getGenomeNexusDataFromCache(data, genomeNexusMyVariantInfoCache); return ( -

- {GnomadColumnFormatter.getGnomadDataViz(genomeNexusCacheData)} -
+ {GnomadColumnFormatter.getGnomadDataViz(genomeNexusCacheData)} ); }