Skip to content

Commit

Permalink
feat(fmg): default to ttest (#3919)
Browse files Browse the repository at this point in the history
* branch init

* feat(fmg): default to ttest

Co-authored-by: Seve Badajoz <[email protected]>
  • Loading branch information
seve and Seve Badajoz authored Jan 11, 2023
1 parent 0befc6e commit 632838f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/common/queries/wheresMyGene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ export async function fetchMarkerGenes({
cellTypeID,
organismID,
tissueID,
test = "binomtest",
test = "ttest",
}: FetchMarkerGeneParams): Promise<MarkerGeneResponse> {
const url = API_URL + API.WMG_MARKER_GENES;
const body = generateMarkerGeneBody(cellTypeID, tissueID, organismID, test);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ function CellInfoSideBar({
tissueName,
}: CellInfoBarProps): JSX.Element | null {
const urlParams = new URLSearchParams(window.location.search);
let testType: "ttest" | undefined = undefined;
let testType: "binomtest" | undefined = undefined;

if (urlParams.get("test") === "ttest") {
testType = "ttest";
if (urlParams.get("test") === "binomtest") {
testType = "binomtest";
}
const { isLoading, data } = useMarkerGenes({
cellTypeID: cellInfoCellType.cellType.id,
Expand Down

0 comments on commit 632838f

Please sign in to comment.