Skip to content

Commit

Permalink
update mutation mapper version, left align gnomad column
Browse files Browse the repository at this point in the history
  • Loading branch information
leexgh committed Jan 16, 2020
1 parent bcee2ee commit 74f424c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
"react-markdown": "^3.4.1",
"react-mfb": "^0.6.0",
"react-motion": "^0.4.7",
"react-mutation-mapper": "^0.4.2",
"react-mutation-mapper": "^0.4.3",
"react-overlays": "0.7.4",
"react-portal": "^4.2.0",
"react-rangeslider": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/mutationTable/MutationTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ export default class MutationTable<P extends IMutationTableProps> extends React.
Overall population allele frequency is shown. Hover over a frequency to see the frequency for each specific population.</span>),
defaultSortDirection: "desc",
visible: false,
align: "right"
align: "left"
};

this._columns[MutationTableColumnType.CLINVAR] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,21 @@ 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 {

public static renderFunction(data: Mutation[],
genomeNexusMyVariantInfoCache: GenomeNexusMyVariantInfoCache | undefined) {
const genomeNexusCacheData = GnomadColumnFormatter.getGenomeNexusDataFromCache(data, genomeNexusMyVariantInfoCache);
return (
<div className={generalStyles["integer-data"]}>
<span data-test='gnomad-column' data-test2={data[0].sampleId}>{GnomadColumnFormatter.getGnomadDataViz(genomeNexusCacheData)}</span>
</div>
<span data-test='gnomad-column' data-test2={data[0].sampleId}>{GnomadColumnFormatter.getGnomadDataViz(genomeNexusCacheData)}</span>
);
}

Expand Down

0 comments on commit 74f424c

Please sign in to comment.