sampleNameFilter {MOMA} | R Documentation

## Retain TCGA sample ids without the final letter designation ('A/B/C')

### Description

Retain TCGA sample ids without the final letter designation ('A/B/C')

### Usage

    sampleNameFilter(input, desired.len = 15)

### Arguments

`input` | Matrix of expression or protein activity scores. Columns are sample names, rows are genes. Input can also just be an input vector of sample names.
`desired.len` | length to reduce strings to. Default is 15 because of TCGA naming conventions

### Value

An identical matrix with new (shorter) column names, or a vector with the shortened names.

### Examples

    sample.names <- c("TCGA-14-1825-01A", "TCGA-76-4931-01B", "TCGA-06-5418-01A")
    sampleNameFilter(sample.names)

[Package MOMA version 1.4.0 Index]