Description Usage Arguments Value Methods and Functions Author(s) See Also Examples
Several of the methods available for AnnotationDbi
objects are
also implemented for MirtarbaseDb
objects. This enables to extract
data from MirtarbaseDb
objects in a similar fashion than from objects
inheriting from the base annotation package class
AnnotationDbi
.
In addition to the standard usage, the select
for
MirtarbaseDb
objects support also the filter framework of the
mirtarbasedb (and ensembdb) package and thus allow to perform more
fine-grained queries to retrieve data.
1 2 3 4 5 6 7 8 9 |
(In alphabetic order)
columns |
For |
keys |
The keys/ids for which data should be retrieved from the
database. This can be either a character vector of keys/IDs, a
single filter object extending |
keytype |
For For |
filter |
For |
x |
The |
... |
Not used. |
See method description above.
List all the columns that can be retrieved by the select
methods. Note that these column names are different from the ones
supported by the mtis
method. These can be listed by the
listColumns
method.
Returns a character vector of supported column names.
Retrieves all keys from the column name specified with
keytype
. By default (if keytype
is not provided) it
returns all Mirtarbase IDs.
Returns a character vector of IDs.
List all supported key types (column names).
Returns a character vector of key types.
Retrieve the data as a data.frame
based on parameters for
selected keys
, columns
and keytype
arguments. Multiple matches of the keys are returned in one row
for each possible match. Argument keys
can be either a
character vector of keys/IDs, a single filter object extending
AnnotationFilter
or a list of such objects. For
the latter, the argument keytype
does not have to be
specified.
Returns a data.frame
with the column names corresponding to
the argument columns
and rows with all data matching the
criteria specified with keys
.
Johannes Rainer
MirtarbaseIdFilter
listColumns
mtis
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | library(mirtarbase)
## List all supported keytypes.
keytypes(mirtarbase)
## List all supported columns for the select method.
columns(mirtarbase)
## List /real/ database column names.
listColumns(mirtarbase)
## Retrieve all keys corresponding to Mirtarbase IDs.
mtiids <- keys(mirtarbase, keytype="MIRTARBASEID")
length(mtiids)
head(mtiids)
## Retrieve all keys corresponding to gene names/symbol for which we do have
## a MTI of support type "Functional MTI"
syms <- keys(mirtarbase, keytype="SYMBOL", filter=SupportTypeFilter("Functional MTI"))
length(syms)
head(syms)
## select:
## Retrieve all MTIs for the selected genes and support type.
select(mirtarbase, keys=list(GenenameFilter(c("BCL2", "BCL2L11")),
SupportTypeFilter("Functional MTI")),
columns=c("SYMBOL", "MATMIRNA", "PMID"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.