TCGAsampleSelect: Select samples from barcodes from lookup table

View source: R/TCGAsampleSelect.R

TCGAsampleSelectR Documentation

Select samples from barcodes from lookup table

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

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


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


waldronlab/BiocInterfaces documentation built on Nov. 4, 2024, 7:48 a.m.