| Title: | Get data from NCBI Gene Expression Omnibus (GEO) |
|---|---|
| Description: | The NCBI Gene Expression Omnibus (GEO) is a public repository of high-throughput functional genomics data, including microarray, RNA-seq, and single-cell experiments. GEOquery is the bridge between GEO and Bioconductor: it downloads and parses GEO Series (GSE), Sample (GSM), Platform (GPL), and DataSet (GDS) records. By default it parses GEO Series Matrix files into Bioconductor 'ExpressionSet' objects; it can also parse the full SOFT format into GEOquery's own S4 classes, retrieve NCBI-computed RNA-seq quantifications, download supplementary files, and search GEO. |
| Authors: | Sean Davis [aut, cre] (ORCID: <https://orcid.org/0000-0002-8991-6458>) |
| Maintainer: | Sean Davis <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 2.81.21 |
| Built: | 2026-06-14 15:52:50 UTC |
| Source: | https://github.com/bioc/GEOquery |
A thin wrapper around
SummarizedExperiment::makeSummarizedExperimentFromExpressionSet() used
by getGEO(..., returnType = "SummarizedExperiment"), and available
directly so existing ExpressionSet results can be modernized without
re-downloading.
as_SummarizedExperiment(eset)as_SummarizedExperiment(eset)
eset |
An |
A SummarizedExperiment.
## Not run: gse <- getGEO("GSE2553")[[1]] se <- as_SummarizedExperiment(gse) ## End(Not run)## Not run: gse <- getGEO("GSE2553")[[1]] se <- as_SummarizedExperiment(gse) ## End(Not run)
Sometimes, you just need to see the GEO website page for a GEO accession. This function opens the GEO page for a given accession number in the default browser.
browseGEOAccession(geo)browseGEOAccession(geo)
geo |
A GEO accession number |
## Not run: browseGEOAccession("GSE262484") ## End(Not run)## Not run: browseGEOAccession("GSE262484") ## End(Not run)
This function opens a browser window to the NCBI GEO website with a search for RNA-seq datasets. It is included as a convenience function to remind users of how to search for RNA-seq datasets using the NCBI GEO website and an "rnaseq counts" filter.
browseWebsiteRNASeqSearch()browseWebsiteRNASeqSearch()
## Not run: browseWebsiteRNASeqSearch() ## End(Not run)## Not run: browseWebsiteRNASeqSearch() ## End(Not run)
Remove all entries from the persistent download cache (see
geoCache).
clearGEOCache()clearGEOCache()
NULL, invisibly.
Functions to take a GDS data structure from getGEO and coerce it to limma MALists or ExpressionSets.
GDS |
The GDS datastructure returned by getGEO |
do.log2 |
Boolean, should the data in the GDS be log2 transformed before inserting into the new data structure |
GPL |
Either a GPL data structure (from a call to getGEO) or NULL. If
NULL, this will cause a call to getGEO to produce a GPL. The gene
information from the GPL is then used to construct the |
AnnotGPL |
In general, the annotation GPL files will be available for GDS records, so the default is to use these files over the user-submitted GPL files |
getGPL |
A boolean defaulting to TRUE as to whether or not to download and include GPL information when converting to ExpressionSet or MAList. You may want to set this to FALSE if you know that you are going to annotate your featureData using Bioconductor tools rather than relying on information provided through NCBI GEO. Download times can also be greatly reduced by specifying FALSE. |
This function just rearranges one data structure into another. For GDS, it also deals appropriately with making the 'targets' list item for the limma data structure and the phenoData slot of ExpressionSets.
GDS2MA |
A limma MAList |
GDS2eSet |
An ExpressionSet object |
Sean Davis
See the limma and ExpressionSet help in the appropriate packages
## Not run: gds505 <- getGEO('GDS505') ## Not run: MA <- GDS2MA(gds505) ## Not run: eset <- GDS2eSet(gds505)## Not run: gds505 <- getGEO('GDS505') ## Not run: MA <- GDS2MA(gds505) ## Not run: eset <- GDS2eSet(gds505)
A class describing a GEO GDS entity
Objects of this class are returned by
getGEO; they are not normally constructed directly.
Sean Davis
Return the BiocFileCache object that backs GEOquery's persistent
download cache (see clearGEOCache). The cache is used by the
download functions only when options(GEOquery.cache = TRUE) is set;
its location defaults to tools::R_user_dir("GEOquery", "cache") and can
be overridden with options(GEOquery.cache.path = ...).
geoCache()geoCache()
A BiocFileCache object.
Accessor generics for the S4 objects returned by getGEO when
parsing SOFT-format records (GSE, GSM, GPL, GDS).
Use these rather than reaching into slots directly.
object |
A GEOquery S4 object ( |
Meta(object)The record metadata as a named list (title, submission dates, sample/platform attributes, and so on).
Accession(object)The GEO accession (the
geo_accession metadata field).
Table(object)The data table as a data.frame – for
example the measurement table of a GSM or the probe annotation of
a GPL.
Columns(object)A data.frame describing the columns of
Table(object).
dataTable(object)The underlying GEODataTable object,
which holds both Table() and Columns().
GSMList(object)For a GSE, the list of its GSM
sample objects.
GPLList(object)For a GSE, the list of its GPL
platform objects.
Meta() a list; Accession() a character string;
Table() and Columns() data.frames; dataTable() a
GEODataTable; GSMList() and GPLList() named lists.
Sean Davis
## Not run: gsm <- getGEO("GSM11805") Meta(gsm)$title head(Table(gsm)) Columns(gsm) gse <- getGEO("GSE781", GSEMatrix = FALSE) names(GSMList(gse)) ## End(Not run)## Not run: gsm <- getGEO("GSM11805") Meta(gsm)$title head(Table(gsm)) Columns(gsm) gse <- getGEO("GSE781", GSEMatrix = FALSE) names(GSMList(gse)) ## End(Not run)
A virtual class for holding GEO samples, platforms, and datasets
Objects of this class are returned by
getGEO; they are not normally constructed directly.
Sean Davis
GDS-class, GPL-class,
GSM-class, GEODataTable-class,
Contains the column descriptions and data for the datatable part of a GEO object
Objects of this class are returned by
getGEO; they are not normally constructed directly.
Sean Davis
Lists the supplementary files attached to a GSE and classifies each by single-cell format (10x Matrix Market triplet, 10x HDF5, AnnData h5ad, loom, Seurat rds, tar archive, or other), extracting the GSM sample id where present. This lets you see what a single-cell study contains – and how 10x triplets group by sample – before downloading potentially many gigabytes.
geoSingleCellManifest(GEO)geoSingleCellManifest(GEO)
GEO |
A GEO Series accession, e.g. "GSE161228". |
No files are downloaded. The result feeds the planned single-cell readers (see ADR-0004); reading itself uses Bioconductor importers (TENxIO, anndataR) that are optional dependencies.
A data.frame with columns fname, sample (GSM id or NA),
format, role, and url. Zero rows if the GSE has no
supplementary files.
## Not run: m <- geoSingleCellManifest("GSE161228") m ## End(Not run)## Not run: m <- geoSingleCellManifest("GSE161228") m ## End(Not run)
Collapses a geoSingleCellManifest into one row per loadable
unit (a sample + format combination) and reports completeness. A 10x Matrix
Market unit is "complete" only when its matrix, barcodes, and features files
are all present; single-file formats (h5ad, 10x h5, loom, rds) are always
complete. The loadable column flags units a reader can consume.
geoSingleCellUnits(manifest)geoSingleCellUnits(manifest)
manifest |
A data.frame returned by |
A data.frame with columns sample, format, n_files,
status, and loadable.
## Not run: m <- geoSingleCellManifest("GSE161228") geoSingleCellUnits(m) ## End(Not run)## Not run: m <- geoSingleCellManifest("GSE161228") geoSingleCellUnits(m) ## End(Not run)
This one makes some assumptions about the structure of the HTML response returned.
getDirListing(url)getDirListing(url)
url |
A URL, assumed to return an NCBI-formatted index page |
This function is the main user-level function in the GEOquery package. It directs the download (if no filename is specified) and parsing of a GEO SOFT format file into an R data structure specifically designed to make access to each of the important parts of the GEO SOFT format easily accessible.
getGEO( GEO = NULL, filename = NULL, destdir = tempdir(), GSElimits = NULL, GSEMatrix = TRUE, AnnotGPL = FALSE, getGPL = TRUE, parseCharacteristics = TRUE, returnType = c("SummarizedExperiment", "ExpressionSet") )getGEO( GEO = NULL, filename = NULL, destdir = tempdir(), GSElimits = NULL, GSEMatrix = TRUE, AnnotGPL = FALSE, getGPL = TRUE, parseCharacteristics = TRUE, returnType = c("SummarizedExperiment", "ExpressionSet") )
GEO |
A character string representing a GEO object for download and parsing. (eg., 'GDS505','GSE2','GSM2','GPL96') |
filename |
The filename of a previously downloaded GEO SOFT format file or its gzipped representation (in which case the filename must end in .gz). Either one of GEO or filename may be specified, not both. GEO series matrix files are also handled. Note that since a single file is being parsed, the return value is not a list of esets, but a single eset when GSE matrix files are parsed. |
destdir |
The destination directory for any downloads. Defaults to the architecture-dependent tempdir. You may want to specify a different directory if you want to save the file for later use. Doing so is a good idea if you have a slow connection, as some of the GEO files are HUGE! |
GSElimits |
This argument can be used to load only a contiguous subset of the GSMs from a GSE. It should be specified as a vector of length 2 specifying the start and end (inclusive) GSMs to load. This could be useful for splitting up large GSEs into more manageable parts, for example. |
GSEMatrix |
A boolean telling GEOquery whether or not to use GSE Series Matrix files from GEO. The parsing of these files can be many orders-of-magnitude faster than parsing the GSE SOFT format files. Defaults to TRUE, meaning that the SOFT format parsing will not occur; set to FALSE if you for some reason need other columns from the GSE records. |
AnnotGPL |
A boolean defaulting to FALSE as to whether or not to use the Annotation GPL information. These files are nice to use because they contain up-to-date information remapped from Entrez Gene on a regular basis. However, they do not exist for all GPLs; in general, they are only available for GPLs referenced by a GDS |
getGPL |
A boolean defaulting to TRUE as to whether or not to download and include GPL information when getting a GSEMatrix file. You may want to set this to FALSE if you know that you are going to annotate your featureData using Bioconductor tools rather than relying on information provided through NCBI GEO. Download times can also be greatly reduced by specifying FALSE. |
parseCharacteristics |
A boolean defaulting to TRUE as to whether or not to parse the characteristics information (if available) for a GSE Matrix file. Set this to FALSE if you experience trouble while parsing the characteristics. |
returnType |
One of "SummarizedExperiment" (default) or "ExpressionSet".
For GSE Series Matrix results, controls whether each entity is returned as a
|
getGEO functions to download and parse information available from NCBI GEO (http://www.ncbi.nlm.nih.gov/geo). Here are some details about what is avaible from GEO. All entity types are handled by getGEO and essentially any information in the GEO SOFT format is reflected in the resulting data structure.
From the GEO website:
The Gene Expression Omnibus (GEO) from NCBI serves as a public repository for a wide range of high-throughput experimental data. These data include single and dual channel microarray-based experiments measuring mRNA, genomic DNA, and protein abundance, as well as non-array techniques such as serial analysis of gene expression (SAGE), and mass spectrometry proteomic data. At the most basic level of organization of GEO, there are three entity types that may be supplied by users: Platforms, Samples, and Series. Additionally, there is a curated entity called a GEO dataset.
A Platform record describes the list of elements on the array (e.g., cDNAs, oligonucleotide probesets, ORFs, antibodies) or the list of elements that may be detected and quantified in that experiment (e.g., SAGE tags, peptides). Each Platform record is assigned a unique and stable GEO accession number (GPLxxx). A Platform may reference many Samples that have been submitted by multiple submitters.
A Sample record describes the conditions under which an individual Sample was handled, the manipulations it underwent, and the abundance measurement of each element derived from it. Each Sample record is assigned a unique and stable GEO accession number (GSMxxx). A Sample entity must reference only one Platform and may be included in multiple Series.
A Series record defines a set of related Samples considered to be part of a group, how the Samples are related, and if and how they are ordered. A Series provides a focal point and description of the experiment as a whole. Series records may also contain tables describing extracted data, summary conclusions, or analyses. Each Series record is assigned a unique and stable GEO accession number (GSExxx).
GEO DataSets (GDSxxx) are curated sets of GEO Sample data. A GDS record represents a collection of biologically and statistically comparable GEO Samples and forms the basis of GEO's suite of data display and analysis tools. Samples within a GDS refer to the same Platform, that is, they share a common set of probe elements. Value measurements for each Sample within a GDS are assumed to be calculated in an equivalent manner, that is, considerations such as background processing and normalization are consistent across the dataset. Information reflecting experimental design is provided through GDS subsets.
An object of the appropriate class (GDS, GPL, GSM, or GSE) is
returned. If the GSEMatrix option is used, then a list of
SummarizedExperiment objects is returned by default (or
ExpressionSet objects if returnType = "ExpressionSet"), one for
each SeriesMatrix file associated with the GSE accession.
Some of the files that are downloaded, particularly those associated with GSE entries from GEO are absolutely ENORMOUS and parsing them can take quite some time and memory. So, particularly when working with large GSE entries, expect that you may need a good chunk of memory and that coffee may be involved when parsing....
Sean Davis
## Not run: gds <- getGEO('GDS10') gds gse <- getGEO('GSE10') # Returns a list, so look at first item gse[[1]] ## End(Not run)## Not run: gds <- getGEO('GDS10') gds gse <- getGEO('GSE10') # Returns a list, so look at first item gse[[1]] ## End(Not run)
This function simply downloads a SOFT format file associated with the GEO accession number given.
getGEOfile( GEO, destdir = tempdir(), AnnotGPL = FALSE, amount = c("full", "brief", "quick", "data") )getGEOfile( GEO, destdir = tempdir(), AnnotGPL = FALSE, amount = c("full", "brief", "quick", "data") )
GEO |
Character string, the GEO accession for download (eg., GDS84, GPL96, GSE2553, or GSM10) |
destdir |
Directory in which to store the resulting downloaded file. Defaults to tempdir() |
AnnotGPL |
A boolean defaulting to FALSE as to whether or not to use the Annotation GPL information. These files are nice to use because they contain up-to-date information remapped from Entrez Gene on a regular basis. However, they do not exist for all GPLs; in general, they are only available for GPLs referenced by a GDS |
amount |
Amount of information to pull from GEO. Only applies to GSE, GPL, or GSM. See details... |
This function downloads GEO SOFT files based on accession number. It does not do any parsing. The first two arguments should be fairly self-explanatory, but the last is based on the input to the acc.cgi url at the geo website. In the default 'full' mode, the entire SOFT format file is downloaded. Both 'brief' and 'quick' offer shortened versions of the files, good for 'peeking' at the file before a big download on a slow connection. Finally, 'data' downloads only the data table part of the SOFT file and is good for downloading a simple EXCEL-like file for use with other programs (a convenience).
Invisibly returns the full path of the downloaded file.
Sean Davis
http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi
# myfile <- getGEOfile('GDS10')# myfile <- getGEOfile('GDS10')
The GEO Series records often have one or more supplemental files. In most cases, those files are archived as '.tar' files, the contents of which are only available in a file listing file not present on the website for download.
getGEOSeriesFileListing(GSE)getGEOSeriesFileListing(GSE)
GSE |
character(1) the GSE accession |
This function reads that file listing file and returns the results as a data.frame.
A data.frame with 5 columns. See example.
## Not run: getGEOSeriesFileListing('GSE288770') ## End(Not run)## Not run: getGEOSeriesFileListing('GSE288770') ## End(Not run)
High-level, best-effort convenience wrapper: inventories the GSE
(geoSingleCellManifest), groups files into loadable units
(geoSingleCellUnits), downloads each loadable unit, reads it
with readGEOSingleCell, and returns the results. It reports
which units it loads and which it skips.
getGEOSingleCell( GEO, samples = NULL, format = NULL, combine = FALSE, destdir = tempdir() )getGEOSingleCell( GEO, samples = NULL, format = NULL, combine = FALSE, destdir = tempdir() )
GEO |
A GEO Series accession, e.g. "GSE161228". |
samples |
Optional character vector of GSM ids to restrict to. |
format |
Optional format(s) to restrict to ("10x_mtx", "10x_h5", "h5ad"). |
combine |
Logical; if TRUE attempt to |
destdir |
Download destination directory. |
This handles common, well-structured layouts (clean per-sample 10x or
h5ad). It does NOT handle every GSE: loom and Seurat .rds formats,
files packaged inside a _RAW.tar archive, and idiosyncratic layouts
(e.g. a single combined matrix for many samples) are out of scope – use the
manifest plus readGEOSingleCell() directly for those.
A named list of SingleCellExperiment (one per sample), or a
single combined object if combine = TRUE.
geoSingleCellManifest, readGEOSingleCell
NCBI GEO allows supplemental files to be attached to GEO Series (GSE), GEO platforms (GPL), and GEO samples (GSM). This function 'knows' how to get these files based on the GEO accession. No parsing of the downloaded files is attempted, since the file format is not generally knowable by the computer.
getGEOSuppFiles( GEO, makeDirectory = TRUE, baseDir = getwd(), fetch_files = TRUE, filter_regex = NULL, quiet = getOption("GEOquery.quiet", FALSE) )getGEOSuppFiles( GEO, makeDirectory = TRUE, baseDir = getwd(), fetch_files = TRUE, filter_regex = NULL, quiet = getOption("GEOquery.quiet", FALSE) )
GEO |
A GEO accession number such as GPL1073 or GSM1137 |
makeDirectory |
Should a 'subdirectory' for the downloaded files be created? Default is TRUE. If FALSE, the files will be downloaded directly into the baseDir. |
baseDir |
The base directory for the downloads. Default is the current working directory. |
fetch_files |
logical(1). If TRUE, then actually download the files. If FALSE, just return the filenames that would have been downloaded. Useful for testing and getting a list of files without actual download. |
filter_regex |
A character(1) regular expression that will be used to filter the filenames from GEO to limit those files that will be downloaded. This is useful to limit to, for example, bed files only. |
quiet |
logical(1). If TRUE, suppress informational messages such as "No supplemental files found" and "Using locally cached version". Defaults to the 'GEOquery.quiet' option, or FALSE. |
Again, just a note that the files are simply downloaded.
If fetch_files=TRUE, a data frame is returned invisibly with rownames representing the full path of the resulting downloaded files and the records in the data.frame the output of file.info for each downloaded file. If fetch_files=FALSE, a data.frame of URLs and filenames is returned.
Sean Davis [email protected]
## Not run: a <- getGEOSuppFiles('GSM1137', fetch_files = FALSE) a # with a set of single-cell RNA-seq data a <- getGEOSuppFiles('GSE161228', fetch_files = FALSE) a ## End(Not run)## Not run: a <- getGEOSuppFiles('GSM1137', fetch_files = FALSE) a # with a set of single-cell RNA-seq data a <- getGEOSuppFiles('GSE161228', fetch_files = FALSE) a ## End(Not run)
Get GEO supplemental file URL for a given GEO accession
getGEOSuppFileURL(GEO)getGEOSuppFileURL(GEO)
GEO |
# an example of a GEO supplemental file URL # with a set of single-cell RNA-seq data url = getGEOSuppFileURL("GSE161228") url ## Not run: browseURL(url) ## End(Not run)# an example of a GEO supplemental file URL # with a set of single-cell RNA-seq data url = getGEOSuppFileURL("GSE161228") url ## Not run: browseURL(url) ## End(Not run)
In some cases, instead of individual sample records (GSM) containing information regarding sample phenotypes, the GEO Series contains that information in an attached data table. And example is given by GSE3494 where there are two data tables with important information contained within them. Using getGEO with the standard parameters downloads the GSEMatrix file which, unfortunately, does not contain the information in the data tables. This function simply downloads the “header” information from the GSE record and parses out the data tables into R data.frames.
getGSEDataTables(GSE)getGSEDataTables(GSE)
GSE |
The GSE identifier, such as “GSE3494”. |
A list of data.frames.
Sean Davis [email protected]
## Not run: dfl = getGSEDataTables('GSE3494') lapply(dfl,head) ## End(Not run)## Not run: dfl = getGSEDataTables('GSE3494') lapply(dfl,head) ## End(Not run)
For human and mouse GEO datasets, NCBI GEO attempts to process the raw data and provide quantifications in the form of raw counts and an annotation file. This function downloads the raw counts and annotation files from GEO and merges that with the metadata from the GEO object to create a SummarizedExperiment.
getRNASeqData(accession)getRNASeqData(accession)
accession |
GEO accession number |
A major barrier to fully exploiting and reanalyzing the massive volumes of public RNA-seq data archived by SRA is the cost and effort required to consistently process raw RNA-seq reads into concise formats that summarize the expression results. To help address this need, the NCBI SRA and GEO teams have built a pipeline that precomputes RNA-seq gene expression counts and delivers them as count matrices that may be incorporated into commonly used differential expression analysis and visualization software.
The pipeline processes RNA-seq data from SRA using the HISAT2 aligner and and then generates gene expression counts using the featureCounts program.
See the GEO documentation for more details.
A SummarizedExperiment object with the raw counts as the counts assay, the annotation as the rowData, and the metadata from GEO as the colData.
## Not run: se <- getRNASeqData("GSE164073") se ## End(Not run)## Not run: se <- getRNASeqData("GSE164073") se ## End(Not run)
This function extracts the genome build and species information for a GEO RNA-seq quantification.
getRNASeqQuantGenomeInfo(gse)getRNASeqQuantGenomeInfo(gse)
gse |
GEO accession number |
A character vector with the genome build and species information
## Not run: getRNASeqQuantGenomeInfo("GSE164073") ## End(Not run)## Not run: getRNASeqQuantGenomeInfo("GSE164073") ## End(Not run)
Contains a full GEO Platform entity
Objects of this class are returned by
getGEO; they are not normally constructed directly.
Sean Davis
Contains a GEO Series entity
Objects of this class are returned by
getGEO; they are not normally constructed directly.
Sean Davis
A class containing a GEO Sample entity
Objects of this class are returned by
getGEO; they are not normally constructed directly.
Sean Davis
This function checks if a GEO accession number has RNA-seq quantifications available. It does this by checking if the GEO accession number has a "RNA-Seq raw counts" link available on the GEO download page.
hasRNASeqQuantifications(accession)hasRNASeqQuantifications(accession)
accession |
GEO accession number |
TRUE if the GEO accession number has RNA-seq quantifications available, FALSE otherwise.
hasRNASeqQuantifications("GSE164073")hasRNASeqQuantifications("GSE164073")
Workhorse GEO parsers.
parseGEO( fname, GSElimits, destdir = tempdir(), AnnotGPL = FALSE, getGPL = TRUE, parseCharacteristics = TRUE )parseGEO( fname, GSElimits, destdir = tempdir(), AnnotGPL = FALSE, getGPL = TRUE, parseCharacteristics = TRUE )
fname |
The filename of a SOFT format file. If the filename ends in .gz, a gzfile() connection is used to read the file directly. |
GSElimits |
Used to limit the number of GSMs parsed into the GSE object; useful for memory management for large GSEs. |
destdir |
The destination directory into which files will be saved (to be used for caching) |
AnnotGPL |
Fetch the annotation GPL if available |
getGPL |
Fetch the GPL associated with a GSEMatrix entity (should remain TRUE for all normal use cases) |
parseCharacteristics |
Whether or not to parse the characteristics information (if available) for a GSE Matrix file. Set to FALSE if you experience trouble parsing the characteristics. |
These are probably not useful to the end-user. Use getGEO to access these functions. parseGEO simply delegates to the appropriate specific parser. There should be no reason to use the parseGPL, parseGDS, parseGSE, or parseGSM functions directly.
parseGEO returns an object of the associated type. For example, if it is passed the text from a GDS entry, a GDS object is returned.
Sean Davis
Low-level reader: given already-downloaded local file(s), dispatch on format
to the appropriate Bioconductor importer and return a
SingleCellExperiment. Use this for full control; see
getGEOSingleCell for the high-level convenience wrapper.
readGEOSingleCell(x, format = NULL)readGEOSingleCell(x, format = NULL)
x |
A path to a single file ( |
format |
One of "10x_mtx", "10x_h5", "h5ad". If NULL (default), guessed
from |
Supported formats: "10x_mtx" (a directory, or the matrix/barcodes/
features files, read via TENxIO), "10x_h5" (CellRanger HDF5, TENxIO),
and "h5ad" (AnnData, anndataR). loom and Seurat .rds are not
supported here – read them with their native packages.
A SingleCellExperiment.
getGEOSingleCell, geoSingleCellManifest
Provide a list of possible search fields for GEO search
searchFieldsGEO()searchFieldsGEO()
a data.frame with names of possible search fields for GEO search as well as descriptions, data types, etc. for each field. Fields are in rows and their properties are in columns.
searchFieldsGEO()searchFieldsGEO()
This function searches the GDS database, and return a data.frame for all the search results.
searchGEO(query, step = 500L)searchGEO(query, step = 500L)
query |
character, the search term. The NCBI uses a search term syntax
which can be associated with a specific search field with square brackets.
So, for instance "Homo sapiens[ORGN]" denotes a search for |
step |
the number of records to fetch from the database each time. You may choose a smaller value if failed. |
The NCBI allows users to access more records (10 per second) if they register
for and use an API key. set_entrez_key function
allows users to set this key for all calls to rentrez functions during a
particular R session. You can also set an environment variable ENTREZ_KEY
by Sys.setenv. Once this value is set to your key
rentrez will use it for all requests to the NCBI. Details see
https://docs.ropensci.org/rentrez/articles/rentrez_tutorial.html#rate-limiting-and-api-keys
a data.frame contains the search results
## Not run: searchGEO("diabetes[ALL] AND Homo sapiens[ORGN] AND GSE[ETYP]") ## End(Not run)## Not run: searchGEO("diabetes[ALL] AND Homo sapiens[ORGN] AND GSE[ETYP]") ## End(Not run)
Sometimes, you just need the URL for a GEO accession. This function returns the URL for a given GEO accession number that can be used to access the GEO page for that accession.
urlForAccession(geo)urlForAccession(geo)
geo |
A GEO accession number |
A character vector with the URL for the GEO accession
urlForAccession("GSE262484")urlForAccession("GSE262484")