check_leaf: Check created leaf

Description Usage Arguments

View source: R/Tree_generation.R

Description

Checks that created leaf has cellularity >1 existing clone in at least one sample, and that cellularities in all samples are greater than or equal to 0.

Usage

1
check_leaf(new_leaf, Proportions_mutated)

Arguments

new_leaf

A numeric vector to be added

Proportions_mutated

Matrix with samples in columns, clones (carrying mutations) in rows.


QuantumClone documentation built on May 2, 2019, 3:03 a.m.