Skip to contents

Writes TRACE results to an Excel workbook, including one sheet per polarity with **all xcms features** and their TRACE annotations (if present), including `type`, `TRACE_fragment`, `TRACE_isotope`, `TRACE_cor`, `TRACE_net_score`, and `TRACE_anno_score` when available. Additional sheets include the raw TRACE annotation tables and (when available) CN labelling-ratio outputs from `object@advancedAna$TRACE_temp`.

Usage

TRACE_export(object, file = NULL)

Arguments

object

MSdev object with TRACE results in `object@advancedAna$TRACE`.

file

Output xlsx path. Default is `file.path(object@projectInfo$projectDir, "Statistic", "TRACE.xlsx")` when `projectDir` is set; otherwise `paste0(object@projectInfo$MSdevFile, ".TRACE.xlsx")`.

Value

Invisibly, the output file path.