goci icon indicating copy to clipboard operation
goci copied to clipboard

Unexpected behaviour in "Download associations" button on Gene page

Open eks-ebi opened this issue 1 month ago • 0 comments

The "Download associations" button should return only exact matches for gene names.

Expected behaviour

The "Download associations" button in the Search UI is supposed to generate and download a spreadsheet showing a subset of the full Catalog download that matches the entity (study, gene etc.) shown on the current page.

e.g. For the page https://www.ebi.ac.uk/gwas/genes/BOK-AS1, the "Download associations" button should output a spreadsheet containing all associations mapped to the BOK-AS1 gene. It should have the same number of rows, as the Associations table on the BOK-AS1 page (currently n=29).

BUG

Currently, the "Download associations" button for the BOK-AS1 outputs a file with many incorrect additional rows (n=29,972).

I think this is because it is actually searching for "BOK" and "AS1" separately, and returning any incorrect rows mapped to: a) the gene "BOK" b) any other mapped genes that end in "-AS1" c) possibly other incorrect matches

eks-ebi avatar Jan 09 '25 10:01 eks-ebi