Description Usage Arguments Details Value Examples
View source: R/remap_identifiers.R
The various GeneSetDb data providers limit the identifier types that they provide. Use this function to map the given identifiers to whichever type you like.
1 2 3 4 5 6 7 | remap_identifiers(
x,
xref,
original_id = colnames(xref)[1L],
target_id = colnames(xref)[2L],
...
)
|
x |
The GeneSetDb with identifiers to convert |
xref |
If a species ( |
You need to provie a data.frame that has a column for the current identifiers and another column for the target identifiers.
When there are multiple target id's for the source id, they will all be returned. When there is no target id for the source id, the soure feature will be axed.
By default, the first column of the xref
data.frame is assumed to be
the source identifiers, and the second is the target_id you want to remap
the identifiers to.
a remapped GeneSetDb object
1 2 3 4 | gdb.entrez <- exampleGeneSetDb()
gdb.ens <- remap_identifiers(gdb.entrez, "human",
original_id = "entrezgene_id",
target_id = "ensembl_gene_id")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.