simulate-WGBSParam-method: Simulate a bisulfite-sequencing experiment.

Description Usage Arguments Value Warnings Note

Description

Simulate a bisulfite-sequencing experiment.

Usage

1
2
3
## S4 method for signature 'WGBSParam'
simulate(object, nsim = 1, seed = NULL, seqlevels,
  simplify = 0L, BPPARAM = bpparam())

Arguments

object

A WGBSParam object.

nsim

The number of samples to simulate using the parameters given in object. Additional samples will be technical replicates.

seed

An object specifying if and how the random number generator should be initialized ('seeded'). For the "WGBSParam" method, either NULL or an integer that will be used in a call to base::set.seed before simulating the samples. If set, the value is saved as the "seed" attribute of the returned value. The default, NULL, will not change the random generator state, and return .Random.seed as the "seed" attribute, see 'Value'.

seqlevels

A character vector of GenomeInfoDb::seqlevels at which to bisulfite-sequencing reads. If missing, the default is to use all available seqlevels.

simplify

An integer specifying whether, and by how much, the object should be simplified, see 'Value'.

BPPARAM

an optional BiocParallel::BiocParallelParam instance determining the parallel back-end to be used during evaluation.

Value

The return value depends on the value of simplify. The default (simplify = 0) means no simplification and the returned object is a list of length nsim containing SimulatedBS objects. If simplify is greater than zero, the returned object is a MethylationTuples::MethPat object with size = simplify and ncol = simplify.

Warnings

Note

Currently only simulates whole-genome bisulfite-sequencing data.


PeteHaitch/methsim documentation built on May 8, 2019, 1:32 a.m.