geoPmidLookup: ## Look up metadata for any combination of GEO series and...

Description Usage Arguments Value Author(s) Examples

Description

If GEO series IDs are provided, the function will also add data from pubmed if the PMID can be found from GEO. Function by Levi Waldron.

Usage

1
2
geoPmidLookup(id, iconv.args = list(from = "latin1", to = "ASCII", 
    sub = "?"), con = NULL)

Arguments

id

A character string of one or more GSE identifiers and/or pubmed IDs. Pubmed IDs may or may not be preceded by "PMID". Optionally, GEO series identifiers can have a platform specified by appending it to the series identifier, separated by a hyphen, eg: GSE1722-GPL96.

iconv.args

Arguments to the base::iconv() function, for optionally converting text to ASCII. If NULL, do no conversion.

con

Connection to a GEOmetadb SQLite database. Will be created if not provided.

Value

A character vector or dataframe of platform, series, and publication information retrieved through GEOmetadb and Pubmed. If multiple IDs are provided, the dataframe will have one row per ID.

Author(s)

Levi Waldron and Markus Riester

Examples

1
2
3
4
5
6
## Takes too long to run for the first time in an example, because
## the sqlite file containing all GEO metadata has to be downloaded:
if( interactive() ){
    ids <- c("GSE100", "GSE1000", "PMID100", "PMID1000")
    geoLookup(ids)
}

lwaldron/LeviRmisc documentation built on May 21, 2019, 8:59 a.m.