bafLikelihood {CNPBayes}R Documentation

Calculate the likelihood of the observed B allele frequencies for a given copy number model

Description

Calculate the likelihood of the observed B allele frequencies for a given copy number model

Usage

bafLikelihood(cn.model, snpdata)

Arguments

cn.model

a copy number model

snpdata

a SummarizedExperiment with assay element 'GT' containing an integer coding (1, 2, and 3) for the generic genotypes AA, AB, and BB, respectively.

Value

a list. The first element is the log likeihood and the second element is the copy number model that maximized the likelihood.


[Package CNPBayes version 1.12.0 Index]