write.hmm: Write an HMM object to a file

Description Usage Arguments Author(s) Examples

Description

Write an HMM object to a file

Usage

1
write.hmm(x, filename, append = FALSE)

Arguments

x

An object of type hmm

filename

The name of the file to write to (if NULL, write to terminal)

append

If TRUE, append hmm to existing file, otherwise overwrite.

Author(s)

Melissa J. Hubisz and Adam Siepel

Examples

1
2
3
4
5
6
7
state.names <- c("neutral", "conserved")
h <- hmm(matrix(c(0.99, 0.01, 0.01, 0.99), nrow=2,
                dimnames=list(state.names, state.names)),
                eq.freq=c(neutral=0.9, conserved=0.1))
filename <- tempfile()
write.hmm(h, filename)
unlink(filename)


Search within the rphast package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.