grid.lik {Clonality} | R Documentation

## Auxiliary function: Grid of conditional probabilities

### 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

    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.

[Package Clonality version 1.36.0 Index]