getSuppfiles
getSuppFiles.RdWrapper around GEOquery::getGEOSuppFiles intended to download raw microarray CEL files
Usage
getSuppFiles(
GEO,
makeDirectory = TRUE,
baseDir = getwd(),
fetch_files = TRUE,
filter_regex = NULL,
download_method = "curl",
unpack = TRUE
)Arguments
- GEO
String. GEO accession
- makeDirectory
Logical. Whether to download files to a subfolder for the GEO accession
- baseDir
String. Directory to download files or create subdirectory
- fetch_files
Logical. Whether to actually download files or return names instead
- filter_regex
String. Pattern to filter potential download files for
- download_method
String. Takes 'auto', 'wget', libcurl', 'curl'. Specifies the download protocol for getGEOSuppFiles. On my setup, default auto (wget) had connection issues that curl solved
- unpack
Logical. Whether to unpack the supplemental tar file that contains the CEL files
Examples
# \donttest{
geo_accession <- "GSE6629"
baseDir <- getwd()
getSuppFiles(GEO = geo_accession,
makeDirectory = TRUE,
baseDir = baseDir,
fetch_files = TRUE,
filter_regex = NULL,
download_method = "curl",
unpack = TRUE)
#> Setting options('download.file.method.GEOquery'='auto')
#> Setting options('GEOquery.inmemory.gpl'=FALSE)
#> [[1]]
#> [1] 0
#>
output_tar <- sprintf("%s/%s/GSE6629_RAW.tar", baseDir, geo_accession)
untar_files <- c("GSM153779.CEL.gz", "GSM153780.CEL.gz")
output_untar <- sprintf("%s/%s/%s", baseDir, geo_accession, untar_files)
file.exists(output_tar) # TRUE
#> [1] TRUE
all(file.exists(untar_files)) # TRUE
#> [1] FALSE
# }