View source: R/dataset_functions.R
mergeReplicates | R Documentation |
This simple convenience function uses
mergeGRangesData
to combine
replicates (e.g. biological replicates) of basepair-resolution GRanges
objects.
mergeReplicates(
...,
field = "score",
sample_names = NULL,
makeBRG = TRUE,
exact_overlaps = FALSE,
ncores = getOption("mc.cores", 2L)
)
... |
Either a list of GRanges objects, or any number of GRanges objects
(see |
field |
The metadata field that contains count information for each
range. |
sample_names |
Optional character vector with which to rename the datasets. This is useful if the sample names do not conform to the "_rep" naming scheme. |
makeBRG , exact_overlaps |
See |
ncores |
The number of cores to use. This function will try to maximize
the use of the |
A list of GRanges objects.
data("PROseq")
ps_list <- list(a_rep1 = PROseq[seq(1, length(PROseq), 4)],
b_rep1 = PROseq[seq(2, length(PROseq), 4)],
a_rep2 = PROseq[seq(3, length(PROseq), 4)],
b_rep2 = PROseq[seq(4, length(PROseq), 4)])
mergeReplicates(ps_list, ncores = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.