biomaRt (version 2.28.0)

listAttributes: lists the attributes available in the selected dataset

Description

Attributes are the outputs of a biomaRt query, they are the information we want to retrieve. For example if we want to retrieve all entrez gene identifiers of genes located on chromosome X, entrezgene will be the attribute we use in the query. The listAttributes function lists the available attributes in the selected dataset

Usage

listAttributes(mart, page,what = c("name","description","page"))

Arguments

mart
object of class Mart created using the useMart function
page
Show only the attributes that belong to the specified attribute page.
what
vector of types of information about the attributes that need to be displayed. Can have values like name, description, fullDescription, page

Examples

Run this code

if(interactive()){
ensembl = useMart("ensembl", dataset="hsapiens_gene_ensembl")
listAttributes(ensembl)
}

Run the code above in your browser using DataLab