CASCADE 

Contextualizing untargeted Annotation with Semi-quantitative
Charged Aerosol Detection for pertinent characterization of natural
Extracts.
cascade is an R package for analyzing natural-product extracts by linking
untargeted LC-HRMS/MS feature tables and taxonomically informed metabolite
annotations with semi-quantitative universal detectors (CAD, PDA, ELSD). It
provides Fourier low-pass filtering, derivative-based peak sharpening,
exponential-Gaussian hybrid (EGH) peak fitting, trapezoidal integration, MS1
extracted ion chromatogram correlation, LOTUS/Wikidata chemotaxonomic summaries,
and interactive plots.
The original method is described at https://doi.org/10.1021/acs.jafc.3c03099.

To process your own extracts you need:
Installation
cascade is not on CRAN. Requires R (>= 4.5.0) and NetCDF system libraries for
mzR (brew install netcdf on macOS; libnetcdf-dev on Debian/Ubuntu).
Install from source on GitHub:
# Using pak
pak::pak("adafede/cascade")
# Or using remotes
remotes::install_github("adafede/cascade")
Or install prebuilt binaries when available via r-universe:
install.packages(
"cascade",
repos = c(
"https://adafede.r-universe.dev",
"https://cran.r-universe.dev",
"https://bioc.r-universe.dev"
)
)
Because the package bundles roughly 45 MB of bzip2-compressed example datasets
under data/, initial source installation takes several minutes.
Quickstart
All bundled examples use Swertia chirayita LC-CAD-HRMS/MS data and run offline
with show_example = TRUE:
library(cascade)
# Inspect detector retention-time alignment and peak integration
check_chromatograms_alignment(show_example = TRUE)
check_peaks_integration(show_example = TRUE)
# Integrate detector peaks and correlate with MS1 extracted ion chromatograms
peaks <- process_compare_peaks(show_example = TRUE)
# Build interactive pseudochromatograms and treemaps from TIMA annotations
plots <- generate_pseudochromatograms(show_example = TRUE)
# Visualize standalone TIMA annotation outputs
prepare_tima_annotations(show_example = TRUE) |>
plot_tima()
Further step-by-step examples are available in the
articles.
Scope and Limitations
- Network-dependent functions:
generate_ids() queries the Wikidata SPARQL
endpoint (query.wikidata.org, falling back to QLever). generate_ids() and
generate_tables() download the LOTUS snapshot from Zenodo to
data/source/libraries/lotus.csv.gz under the working directory when that
file is absent.
- Detector assumptions:
process_compare_peaks() correlates MS1 XICs
against one trace, detector = "cad", "pda", or "bpi"; another universal
detector (e.g. ELSD) is read by mapping its chromatogram ID in headers. The
detector-to-MS offset shift (min) moves the XIC window;
check_chromatograms_alignment() can estimate it (cad_shift = "auto").
- Bundled data coverage: Swertia chirayita extract. Chromatograms are
bundled for both polarities; MS1 data, features, and annotations for positive
mode only. External files must follow the mzmine CSV and TIMA TSV column
schemas.
Citations and Dependencies
To cite cascade in publications, run citation("cascade"):
Depending on the steps in your workflow, please also cite the upstream tools and
resources used:
Core R package dependencies declared in DESCRIPTION: baseline, curl,
data.table, ggplot2, gt, mzR, and plotly.
评论