reconcileFeatures: Post-processing of simulated features

Description Usage Arguments Value Author(s) See Also Examples

View source: R/nucSim.R

Description

The reconcileFeatures functions provide a facility to post-process a list of features representing a simulated experiment. reconcileFeatures is an S3 generic, new functions can be added for additional types of experiment. The current default is to call reconcileFeatures.SimulatedExperiment which, if called without further arguments, will simply return the feature list unchanged.

Usage

1
2
3
4
5
6
7
reconcileFeatures(features, ...)
## Default S3 method:
reconcileFeatures(features, ...)
## S3 method for class 'SimulatedExperiment'
reconcileFeatures(features, defaultValues=list(), ...)
## S3 method for class 'NucleosomePosition'
reconcileFeatures(features, defaultMeanDist = 200, ...)

Arguments

features

List of simulated features.

defaultValues

Named list of default parameter values. The method for class SimulatedExperiment ensures that all features have at least the parameters listed in defaultValues, adding them where necessary.

defaultMeanDist

Default value for the average distance between nucleosomes for nucleosome positioning experiments.

...

Further arguments to future functions.

Value

A list of features of the same class as features.

Author(s)

Peter Humburg

See Also

makeFeatures, placeFeatures

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
set.seed(1)
## generate a (relatively short) sequence of nucleosome features
features <- makeFeatures(length=1e6, )

## check the total length of the features
sum(sapply(features, "[[", "length")) ## 995020

## reconcile features to ensure smooth transitions
## For experiments of class NucleosomePosition this 
## also combines some features and introduces
## some overlap between them.
features <- reconcileFeatures(features)
 
## check the total length of the features again
sum(sapply(features, "[[", "length")) ## 984170

ChIPsim documentation built on Nov. 8, 2020, 8:09 p.m.