shortGeneName: Shorten GeneIDs for Simplicity

Description Usage Arguments Value See Also Examples

View source: R/shortGeneName.R

Description

Depending on the species, GeneIDs can get rather cumbersome to meet the uniqueness requirement. This function trims GeneIDs down a leading subset of terms for easier viewing and display.

Usage

1
shortGeneName(genes, split = ":", keep = 2)

Arguments

genes

character vector of GeneIDs

split

split argument for dividing the GeneID into terms. Passed to strsplit

keep

integer number of leading terms to keep for each GeneID

Value

a character vector of shortened GeneIDs. These may no longer map uniquely to exactly one gene, and are typically used for their easier appearance.

See Also

Contrast with getHumanIDterms

Examples

1
  shortGeneName( c("WASH7P:GI653635:01:14362","FAM138A:GI645520:01:34611"))

robertdouglasmorrison/DuffyTools documentation built on Dec. 7, 2018, 8:02 a.m.