simulateUnivariate: Simulate univariate data

Description Usage Arguments Value

View source: R/simulate.R

Description

Simulate known states, read counts and read coordinates using a univariate Hidden Markov Model with three states ("zero-inflation", "unmodified" and "modified").

Usage

1
simulateUnivariate(bins, transition, emission, fragLen = 50)

Arguments

bins

A GRanges-class object for which reads will be simulated.

transition

A matrix with transition probabilities.

emission

A data.frame with emission distributions (see uniHMM entry 'distributions').

fragLen

Length of the simulated read fragments.

Value

A list with entries $bins containing the simulated states and read count, $reads with simulated read coordinates and $transition and $emission.


ataudt/chromstaR documentation built on Dec. 26, 2021, 12:07 a.m.