View source: R/pipeline_functions.R
get_IDtransfer | R Documentation |
get_IDtransfer
creates a data frame for ID conversion using biomaRt. For example, to convert Ensembl ID into gene symbol.
get_IDtransfer(
from_type = NULL,
to_type = NULL,
add_type = NULL,
use_genes = NULL,
dataset = NULL,
ignore_version = FALSE,
useCache = TRUE
)
from_type |
character, the attribute name match the current ID type (the type of |
to_type |
character, the attribute name to convert into. |
add_type |
character, the additional attribute name to add into the conversion data frame. |
use_genes |
a vector of characters, the genes for ID conversion. If NULL, all genes will be selected. |
dataset |
character, name of the dataset used for ID conversion. For example, "hsapiens_gene_ensembl".
If NULL, |
ignore_version |
logical, if it is set to TRUE and |
useCache |
Boolean, parameter pass to |
Return a data frame for ID conversion.
use_genes <- c("ENST00000210187","ENST00000216083","ENST00000216127",
"ENST00000216416","ENST00000217233","ENST00000221418")
transfer_tab <- get_IDtransfer(from_type = 'ensembl_transcript_id',
to_type='external_gene_name',
use_genes=use_genes,
dataset='hsapiens_gene_ensembl')
## get transfer table !!!
res1 <- get_name_transfertab(use_genes,transfer_tab=transfer_tab)
transfer_tab_withtype <- get_IDtransfer2symbol2type(from_type = 'ensembl_transcript_id',
use_genes=use_genes,
dataset='hsapiens_gene_ensembl')
## get transfer table !!!
## Not run:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.