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 simphony():

abundData

Matrix of abundance values, with rownames for features and colnames for samples.

sampleMetadata

data.table with columns sample and cond.

featureMetadata

data.table with columns feature and cond.

features

Character vector of features for which to get abundance data. If NULL, then all features.

Value

data.table.

See Also

simphony()

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]