mergeReplicates | R Documentation |
A lane of next generation sequencing data can be stored as a GRanges
object. Sometimes, a GRangesList
of various lanes can have experimental
replicates. This function allows the merging of such elements.
## S4 method for signature 'GRangesList'
mergeReplicates(reads, types, verbose = TRUE)
reads |
A |
types |
A vector the same length as |
verbose |
Whether to print the progess of processing. |
The experiment type that each element of the merged list is of, is stored in the first element of the metadata list.
A GRangesList
with one element per experiment type.
Dario Strbenac
library(GenomicRanges)
grl <- GRangesList(GRanges("chr1", IRanges(5, 10)),
GRanges("chr18", IRanges(25, 50)),
GRanges("chr22", IRanges(1, 100)))
antibody <- c("MeDIP", "MeDIP", "H3K4me3")
mergeReplicates(grl, antibody)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.