diff --git a/frontend/e2e/phenotype-explorer.test.ts b/frontend/e2e/phenotype-explorer.test.ts index a745e29d8..be5d9b440 100644 --- a/frontend/e2e/phenotype-explorer.test.ts +++ b/frontend/e2e/phenotype-explorer.test.ts @@ -21,7 +21,6 @@ test("Populating example works", async ({ page }) => { }); test("Mode switching works", async ({ page }) => { - test.skip(true, "Commented out set-to-taxon mode until implemented in API"); await page.goto("/explore#phenotype-explorer"); @@ -54,7 +53,7 @@ test("Mode switching works", async ({ page }) => { */ test("Phenotype set vs gene/disease works", async ({ page }) => { - test.skip(true, "Feature not implemented yet"); + test.skip(true, "API endpoint not implemented yet"); await page.goto("/explore#phenotype-explorer"); diff --git a/frontend/src/api/phenotype-explorer.ts b/frontend/src/api/phenotype-explorer.ts index b318338d0..700585b1e 100644 --- a/frontend/src/api/phenotype-explorer.ts +++ b/frontend/src/api/phenotype-explorer.ts @@ -1,6 +1,5 @@ import type { AssociationResults, - // SearchResults, TermSetPairwiseSimilarity, } from "@/api/model"; import type { Options, OptionsFunc } from "@/components/AppSelectTags.vue"; @@ -97,7 +96,7 @@ type _Comparison = { /** compare a set of phenotypes to another set of phenotypes */ export const compareSetToSet = async ( aPhenotypes: string[], - bPhenotypes: string[], + bPhenotypes: string[] ) => { /** make request options */ const headers = new Headers(); @@ -124,7 +123,7 @@ export const compareSetToSet = async ( target: match.match_target, target_label: match.match_target_label, score: match.score, - }), + }) ); matches.sort((a, b) => b.score - a.score); @@ -135,7 +134,7 @@ export const compareSetToSet = async ( /** compare a set of phenotypes to a gene or disease taxon id */ export const compareSetToTaxon = async ( phenotypes: string[], - taxon: string, + taxon: string ): Promise => { /** endpoint settings */ const params = {