TCGA_barcode: Parse TCGA barcode.

Description Usage Arguments Value Examples

View source: R/my_functions.r

Description

Taking in a full TCGA sample barcode, or any subset of the barcode, and return extracted values.

Usage

1
TCGA_barcode(x, what = "patient")

Arguments

x

TCGA barcode, or a vector of barcodes.

what

Which information to return.

Value

The specified information contained in the barcode of the same length as x.

Examples

1
2
3
TCGA_barcode(c("TCGA-02-0001-01C-01D-0182-01", "TCGA-02-0001-11C-01D-0182-01"), what="tissue")

[1] "01" "11"

traversc/trqwe documentation built on Dec. 4, 2020, 4:21 a.m.