shortGeneName: Shorten GeneIDs for Simplicity

View source: R/shortGeneName.R

shortGeneNameR Documentation

Shorten GeneIDs for Simplicity

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

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

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

robertdouglasmorrison/DuffyTools documentation built on April 16, 2024, 6:31 a.m.