Skip to contents

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.

Usage

find_cnhplus(grid, r, w, k, plus = TRUE)

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

Value

top k elements of the grid together with the associated values of the objective function kappa

See also

plot_profile