Skip to contents

Wrapper around getGEOData that will repeat getGEOData for a given accession until data is successfully downloaded, up to n-number of total attempts

Usage

getGEOData_retryWrapper(geo_accession, n = 10)

Arguments

geo_accession

GEO accession ID

n

Max number of times getGEOData should be retried before giving up

Value

List. A MetaIntegrator GEO object

Details

getGEOData can fail, returning 'Warning: Unable to correctly download geo_accession . Dataset will be excluded from this object.' However, this can be due to a connection error, not because no data exists

Examples

if (FALSE) { # \dontrun{
gse <- getGEOData_retryWrapper("GSE18606")
MetaIntegrator::checkDataObject(gse$originalData[[1]], "Dataset") # TRUE
} # }