Skip to contents

make_grid creates the cartesian product of a vector of purities and a vector of ploidies.

Usage

make_grid(purity, ploidy)

Arguments

purity

vector of purities

ploidy

vector of ploidies

Value

matrix comprising the cartesian product of the vector of purities and the vector of ploidies

References

van Dijk E, van den Bosch T, Lenos KJ, El Makrini K, Nijman LE, van Essen HF, Lansu N, Boekhout M, Hageman JH, Fitzgerald RC, others (2021). “Chromosomal copy number heterogeneity predicts survival rates across cancers.” Nature communications, 12(1), 1--12.

Examples

# to make grid as in van Dijk et al.
grid = make_grid(purity = seq(0.2, 1, 0.01), ploidy = seq(1.5, 5, 0.01))