computeGphmmParam: Compute gphmm parameters from counts.

Description Usage Arguments Examples

View source: R/trainGPHMM.R

Description

computeGphmmParam returns a list with gphmm parameters.

Usage

1

Arguments

emiTrans

- list with emission and transition counts.

Examples

1
2
3
4
5
6
7
library(Biostrings)
seqs <- DNAStringSet(c(a='ATGC', b = 'ATGG', c = 'ATGT'))
csv <- data.frame(queries = c('a', 'b'), refs = c('c', 'c'))
gphmmPerRead <- makeGphmmPerRead(seqs, csv)
parameters <- initializeGphmm()
counts <- lapply(1:nrow(csv), function(i) gphmmPerRead(i, parameters))
computeGphmmParam(counts)

gphmm documentation built on Oct. 2, 2017, 5:03 p.m.