View source: R/shortGeneName.R
shortGeneName | R Documentation |
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.
shortGeneName(genes, split = ":", keep = 2)
genes |
character vector of GeneIDs |
split |
split argument for dividing the GeneID into terms. Passed to |
keep |
integer number of leading terms to keep for each GeneID |
a character vector of shortened GeneIDs. These may no longer map uniquely to exactly one gene, and are typically used for their easier appearance.
Contrast with getHumanIDterms
shortGeneName( c("WASH7P:GI653635:01:14362","FAM138A:GI645520:01:34611"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.