feat2dens {ChIPsim} | R Documentation |
Given a list of features (as produced by makeFeatures
) computes the feature density for each
and combines them into a chromosome wide density.
feat2dens(features, length, featureBgr = TRUE, ...)
features |
A list of features. |
length |
Total length of feature density vector (i.e. chromosome length). If this is missing the length is inferred from the feature parameters. |
featureBgr |
Logical indicating whether feature specific background should be added to the density. If this is |
... |
Further arguments to |
A vector with the feature density for each position along the chromosome.
Peter Humburg
The majority of the work is done by calls to featureDensity
and joinRegion
.
set.seed(1) ## generate a (relatively short) sequence of nucleosome features features <- placeFeatures(start=200, length=1e5) ## calculate density featureDens <- feat2dens(features, length=1e5)