determineGroupComps {M3D}R Documentation

Creates strings of sample pair comparisons

Description

Takes in a vector of strings of sample names and returns strings of all the comparisons, either within a testing group or between testing groups. This is not intended to be called directly by the user.

Usage

determineGroupComps(samples1, samples2 = NULL, type)

Arguments

samples1

A vector of sample names from one group

samples2

A vector of sample names from the other group, if we want to specify between-group comparisons

type

'within' or 'between'. 'within' returns all the sample pairs within samples1, 'between' returns all the sample pairs between samples1 and samples2

Value

A vector of sample pair comparisons of the form 'sample1 vs sample2' for use with the M3D functions

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

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

[Package M3D version 1.14.0 Index]