inst/prototype/sra.r

get_runinfo <- function(sra_id) {
    x <- rentrez::entrez_fetch(db='sra', rettype='runinfo', id = sra_id)
    read.csv(textConnection(x))
}



id <- "SRX5137765"
d <- get_runinfo(id)
head(d,2)

sprintf("fastq-dump %s", d$Run[1:3])
YuLab-SMU/yulab.utils documentation built on April 14, 2025, 1:54 p.m.