mergeReplicates: Merge GRanges that are of replicate experiments.

Description Usage Arguments Details Value Author(s) Examples

Description

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.

Usage

1
2
  ## S4 method for signature 'GRangesList'
mergeReplicates(reads, types, verbose = TRUE)

Arguments

reads

A GRangesList.

types

A vector the same length as reads, that gives what type of experiment each element is of.

verbose

Whether to print the progess of processing.

Details

The experiment type that each element of the merged list is of, is stored in the first element of the metadata list.

Value

A GRangesList with one element per experiment type.

Author(s)

Dario Strbenac

Examples

1
2
3
4
5
6
  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)

Repitools documentation built on Nov. 17, 2017, 12:46 p.m.