tool.translate: Translate gene symbols

Description Usage Arguments Value Author(s) Examples

View source: R/cle.LS.R

Description

tool.translate converts the symbols given in the list from into the list to. e.g. we can translate human gene symbols into the mouse orthologs (or vice versa) if the symbol mapping file is provided.

Usage

1
tool.translate(words, from, to)

Arguments

words

translation table including words (i.e. gene symbols) that will be translated

from

a list denoting the words will be translated from which symbols

to

a list denoting the words will be translated to which symbols

Value

words

translated table (words)

Author(s)

Ville-Petteri Makinen

Examples

1
2
3
4
5
6
7
8
9
syms <- tool.read(system.file("extdata", "symbols.txt", 
package="Mergeomics"))
syms <- syms[,c("HUMAN", "MOUSE")]
names(syms) <- c("FROM", "TO")
moddata <- tool.read(system.file("extdata", 
"modules.mousecoexpr.liver.human.txt", package="Mergeomics"))
moddata$NODE <- moddata$GENE
moddata$NODE <- tool.translate(words=moddata$NODE, from=syms$FROM, 
to=syms$TO)

Mergeomics documentation built on Nov. 8, 2020, 6:58 p.m.