Description Usage Arguments Author(s) Examples
Filters are what we use as inputs for a biomaRt query.
For example, if we want to retrieve all EntrezGene identifiers on
chromosome X, chromosome
will be the filter,
with corresponding value X.
1 2 | listFilters(mart, what = c("name", "description"))
searchFilters(mart, pattern)
|
mart |
object of class |
what |
character vector indicating what information to display about the
available filters. Valid values are
|
pattern |
Character vector defining the regular expression ( |
Steffen Durinck, Mike Smith
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | if(interactive()){
## list the available Ensembl marts and use Ensembl Genes
listEnsembl()
ensembl <- useEnsembl(biomart = "ensembl", dataset = 'hsapiens_gene_ensembl')
## list the available datasets in this Mart
listFilters(mart = ensembl)
## the list of filters is long and not easy to read
## we can search for a term of interest to reduce this e.g. 'gene'
searchFilters(mart = ensembl, pattern = "gene")
## search the available filters to find entries containing 'entrez' or 'hgnc'
searchFilters(mart = ensembl, 'entrez|hgnc')
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.