Skip to contents

Export PAVE vs TRACE metabolite assignment table

Usage

export_compare_pave_trace_diff_metabolite(
  assignment,
  file = file.path("cache", "TRACE_PAVE_Diff_Metabolite.xlsx"),
  chem_lib_path = NULL,
  cpdb_path = NULL
)

Arguments

assignment

Path to assignment xlsx or data frame with feature_id, type, reason, compound_id_pave, and compound_id_trace.

file

Output path without or with extension (.xlsx / .csv). Default cache/TRACE_PAVE_Diff_Metabolite.xlsx.

chem_lib_path

Optional path to chem_lib.xlsx.

cpdb_path

Optional TRACE compound-database xlsx with compound_id and name. Used when chem_lib_path is NULL.

Value

Invisibly, the exported data frame. Attribute file gives the path written.