Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

listDatasets

List or search the datasets available in the selected BioMart database


Description

Lists or search the datasets available in the selected BioMart database

Usage

listDatasets(mart, verbose = FALSE)
    searchDatasets(mart, pattern)

Arguments

mart

object of class Mart created with the useMart function

verbose

Give detailed output of what the method is doing, for debugging purposes

pattern

Character vector defining the regular expression (regex) to be used for the search. If left blank the default is to use ".*" which will match everything and return the same as listDatasets.

Author(s)

Steffen Durinck, Mike Smith

Examples

if(interactive()){

    ## list the available Ensembl marts and use Ensembl Genes
    listEnsembl()
    ensembl <- useEnsembl(biomart = "ensembl")

    ## list the available datasets in this Mart
    listDatasets(mart = ensembl)

    ## the list of Ensembl datasets grows ever larger (101 as of Ensembl 93)
    ## we can search for a term of interest to reduce the length e.g. 'sapiens'
    searchDatasets(mart = ensembl, pattern = "sapiens")
    
    ## search for any dataset containing the word Rat or rat
    searchDatasets(mart = ensembl, pattern = "(R|r)at")
}

biomaRt

Interface to BioMart databases (i.e. Ensembl)

v2.46.3
Artistic-2.0
Authors
Steffen Durinck [aut], Wolfgang Huber [aut], Sean Davis [ctb], Francois Pepin [ctb], Vince S Buffalo [ctb], Mike Smith [ctb, cre] (<https://orcid.org/0000-0002-7800-3848>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.