Construct a ddo where each subset consists of data for a pair of groups. This is used to facilitate analysis and visualizations of group comparisons.

divideByGroupComparisons(ftmsObj, comparisons, control = NULL)

Arguments

ftmsObj

ftmsData object

comparisons

dictates which pairwise comparisons to make. 'all' will create a matrix for all pairwise comparisons, 'control' will create a matrix for all comparisons against a specified control group, 'one-factor' will create a matrix of pairwise comparisons to be made where only one 'main_effect' changes between the two groups, or a list of specific comparisons to be made (e.g., list(c("Group1","Group2"),c("Group3","Group4"))) can be given.

control

if wanting to only compare against a control, must specify which group or sample is the control

Value

a distributed data object where each division consists of a subset of ftmsObj with data from just two groups.