Skip to content

Commit af16a53

Browse files
committed
sra
1 parent b3f6eb4 commit af16a53

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

inst/prototype/sra.r

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
get_runinfo <- function(sra_id) {
2+
x <- rentrez::entrez_fetch(db='sra', rettype='runinfo', id = sra_id)
3+
read.csv(textConnection(x))
4+
}
5+
6+
7+
8+
id <- "SRX5137765"
9+
d <- get_runinfo(id)
10+
head(d,2)
11+
12+
sprintf("fastq-dump %s", d$Run[1:3])

0 commit comments

Comments
 (0)