if (FALSE) {
# 1) select a mart
getMarts()
# we will select mart 'plants_mart' and search for available datasets
getDatasets(mart = "plants_mart")
# we choose dataset 'athaliana_eg_gene' and run biomart()
# using mart: 'plants_mart', dataset: "athaliana_eg_gene"
# attributes: c("start_position","end_position","description")
# for an example gene set of Arabidopsis thaliana:
# c("AT1G06090", "AT1G06100", "AT1G06110", "AT1G06120",
# "AT1G06130", "AT1G06200")
biomart(genes = c("AT1G06090", "AT1G06100",
"AT1G06110", "AT1G06120",
"AT1G06130", "AT1G06200"),
mart = "plants_mart",
dataset = "athaliana_eg_gene",
attributes = c("start_position","end_position","description"),
filters = "ensembl_gene_id")
}
Run the code above in your browser using DataLab