maftools_extract_geneset_by_altered_samples: Extract geneset

maftools_extract_geneset_by_altered_samplesR Documentation

Extract geneset

Description

Create a genelist containing the genes mutated in the most samples in a maf. If topn > total number of mutated genes then all mutated genes are returned.

Usage

maftools_extract_geneset_by_altered_samples(maf, topn = 100)

Arguments

maf

tab delimited MAF file. File can also be gz compressed. Required. Alternatively, you can also provide already read MAF file as a dataframe.

topn

How many genes to include in the gene-set.

Value

The names of genes mutated in the most samples (character vector).

Examples

CRUX:::maftools_extract_geneset_by_altered_samples(maftools::tcgaLoad("GBM"), topn=50)

CCICB/CRUX documentation built on Jan. 28, 2024, 10:12 p.m.