Description Usage Arguments Value Author(s) See Also Examples
Given a feature density this function produces two read densities, one for each strand.
1 2 | bindDens2readDens(bindDens, fragment, nfrag = 1e+05, bind = 147,
minLength = 150, maxLength = 180, ...)
|
bindDens |
Numeric vector with the feature density for one chromosome. |
fragment |
Function giving the fragment length distribution. |
nfrag |
Number of fragments that should be simulated to generate the read distribution. |
bind |
Length of binding site. |
minLength |
Minimum fragment length. |
maxLength |
Maximum fragment length. |
... |
Further arguments to |
A two column matrix. The first column contains the read density for the forward strand, the second column the read density for the reverse strand.
Peter Humburg
1 2 3 4 5 6 7 8 9 | set.seed(1)
## generate a (relatively short) sequence of nucleosome features
features <- placeFeatures(start=200, length=1e5)
## calculate feature density
featureDens <- feat2dens(features, length=1e5)
## convert to read density
readDens <- bindDens2readDens(featureDens, fragDens, meanLength=160)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.