subset_by_segment_minmutations: Retain clonal segments with minimum number of mutations.

View source: R/subsample.R

subset_by_segment_minmutationsR Documentation

Retain clonal segments with minimum number of mutations.

Description

It retains only the set of clonal segments that have mapped at least 'n' mutations mapped.

Usage

subset_by_segment_minmutations(x, n = 50)

Arguments

x

A CNAqc object.

n

The minimum number of mutations per segment.

Value

A CNAqc object that should have less segments.

Examples

data('example_dataset_CNAqc', package = 'CNAqc')
x = init(mutations = example_dataset_CNAqc$mutations, cna = example_dataset_CNAqc$cna, purity = example_dataset_CNAqc$purity)

subset_by_segment_minmutations(x, 0)
subset_by_segment_minmutations(x, 10)

caravagnalab/CNAqc documentation built on Oct. 31, 2024, 3:54 a.m.