Mercurial > repos > testtool > geo_data
view getMETAdata/getMETAdata.R @ 73:63f1a36323dc draft default tip
Uploaded
author | testtool |
---|---|
date | Tue, 15 Aug 2017 06:08:31 -0400 |
parents | cb14dbc2fd60 |
children |
line wrap: on
line source
require("GEOquery", quietly = TRUE) options(warn = -1) options("download.file.method"="wget") args <- commandArgs(trailingOnly = TRUE) GSMTable = args[1] MetaTable = args[2] TAB = read.table(GSMTable) if (is.null(TAB)) { stop("Must specify input files") } else { options(download.file.method.GEOquery = "wget") GEODataTable <- getGEO(TAB$ID[1], getGPL = FALSE) MetaData <- data.frame(Meta(GEODataTable)) write.table(MetaData, MetaTable, row.names = FALSE, sep = "\t") }