grid.lik: Auxiliary function: Grid of conditional probabilities

Description Usage Arguments Value

View source: R/grid.lik.r

Description

This auxiliary function generates the grid of likelihood values for each tumor pair (rows) and each value of xi (columns): P(observed mutations | xi)

Usage

1
grid.lik(xigrid, mutns, probamut)

Arguments

xigrid

Grid of the values of xi, corresponding to its domain of definition.

mutns

Matrix of the mutations observed, with all mutations in rows and the cases (tumor pairs) in columns. The data are coded as 0=mutation not observed, 1=shared mutation (observed in both tumors), 2=private mutation (observed in one tumor only).

probamut

Vector of the probabilities of occurence for each mutation.

Value

Return the matrix of the likelihood values for each tumor pair (rows) and each value of xi (columns). This matrix is called by the auxiliary function grid.lik, returned as a parameter by the function clonal.est, and used as a parameter by the function clonal.proba.


Clonality documentation built on Nov. 8, 2020, 7:45 p.m.