find_geo: Find the GEO accession id for a given SRA run

View source: R/find_geo.R

find_geoR Documentation

Find the GEO accession id for a given SRA run

Description

Given a SRA run id, this function will retrieve the GEO accession id (starting with GSM) if it's available. Otherwise it will return NA.

Usage

find_geo(run, verbose = FALSE, sleep = 1/2)

Arguments

run

A character vector of length 1 with the SRA run accession id.

verbose

Whether to print a message for the run. Useful when looping over a larger number of SRA run ids.

sleep

The number of seconds (or fraction) to wait before downloading data using getGEO. This is important if you are looking over geo_info() given the constraints published at https://www.ncbi.nlm.nih.gov/books/NBK25497/.

Details

Although the phenotype information already includes the GEO accession ids, not all projects had GEO entries at the time these tables were created. This function will then be useful to check if there is a GEO accession id for a given sample (run). If there is, you can then retrieve the information using geo_info.

Value

The GEO accession id for the corresponding sample.

Author(s)

Leonardo Collado-Torres

Examples

## Find the GEO accession id for for SRX110461
find_geo("SRX110461")

leekgroup/recount documentation built on May 24, 2024, 11:19 a.m.