geoConvert: Cross-reference between GEO data types

Description Usage Arguments Value Author(s) Examples

View source: R/geoConvert.R

Description

A common task is to find all the GEO entities of one type associated with another GEO entity (eg., find all GEO samples associated with GEO platform 'GPL96'). This function provides a very fast mapping between entity types to facilitate queries of this type.

Usage

1
geoConvert(in_list, out_type = c("gse", "gpl", "gsm", "gds", "smatrix"), sqlite_db_name = "GEOmetadb.sqlite")

Arguments

in_list

Character vector of GEO entities to convert from.

out_type

Character vector of GEO entity types to which to convert.

sqlite_db_name

The filename of the GEOmetadb sqlite database file

Value

A list of data.frames.

Author(s)

Jack Zhu <zhujack@mail.nih.gov>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Use the demo GEOmetadb database:
if( !file.exists("GEOmetadb.sqlite") ) {
    demo_sqlfile <- getSQLiteFile(destdir = getwd(), destfile = "GEOmetadb.sqlite.gz", type = "demo")
} else {
    demo_sqlfile <- "GEOmetadb.sqlite"
}
ls = geoConvert('GPL96', out_type=c("GSE", 'GSM'), sqlite_db_name=demo_sqlfile)
names(ls)
head(ls[[1]])

## Download the full GEOmetadb database:
## Not run: geometadbfile <- getSQLiteFile()

GEOmetadb documentation built on Nov. 8, 2020, 7:19 p.m.