gds_idat2rg | R Documentation |
Queries and downloads GSM IDAT files in GEO Data Sets db, then returns the assay data as an "RGChannelSet", calling gds_idatquery() then minfi::read.metharray().
gds_idat2rg( gsmvi, rmdl = TRUE, ext = "gz", dfp = "./idats/", burl = paste0("ftp://ftp.ncbi.nlm.nih.gov/", "geo/samples/"), silent = TRUE )
gsmvi |
A vector of GSM IDs (alphanumeric character strings). |
rmdl |
Whether to remove downloaded IDAT files when finished (default TRUE). |
ext |
Extension for downloaded files (default "gz"). |
dfp |
Destination for IDAT downloads. |
burl |
Base URL string for the IDAT query (default "ftp://ftp.ncbi.nlm.nih.gov/geo/samples/"). |
silent |
Whether to suppress warnings on download removal (default TRUE). |
An RGChannelSet object
gds_idatquery(), read.metharray()
gsmvi <- c("GSM2465267", "GSM2814572") fpath <- file.path(tempdir(), "gds_idat2rg_example") rg <- try(gds_idat2rg(gsmvi, dfp = fpath))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.