Description Usage Arguments Value Author(s) Examples
select
, columns
and keys
are used together to
extract data from a Mart
object. These functions work much the
same as the classic biomaRt functions such as getBM
etc. and
are provide here to make this easier for people who are comfortable
using these methods from other Annotation packages. Examples of other
objects in other packages where you can use these methods include (but
are not limited to): ChipDb
, OrgDb
GODb
,
InparanoidDb
and ReactomeDb
.
columns
shows which kinds of data can be returned from the
Mart
object.
keytypes
allows the user to discover which keytypes can be
passed in to select
or keys
as the keytype
argument.
keys
returns keys from the Mart
of the type specified by
it's keytype
argument.
select
is meant to be used with these other methods and has
arguments that take the kinds of values that these other methods
return. select
will retrieve the results as a data.frame based
on parameters for selected keys
and columns
and
keytype
arguments.
1 2 3 4 |
x |
the |
keys |
the keys to select records for from the database. Keys
for some keytypes can be extracted by using the |
columns |
the columns or kinds of things that can be retrieved
from the database. As with |
keytype |
the keytype that matches the keys used. For the
|
... |
other arguments. These include:
|
keys
,columns
and keytypes
each return a character
vector or possible values. select
returns a data.frame.
Marc Carlson
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## 1st create a Mart object and specify the dataset
mart<-useMart(dataset="hsapiens_gene_ensembl",biomart='ensembl')
## you can list the keytypes
keytypes(mart)
## you can list the columns
columns(mart)
## And you can extract keys when this is supported for your keytype of interest
k = keys(mart, keytype="chromosome_name")
head(k)
## You can even do some pattern matching on the keys
k = keys(mart, keytype="chromosome_name", pattern="LRG")
head(k)
## Finally you can use select to extract records for things that you are
## interested in.
affy=c("202763_at","209310_s_at","207500_at")
select(mart, keys=affy, columns=c('affy_hg_u133_plus_2','entrezgene_id'),
keytype='affy_hg_u133_plus_2')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.