Skip to content

Commit e2001c6

Browse files
committed
Support automatically importing gzip'd GTF files, which occur in the recent annotation files (e.g. 2024)
1 parent ed85b26 commit e2001c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/read10xVisiumWrapper.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ read10xVisiumWrapper <- function(
7272
web[grep('--transcriptome=', web)]
7373
)
7474
}
75-
reference_gtf <- file.path(reference_path, "genes", "genes.gtf")
75+
reference_gtf <- list.files(
76+
file.path(reference_path, "genes"), "^genes\\.gtf(\\.gz)?$",
77+
full.names = TRUE
78+
)
7679
}
7780
reference_gtf <- reference_gtf[file.exists(reference_gtf)]
7881
if (length(reference_gtf) > 1) {

0 commit comments

Comments
 (0)