findComps: Finds columns in the M3D test-statistic matrix

Description Usage Arguments Value Author(s) Examples

View source: R/findComps.R

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

1
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

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

M3D documentation built on April 29, 2020, 5:59 a.m.