select_genes_on_mutations {CIMICE} | R 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)

[Package CIMICE version 1.2.1 Index]