bfile2tmat {cosmo}R Documentation

Converting a MEME-style background file to a transition matrix

Description

bfile2tmat converts a MEME-style background file for specifiying the background Markov model into a transition matrix.

Usage

  bfile2tmat(file) 

Arguments

file The MEME-style background file.

Value

The estimated transition matrix for the background Markov model. This is a list of matrices, with the first matrix given the transition probabilities for the 0th order Markov model, the second matrix giving the transition probabilities for a 1st order Markov model, and so on.

Author(s)

Oliver Bembom, bembom@berkeley.edu

See Also

cosmo, bgModel

Examples

## path to example MEME-style background file
bfile <- system.file("Exfiles","bfile",package="cosmo")

tmat <- bfile2tmat(bfile)


[Package cosmo version 1.8.0 Index]