viterbi2Gviz {STAN} | R Documentation |
Convert state segmentation for plotting with Gviz
viterbi2Gviz(viterbi, chrom, gen, from, to, statecols, col = NULL)
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. |
col |
Background color. |
A list containing the viterbi path converted to Gviz objects for plotting.