bafLikelihood: Calculate the likelihood of the observed B allele frequencies...

Description Usage Arguments Value

View source: R/genotype_cnps.R

Description

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

Usage

1
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.


scristia/CNPBayes documentation built on Aug. 9, 2020, 7:31 p.m.