eic_plot_compounds
Overlay extracted ion chromatogram (EIC) traces for selected compounds in one sample and return a PNG image, so you can inspect co-elution directly without file output.
Instructions
Overlay several identified compounds' EIC traces for ONE sample — as a PNG image by default.
Read-only; writes no file.
output="image" (the default) renders the overlay server-side and returns it
as an image block plus a one-line caption, so the figure appears directly in the
chat. output="payload" instead returns the client-neutral
lipidmix.eic.multi.v1 JSON for a client that draws its own interactive chart
(Use-LLLM's Plotly view); the deployment default can be flipped with the
LIPIDMIX_PLOT_OUTPUT environment variable. Prefer the image — one overlay's
coordinate payload costs tens of thousands of tokens and an LLM cannot read a
trace usefully.
One call plots one sample: file_id is required. To compare samples, call
this tool once per sample and show the figures side by side. top_n caps how
many compounds are overlaid (default 8: more than that is unreadable in one
figure and multiplies the payload).
Compounds are selected from the ARF2 annotation: names matches ARF2
Name as a case-insensitive substring and ontologies matches ARF2
Ontology exactly (case-insensitive); the two results are unioned. At
least one of them is required.
spot_id = AlignmentID is verified against the EIC spot RT and m/z, so a
compound whose identity cannot be confirmed is not drawn. EIC files written
by MS-DIAL before 2023-11-20 carry no spot m/z (-1); those spots borrow the
ARF2 MassCenter after an RT check, and a caveat says so. Everything that was
excluded — mismatch, missing trace, or falling outside top_n — is listed
with its reason in selection.dropped; read it before concluding that a
compound is absent from the sample.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | No | ||
| title | No | ||
| top_n | No | ||
| output | No | ||
| file_id | Yes | ||
| arf2_path | No | ||
| file_path | No | ||
| normalize | No | none | |
| ontologies | No |