Learn R Programming

STAN (version 2.0.3)

viterbi2Gviz: Convert state segmentation for plotting with Gviz

Description

Convert state segmentation for plotting with Gviz

Usage

viterbi2Gviz(viterbi, chrom, gen, from, to, statecols)

Arguments

viterbi
A list containing the viterbi paths as factors. The output from getViterbi.
chrom
The chromosome/sequence if to convert.
gen
The geome id, e.g. hg19, hg38 for human.
from
Genomic start poistion.
to
Genomic end poistion.
statecols
Named vector with state colors.

Value

A list containing the viterbi path converted to Gviz objects for plotting.