TCGAsampleSelect: Select samples from barcodes from lookup table

Description Usage Arguments Value Examples

View source: R/TCGAsampleSelect.R

Description

The TCGA barcode contains several pieces of information which can be parsed by the TCGAbarcode function. To select a specific type of sample, enter the appropriate sampleCode argument from the lookup table. See lookup table in data("sampleTypes"). Barcode inputs can be a character vector or a CharacterList object.

Usage

1
TCGAsampleSelect(barcodes, sampleCodes)

Arguments

barcodes

Either a TCGA barcode vector or CharacterList containing patient identifiers, sample, portion, plate, and center codes.

sampleCodes

Either a character or numeric vector of TCGA sample codes. See the sampleType dataset.

Value

A logical vector or LogicalList of the same length as 'barcodes' indicating sample type matches

Examples

1
2
example("TCGAbarcode")
TCGAsampleSelect(barcodes, c(11, 01))

TCGAutils documentation built on April 17, 2021, 6:04 p.m.