annotate getGSMdata/.Rhistory @ 14:44f074a0bfca draft

Uploaded
author testtool
date Mon, 06 Feb 2017 06:39:58 -0500
parents 5e1d49abfc99
children c1bf6f112a19
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)