sampleNameFilter: Retain TCGA sample ids without the final letter designation...

Description Usage Arguments Value Examples

View source: R/moma.r

Description

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

Usage

1
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

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

califano-lab/MOMA documentation built on June 7, 2020, 7:17 a.m.