read.hmm: Read an HMM object from a file

Description Usage Arguments Value Author(s) Examples

View source: R/hmm.R

Description

This function uses phast's internal hmm format, which is quite simple. See write.hmm or file used in example below for exaples of hmm format.

Usage

1
read.hmm(filename)

Arguments

filename

The file to read

Value

An hmm object

Author(s)

Melissa J. Hubisz and Adam Siepel

Examples

1
2
3
4
5
6
7
8
exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
file <- "coding.hmm"
unzip(exampleArchive, file)
# this is a 5-state hmm with states representing
# intergenic, intron, first, second, and third codon positions.
h <- read.hmm(file)
h
unlink(file)

rphast documentation built on May 1, 2019, 9:26 p.m.