Skip to content

Commit

Permalink
Support automatically importing gzip'd GTF files, which occur in the …
Browse files Browse the repository at this point in the history
…recent annotation files (e.g. 2024)
  • Loading branch information
Nick-Eagles committed Oct 11, 2024
1 parent ed85b26 commit e2001c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/read10xVisiumWrapper.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ read10xVisiumWrapper <- function(
web[grep('--transcriptome=', web)]
)
}
reference_gtf <- file.path(reference_path, "genes", "genes.gtf")
reference_gtf <- list.files(
file.path(reference_path, "genes"), "^genes\\.gtf(\\.gz)?$",
full.names = TRUE
)
}
reference_gtf <- reference_gtf[file.exists(reference_gtf)]
if (length(reference_gtf) > 1) {
Expand Down

0 comments on commit e2001c6

Please sign in to comment.