check_leaf: Check created leaf
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
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.