Skip to contents

Return a list of initialization values for some parameters through some euristics.

Usage

get_init_values(spectrum, K = 10, alpha = 10, samples = 1, pi_cutoff = 0.01)

Arguments

spectrum

Mutation data with number of variants and depth for any mutation and sample

K

Maximum number of clusters

alpha

Dirichlet concentration parameter

samples

Number of fits computed by the algorithm

pi_cutoff

Cutoff on mixing proportions to filter clusters and reassign mutations

Value

a list with initialization values

Examples

if (FALSE) { # \dontrun{
# requires the VIBER package (github.com/caravagn/VIBER), not on CRAN
set.seed(1)
spectrum = data.frame(
  Nx = rbinom(50, 100, 0.3), DPx = rep(100, 50),
  Ny = rbinom(50, 100, 0.1), DPy = rep(100, 50)
)
get_init_values(spectrum, K = 10, alpha = 10, samples = 1, pi_cutoff = 0.01)
} # }