annotate getGSMdata/.Rhistory @ 28:c1bf6f112a19 draft

Uploaded
author testtool
date Mon, 20 Mar 2017 06:58:17 -0400
parents 5e1d49abfc99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
1 GSMTable <- ("test-data/GSMTable.txt")
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
2 write.table(samples, GSMTable, row.names = FALSE, sep = "\t")
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
3 ?write.table
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
4 GSE <- "GSE51547"
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
5 search1 <- entrez_search(db = "gds", term = GSE, retmax = 1)
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
6 require("rentrez", quietly = TRUE)
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
7 search1 <- entrez_search(db = "gds", term = GSE, retmax = 1)
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
8 rec2 <- entrez_summary(db = "gds",
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
9 id = search1$ids,
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
10 version = "2.0")
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
11 extract <- extract_from_esummary(rec2,rownames(summary(rec2)))
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
12 samples <- extract$samples
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
13 colnames(samples)[which(names(samples) == "accession")] <- "ID"
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
14 colnames(samples)[which(names(samples) == "title")] <- "Phenotype"
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
15 write.table(samples, GSMTable, row.names = FALSE, sep = "\t",quote = FALSE)
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
16 write.table(samples, file=GSMTable.txt, row.names = FALSE, sep = "\t",quote = FALSE)
5e1d49abfc99 Uploaded
testtool
parents:
diff changeset
17 write.table(samples, file="GSMTable.txt", row.names = FALSE, sep = "\t",quote = FALSE)
28
c1bf6f112a19 Uploaded
testtool
parents: 8
diff changeset
18 ??entrez_summary
c1bf6f112a19 Uploaded
testtool
parents: 8
diff changeset
19 ??getGEO
c1bf6f112a19 Uploaded
testtool
parents: 8
diff changeset
20 ??bumphunter
c1bf6f112a19 Uploaded
testtool
parents: 8
diff changeset
21 ??annotatePeak