Skip to contents

Grid of tumor purities, tumor ploidies is sorted by the associated values of kappas (values of the objective function) and top k values (i.e., with the smallest kappa) are returned

Usage

topk(grid, kappas, k)

Arguments

grid

grid of tumor purities, tumor ploidies (matrix)

kappas

vector of associated values of the objective function kappa

k

top k to be returned

Value

elements of the grid with the k smallest values of kappa, together with the corresponding valaues of kappa

See also

find_cnhplus