subset_by_segment_karyotype: Subset by clonal segments.

View source: R/subsample.R

subset_by_segment_karyotypeR Documentation

Subset by clonal segments.

Description

Retains only a subset of clonal segments, e.g., all '2:1' segments.

Usage

subset_by_segment_karyotype(x, karyotypes)

Arguments

x

A new CNAqc object with subset data.

karyotypes

A list of karyotype ids in "Major:minor" notation (e.g., "1:1", "2,1", ...) that will be retained.

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_karyotype(x, '2:2')
subset_by_segment_karyotype(x, '2:1')

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