makeRandomPeaks: Make a set of randomly positioned peaks within a predefined...

Description Usage Arguments Value Author(s) Examples

Description

This helper function creates a set of random peaks with a predefined range for height and width in near-cis. If a fragment library is provided, peak centers are located on a fragment position.

Usage

1
2
makeRandomPeaks(vpStart, vpRegionDist = 100000, peakNumber = 6, 
rmaxRange = c(1500, 3000), rsdRange = c(500, 1000), fragmentLibrary = "none")

Arguments

vpStart

viewpoint position

vpRegionDist

length of viewpoint region to either side of the viewpoint where peaks can be simulated

peakNumber

number of peaks to simulate

rmaxRange

range of simulated peaks' heights (maximum)

rsdRange

range of simulated peaks' widths (standard deviation)

fragmentLibrary

optional fragment library with valid fragment positions; if one is provided, peak centers are located at a valid fragment position

Value

Data frame with random peak data for use in addPeak when creating similar, but not identical simulated replicate data

Author(s)

Carolin Walter

Examples

1
2
3
4
    if(interactive()) {
        vpStart = 69999869
        makeRandomPeaks(peakNumber=6, vpStart)
    }

walter-ca/Basic4CSim documentation built on May 28, 2019, 12:34 a.m.