Skip to content

Commit

Permalink
sra
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Nov 5, 2024
1 parent b3f6eb4 commit af16a53
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions inst/prototype/sra.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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])

0 comments on commit af16a53

Please sign in to comment.