TCGAbarcode {TCGAutils} | R Documentation |
This function returns the specified snippet of information obtained from the TCGA barcode.
TCGAbarcode(barcodes, participant = TRUE, sample = FALSE, portion = FALSE, plate = FALSE, center = FALSE, index = NULL)
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 '-') |
A character vector or data matrix of TCGA barcode information
M. Ramos
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)