genesToBarcodes {maftools} | R Documentation

## Extracts Tumor Sample Barcodes where the given genes are mutated.

### Description

Extracts Tumor Sample Barcodes where the given genes are mutated.

### Usage

    genesToBarcodes(maf, genes = NULL, justNames = FALSE)

### Arguments

`maf` | an `MAF` object generated by `read.maf`
`genes` | Hogo_Symbol for which sample names to be extracted.
`justNames` | if TRUE, just returns samples names instead of summarized tables.

### Value

list of `data.table`s with samples in which given genes are mutated.

### Examples

    laml.maf <- system.file("extdata", "tcga_laml.maf.gz", package = "maftools")
    laml <- read.maf(maf = laml.maf)
    genesToBarcodes(maf = laml, genes = 'DNMT3A')

[Package maftools version 2.2.10 Index]