Description Usage Arguments Value Examples
View source: R/convert_symbols.R
This function is used to convert gene symbols, previous symbols or aliases to gene entrez ID
It performs :
-a gene query to limma::alias2Symbol to map gene alias to official symbols
-looks for LOC* symbols
-tries to find correspondence within HGNC database
-queries org.Hs.eg.db
-checks again with adaptive symbol parsing (e.g. transforms BRCA-1 to BRCA1)
1 | convert_symbols(symbols,HGNC,c=1)
|
symbols |
gene matrix from which rownames (gene symbols) are extracted |
HGNC |
HGNC correspondence file. |
c |
number of cores to use for parallel processes |
returns a vector containing IDs if match were found or NA if unknown or withdrawn symbol
1 2 3 4 5 6 7 | # import the correspondence file
file <- system.file("extdata", "HGNC.txt", package = "aliases2entrez")
HGNC <- read.delim(file)
# alternatively update a new one with update_symbols()
symbols <- c("BRCA1", "TP53")
# run the main function
ids <- convert_symbols(symbols, HGNC)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.