Skip to contents

Convert a tmod module set into a data frame

Usage

tmod2DataFrame(
  mset,
  rows = "modules",
  module_col = "module_id",
  feature_col = "feature_id",
  sep = ","
)

Arguments

mset

a tmod object (e.g. generated by makeTmod)

rows

if "modules", then there will be a row corresponding to each module (gene set); if "features", then there will be a row corresponding to each gene.

module_col

Name of the column with module (gene set) IDs

feature_col

Name of the column with feature (gene) IDs

sep

separator used to collate module IDs (if rows=="features") or feature IDs (if rows=="modules")

See also