normalize_genename: Make Gene Names Legal Variable Names

Description Usage Arguments Value See Also Examples

Description

It is common that gene names are saved as names of rows or columns of an expression matrix. In R, this could create some problems because some gene names are not legal variable names and thus will be converted when they are saved as column names (which R assumes that they should be legal variable names). This automatic confusion might interfere with name matching. normalize_genename() converts gene names to make them legal variable names, thereby make sure the gene names compared are consistently after conversin. normalize_genename() will add a prefix (gn_) to gene names to make gene names starting with a number legal, and then calls make.names() to convert illegal punctuations.

Usage

1

Arguments

gene

a character vector containing gene names

Value

a character vector containing prefixed and converted gene names

See Also

denormalize_genename()

Examples

1

chenyenchung/genofeatutil documentation built on May 15, 2019, 10:38 p.m.