findComps {M3D}R Documentation

Finds columns in the M3D test-statistic matrix

Description

Returns the columns of the test-statistic matrix that refer to specific samples. This is not intended to be called directly by the user.

Usage

findComps(MMD, samples)

Arguments

MMD

A matrix containing the M3D test-statistic, the difference the full and methylation blind metrics, for each region in the CpGs object. Each column is a comparison between two samples, which are described in the column names.

samples

A vector of sample pairs of the form 'sample1 vs sample2' as returned from determineGroupComps

Value

Returns the indices of the M3D test-statistic components that contain the sample pair comparisons in 'samples'

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

library(BiSeq)
data(MMDlistDemo)
data(rrbsDemo)
group1 <- 'H1-hESC'
samples1 <- rownames(colData(rrbsDemo))[colData(rrbsDemo)[,]==group1]
within1 <- M3D::determineGroupComps(samples1,type='within')
findComps(MMDlistDemo, within1)

[Package M3D version 1.16.0 Index]