Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading