lupost3.vec: Likelihood of sample specific mutation rate given the...

Description Usage Arguments Value Note

View source: R/MADGiC.R

Description

Calculates the log likelihood of the sample specific mutation rate under the background mutation model. Similar to lupost2.vec except that it returns the raw value of the likelihood value instead of the logarithm and it is not normalized with base.

Usage

1
  lupost3.vec(t, mutationexist, C, D, uniqueA, tableA)

Arguments

t

numeric value of sample-specific mutation rate (log-scale)

mutationexist

logical value indicating whether to include observed mutations in the current gene

C

subset of matrix muttable (see calculate.bij) containing only those rows corresponding to the current sample

D

numeric value corresponding to the sum of the logarithms of the first column of C

uniqueA

a numeric vector containing all unique values of A (see getA)

tableA

a numeric vector of the same length of uniqueA that contains the number of instances of each value in uniqueA

Value

log likelihood of the sample-specific mutation rate q_j under the background mutation model given the observed mutations.

Note

This internal function is not intended to be called by the user.


kdkorthauer/MADGiC documentation built on June 13, 2020, 1:35 p.m.