Skip to content

Commit

Permalink
added temporary notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rioualen committed Jun 2, 2016
1 parent e4185c4 commit 5223eab
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/snakefiles/rules/download_from_GEO.rules
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ rule download_sra:
"""


## TODO ! download function

## 1. Get SRR ids from GSE id

library(GEOquery)
gse <- getGEO('GSE20870') # retrieves a GEO list set for your SRA id.
## see what is in there:
show(gse)
# There are 2 sets of samples for that ID
## what you want is table a with SRR to download and some sample information:
## lets see what the first set contains:
df <- as.data.frame(gse[[1]])
write.csv(df, file="test.csv")
head(df)



Expand Down

0 comments on commit 5223eab

Please sign in to comment.