For sample RCN profile r finds CNH+ and the associated tumor purity, tumor ploidy
Source:R/find_cnhplus.R
find_cnhplus.Rd
find_cnhplus
by searching over grid, finds value of CNH+ and associated tumor purity, tumor ploidy for a sample RCN.
It also makes possible to find CNH.
Arguments
- grid,
grid of purities, ploidies (matrix)
- r
sample RCN profile (vector)
- w
vector of segment widths
- k
how many candidate pairs of purity, ploidy for the solution to return
- plus
if True (default) CNH+ is solved for; if False, CNH