splitName {limma} | R Documentation

## Split Composite Gene Names

### Description

Split composite gene names into short names and gene annotation strings.

### Usage

    splitName(x, split=";", extended=TRUE)

### Arguments

`x` | character vector
`split` | character to split each element of vector on, see `strsplit`
`extended` | logical. If `TRUE`, extended regular expression matching is used, see `strsplit`.

### Details

Gene names are assumed to comprise a short name or identifier followed by more detailed annotation information.

### Value

A list containing components

`Name` | character vector of the same length as `x` contain first splits of each element
`Annotation` | character vector of the same length as `x` contain second splits of each element

### Author(s)

Gordon Smyth

### See Also

`strsplit`.

An overview of LIMMA functions for reading data is given in 03.ReadingData.

### Examples

    x <- c("AA196000;actinin, alpha 3",
    "AA464163;acyl-Coenzyme A dehydrogenase, very long chain",
    "3E7;W15277;No Annotation")
    splitName(x)

[Package limma version 2.2.0 Index]