mergeSimData {simphony} | R Documentation |
Merge abundance data, feature metadata, and sample metadata
Description
Merge a simulation's abundance data, feature metadata, and sample metadata
into one data.table
. This function is useful for making plots using
ggplot2.
Usage
mergeSimData(simData, features = NULL)
Arguments
simData |
List with the following elements, such as returned by
|
features |
Character vector of features for which to get abundance data.
If |
Value
data.table
.
See Also
Examples
library('data.table')
featureGroups = data.table(amp = c(0, 1))
simData = simphony(featureGroups)
mergedSimData = mergeSimData(simData, simData$featureMetadata$feature[1:2])
[Package simphony version 1.0.3 Index]