getOverlapUniverse: getOverlapUniverse

View source: R/utilities.R

getOverlapUniverseR Documentation

getOverlapUniverse

Description

This function overlaps results from a list of MethQTLResults and returns the union of all the input data points used.

Usage

getOverlapUniverse(meth.qtl.res, type)

Arguments

meth.qtl.res

An object of type MethQTLResult-class or a list of such objects

type

The type of annotation to be overlapped. Needs to be 'SNP', 'CpG' or 'cor.block'

Value

A list with two GRanges objects, one containing the overlapped set and the other the union of input data points as elements 'all.qtl' and 'all.input'

Author(s)

Michael Scherer

Examples

meth.qtl.res.1 <- loadMethQTLResult(system.file("extdata","MethQTLResult_chr18",package="MAGAR"))
meth.qtl.res.2 <- meth.qtl.res.1
res <- getOverlapUniverse(list(A=meth.qtl.res.1,B=meth.qtl.res.2),type="SNP")

MPIIComputationalEpigenetics/MAGAR documentation built on Dec. 6, 2024, 2:30 p.m.