Skip to contents

Starts from a PAVE adduct feature and walks upstream along cn.seed.ig adduct-parent edges to the metabolite root (not the TRACE seed field, which often skips intermediate adducts). Each edge is labelled M-H > M+XXX from the child pave_adduct/description.

Usage

plot_compare_pave_adduct_conflict_demo(
  object,
  assignment = NULL,
  index = 1L,
  demos = NULL,
  pave.trace.merged.lib = NULL,
  i.pol = 0,
  lib_fill = "#4DBBD5",
  other_fill = "grey92",
  return.data = FALSE
)

Arguments

object

MSdev object used to build demos.

assignment

Assignment table/path passed to [compare_pave_adduct_conflict_demos()], unless demos is supplied.

index

1-based index into ranked demos.

demos

Optional precomputed list from [compare_pave_adduct_conflict_demos()].

pave.trace.merged.lib

Optional merged library table.

i.pol

Polarity index (0 = negative).

lib_fill

Fill color for TRACE library-hit nodes.

other_fill

Fill color for other nodes.

return.data

If TRUE, return list with plot, demo, and layout tables.

Value

A ggplot object, or a list when return.data = TRUE.