Description Usage Arguments Value Author(s) Examples
filterSegments
filters out segments below a specified minimal segment size. This can be useful to get rid of boundary effects from the Hidden Markov approach.
1 | filterSegments(segments, min.seg.width)
|
segments |
A |
min.seg.width |
The minimum segment width in base-pairs. |
The input model
with adjusted segments.
Aaron Taudt
1 2 3 4 5 6 7 8 | ## Load an HMM
file <- list.files(system.file("extdata", "primary-lung", "hmms",
package="AneuFinderData"), full.names=TRUE)
hmm <- loadFromFiles(file)[[1]]
## Check number of segments before and after filtering
length(hmm$segments)
hmm$segments <- filterSegments(hmm$segments, min.seg.width=2*width(hmm$bins)[1])
length(hmm$segments)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.