diff --git a/app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/GTFStep/hooks/UseUCSCFiles/utils.ts b/app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/GTFStep/hooks/UseUCSCFiles/utils.ts index af6828c73..39b4f1e45 100644 --- a/app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/GTFStep/hooks/UseUCSCFiles/utils.ts +++ b/app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/GTFStep/hooks/UseUCSCFiles/utils.ts @@ -17,8 +17,8 @@ export function parseUCSCFilesResult(response: Result): string[] { /** * Filters the GTF file URLs from the UCSC files API response. * @param url - URL. - * @returns True if the URL ends with ".gtf.gz". + * @returns True if the URL lives under the UCSC genes directory and ends with ".gtf.gz". */ function filterGFTFile(url: string): boolean { - return url.endsWith(".gtf.gz"); + return url.includes("/genes/") && url.endsWith(".gtf.gz"); } diff --git a/app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/GTFStep/utils.ts b/app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/GTFStep/utils.ts index e5ce7daa1..5fc06ca69 100644 --- a/app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/GTFStep/utils.ts +++ b/app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/GTFStep/utils.ts @@ -48,6 +48,7 @@ export const getGeneModelLabel = (url: string): string => { [/\.ncbiRefSeq\./, "NCBI RefSeq"], [/\.ncbiGene\./, "NCBI Gene"], [/\.xenoRefGene\./, "UCSC Xeno RefGene"], + [/veupathGenes\./i, "VEuPathDB"], ]; for (const [pattern, label] of labelPatterns) {