viterbi2Gviz: Convert state segmentation for plotting with Gviz

Description Usage Arguments Value

View source: R/utils.R

Description

Convert state segmentation for plotting with Gviz

Usage

1
viterbi2Gviz(viterbi, chrom, gen, from, to, statecols, col = NULL)

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.

col

Background color.

Value

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


STAN documentation built on Nov. 8, 2020, 11:11 p.m.