Split a diffFeatureGroups data.frame into a list of two featureGroups
data.frames, which can then be passed to simphony()
.
Arguments
- diffFeatureGroups
data.frame
with optional columnsmeanBase
,dBase
,meanSd
,dSd
,meanAmp
,dAmp
,meanPhase
, anddPhase
describing the changes in abundance between two conditions. Each row corresponds to a group of features.- checkValid
Logical for whether to only return rows for which both amplitudes are greater than or equal to zero and both standard deviations are greater than zero.
Value
List of two data.table
s with possible columns base
, sd
, amp
,
and phase
, depending on the columns in diffFeatureGroups
.
Examples
dGroups = data.frame(meanAmp = c(1, 1, 1, 1), dAmp = c(1, 1, 2, 2),
meanPhase = c(0, 0, 0, 0), dPhase = c(0, 3, 0, 3))
featureGroups = splitDiffFeatureGroups(dGroups)