Learn R Programming

fbnet (version 1.0.3)

getLocusCPT: getLocusCPT: a function for obtaining the coditional probability table from a specific locus.

Description

getLocusCPT: a function for obtaining the coditional probability table from a specific locus.

Usage

getLocusCPT(bn, locus, lumpingParameter = NULL, renorm = "row-wise")

Value

A bayesian network based on pedigree evidence and QP definition.

Arguments

bn

A bayesian network for pedigree object with information of the genotyped members. The ped object must be in Familias format.

locus

Specified locus.

lumpingParameter

Used for stepwise mutational model.

renorm

If "row-wise" is selected, zero probability is assigned for transitions out of range.

Examples

Run this code
pbn  <- initBN(toyped)
bnet <- buildBN(pbn,QP=3)
bn1  <- buildCPTs(bnet)
locCPT <- getLocusCPT(bn1,"M1")

Run the code above in your browser using DataLab