Skip to content

Commit

Permalink
enable pheno explorer test
Browse files Browse the repository at this point in the history
  • Loading branch information
vincerubinetti committed Aug 22, 2023
1 parent ec7c514 commit b45227c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions frontend/e2e/phenotype-explorer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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");

Expand Down
7 changes: 3 additions & 4 deletions frontend/src/api/phenotype-explorer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type {
AssociationResults,
// SearchResults,
TermSetPairwiseSimilarity,
} from "@/api/model";
import type { Options, OptionsFunc } from "@/components/AppSelectTags.vue";
Expand Down Expand Up @@ -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();
Expand All @@ -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);
Expand All @@ -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<Comparison> => {
/** endpoint settings */
const params = {
Expand Down

0 comments on commit b45227c

Please sign in to comment.