convertID: convert gene IDs by id map

Description Usage Arguments Value Examples

View source: R/networkBuilder.R

Description

For same gene, there are multple gene alias. In order to eliminate the possibility of missing any connections, convert the gene symbols to unique gene ids is important. This function can convert the gene symbols to unique ids and convert it back according a giving map.

Usage

1
convertID(x, IDsMap, ByName = c("from", "to"))

Arguments

x

a matrix or dataframe contain the columns to be converted.

IDsMap

a character vector of the identifier map

ByName

the column names to be converted

Value

a matrix or dataframe with converted gene IDs

Examples

1
2
3
data("ce.IDsMap")
bind<-cbind(from="daf-16", to=c("fkh-7", "hlh-13", "mxl-3", "nhr-3", "lfi-1"))
convertID(toupper(bind), ce.IDsMap, ByName=c("from", "to"))

GeneNetworkBuilder documentation built on Nov. 17, 2017, 12:12 p.m.