select_genes_on_mutations: Filter dataset by genes' mutation count

View source: R/preprocessing.R

select_genes_on_mutationsR Documentation

Filter dataset by genes' mutation count

Description

Dataset filtering on genes, based on their mutation count

Usage

select_genes_on_mutations(mutmatrix, n, desc = TRUE)

Arguments

mutmatrix

input dataset (mutational matrix) to be reduced

n

number of genes to be kept

desc

TRUE: select the n least mutated genes, FALSE: select the n most mutated genes

Value

the modified dataset (mutational matrix)

Examples


# keep information on the 100 most mutated genes
select_genes_on_mutations(example_dataset(), 5)
# keep information on the 100 least mutated genes
select_genes_on_mutations(example_dataset(), 5, desc = FALSE)


redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.