This function performs a grid search over enumerated
configurations within the pre-defined list eS
grid_ITH_optim(
my_data,
my_purity,
list_eS,
pi_eps0 = NULL,
trials = 20,
max_iter = 4000,
my_epsilon = 1e-06
)A R list containing two objects. GRID is a
dataframe where each row denotes a feasible subclone configuration
with corresponding subclone proportion estimates q and
somatic variant allocations alloc. INFER is a list
where INFER[[i]] corresponds to the i-th row or
model of GRID.
A R dataframe containing the following columns:
tADtumor alternate read counts
tRDtumor reference read counts
CN_1minor allele count
CN_2major allele count, where CN_1 <= CN_2
tCNCN_1 + CN_2
A single numeric value of known/estimated purity
A nested list of subclone configuration matrices
A user-specified parameter denoting the proportion
of loci not explained by the combinations of purity, copy number,
multiplicity, and allocation. If NULL, it is initialized at
1e-3. If set to 0.0, the parameter is not estimated.
Positive integer, number of random initializations of subclone proportions
Positive integer, preferably 1000 or more, setting the maximum number of iterations
Convergence criterion threshold for changes in the log likelihood, preferably 1e-6 or smaller