lupost4.vec: Posterior mean of sample-specific mutation rate given the...

Description Usage Arguments Value Note

View source: R/MADGiC.R

Description

Calculates the posterior mean of the sample specific mutation rate under the background mutation model. Similar to lupost2.vec except that it returns the un-normalized value for the posterior mean of the sample-specific rate.

Usage

1
2
  lupost4.vec(t, mutationexist, C, D, uniqueA, tableA,
    base)

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

base

minimum value of the log likelihood of the sample-specific mutation rate q_j given the background model

Value

unormalized posterior mean 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.