Description Usage Arguments Value Examples
Functions for dealing with unique mapping and multiple mapping.
map_add_element
will add the mapping as a new column instead of
overwriting the current one used for the mapping.
1 2 3 4 5 6 7 8 9 10 11 | map_unique(es, org, from, to)
map_multiple(
es,
org,
from,
to,
multi = c("list", "filter", "asNA", "CharacterList")
)
map_add_element(es, org, from, add)
|
es |
The BiocSet objec to map the elements on. |
org |
The AnnotationDbi object to identify keys/mappings from. |
from |
A character to indicate which identifier to map from. |
to |
A character to indicate which identifier to map to. |
multi |
How should multiple values be returned? Options include:
|
add |
The id to add to the |
For map_unique
, a BiocSet
object with unique
elements.
For map_multiple
, a BiocSet
object with multiple
mappings for certain elements.
For map_add_element
, a BiocSet
object with a new column
in the element tibble with the mapping of the new id type.
1 2 3 4 5 6 7 8 | library(org.Hs.eg.db)
es <- BiocSet(set1 = c("C5", "GANC"), set2 = c("AFM", "CGB1", "ADAM32"))
map_unique(es, org.Hs.eg.db, "SYMBOL", "ENTREZID")
map_multiple(es, org.Hs.eg.db, "SYMBOL", "ENSEMBLTRANS", "asNA")
map <- map_add_element(es, org.Hs.eg.db, "SYMBOL", "ENTREZID")
es %>% mutate_element(entrez = map)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.