TCGAbarcode: Parse data from TCGA barcode

Description Usage Arguments Value Author(s) Examples

View source: R/TCGAbarcode.R

Description

This function returns the specified snippet of information obtained from the TCGA barcode.

Usage

1
2
TCGAbarcode(barcodes, participant = TRUE, sample = FALSE,
  portion = FALSE, plate = FALSE, center = FALSE, index = NULL)

Arguments

barcodes

A character vector of TCGA barcodes

participant

Logical (default TRUE) participant identifier chunk

sample

Logical (default FALSE) includes the numeric sample code of the barcode and the vial letter

portion

Logical (default FALSE) includes the portion and analyte codes of the barcode

plate

Logical (default FALSE) returns the plate value

center

Logical (default FALSE) returns a matrix with the plate and center codes

index

A numerical vector of TCGA barcode positions desired when split by the delimiter (i.e., hyphen '-')

Value

A character vector or data matrix of TCGA barcode information

Author(s)

M. Ramos

Examples

1
2
3
4
5
6
7
8
9
barcodes <- c("TCGA-B0-5117-11A-01D-1421-08",
"TCGA-B0-5094-11A-01D-1421-08",
"TCGA-E9-A295-10A-01D-A16D-09")

## Patient identifiers
TCGAbarcode(barcodes)

## Sample identifiers
TCGAbarcode(barcodes, sample = TRUE)

waldronlab/BiocInterfaces documentation built on Nov. 16, 2018, 1:19 a.m.