feature-group-fragment-classification
Summary
Annotate and group LC-MS features as isotopes, adducts, or in-source fragments by applying mass-shift detection logic and neutral-loss pattern matching. This skill produces a labeled feature table that disambiguates related peaks, enabling more accurate downstream metabolite identification and reduces false positives in nontargeted metabolomics.
When to use
Apply this skill when you have a detected LC-MS feature table (with m/z, retention time, and intensity columns) and need to identify which features are derivatives of the same parent molecule rather than distinct metabolites. Use it before MS/MS annotation or statistical analysis to collapse redundant features and improve annotation confidence.
When NOT to use
- Input is already a curated, manually validated feature group assignment.
- Analysis does not require disambiguation of related features (e.g., targeted assay with known metabolite list).
- Raw spectrum data have not yet undergone peak detection and segmentation.
Inputs
- LC-MS feature table (m/z, retention time, intensity columns)
- Detection parameters (isotope mass tolerance, retention time window, adduct mass shifts, neutral loss patterns)
Outputs
- Annotated feature table with group ID and annotation label per feature
- Feature group membership assignments (isotope, adduct, or in-source fragment)
How to apply
Load the feature table containing m/z, retention time, and intensity values. Apply isotope detection by identifying features that differ by 1.003 Da (carbon-13 isotope shift) within a shared retention time window. Apply adduct detection to identify features related by common mass shifts (+H, +Na, +NH4, +K, –H). Apply in-source fragment detection to identify features related by characteristic neutral loss patterns (–H2O, –NH3). Assign each feature a group ID and annotation label (isotope, adduct, or fragment) based on detected relationships. Output the annotated feature table with group membership and annotation type for downstream use.
Related tools
- masscube (Integrated LC-MS data processing package implementing feature group annotation via isotope, adduct, and in-source fragment detection) — https://github.com/huaxuyu/masscube/
- Python (Language environment for executing masscube annotation workflows)
Evaluation signals
- All features in the output table have a non-null group ID and annotation label (isotope, adduct, or fragment).
- Isotope-grouped features differ by 1.003 ± tolerance Da and share retention time within specified window.
- Adduct-grouped features match known mass shifts (+H, +Na, +NH4, +K, –H) and share retention time.
- Fragment-grouped features are linked to parent features by documented neutral loss patterns (–H2O, –NH3).
- Number of unique group IDs is less than the total number of features (feature collapsing has occurred).
- No feature is assigned to multiple groups (group membership is mutually exclusive).
Limitations
- Annotation accuracy depends on correct specification of isotope mass tolerance, retention time window, and adduct/neutral loss parameters; misaligned windows may merge unrelated features or fail to link true relatives.
- In-source fragments are detected only if their neutral loss patterns are predefined; unexpected loss patterns will not be captured.
- Features with very similar m/z and retention time may be conflated if tolerance windows are too wide.
- No changelog is provided for the masscube package, limiting visibility into method updates or bug fixes.
Evidence
- [other] masscube implements a feature group annotation mechanism that confidently labels features as isotopes, adducts, and in-source fragments.: "masscube implements a feature group annotation mechanism that confidently labels features as isotopes, adducts, and in-source fragments."
- [other] Load the feature table (containing m/z, retention time, and intensity values for detected features). Apply isotope detection logic to identify features differing by 1.003 Da (carbon-13 isotope shift) within a retention time window.: "Load the feature table (containing m/z, retention time, and intensity values for detected features). Apply isotope detection logic to identify features differing by 1.003 Da (carbon-13 isotope shift)"
- [other] Apply adduct detection to identify features related by common adduct mass shifts (e.g., +H, +Na, +NH4, +K, –H).: "Apply adduct detection to identify features related by common adduct mass shifts (e.g., +H, +Na, +NH4, +K, –H)."
- [other] Apply in-source fragment detection to identify features related by characteristic neutral loss patterns (e.g., –H2O, –NH3).: "Apply in-source fragment detection to identify features related by characteristic neutral loss patterns (e.g., –H2O, –NH3)."
- [readme] Confident annotation of feature groups including isotopes, adducts and in-source fragments.: "Confident annotation of feature groups including isotopes, adducts and in-source fragments."
1---2name: feature-group-fragment-classification3description: Use when you have a detected LC-MS feature table (with m/z, retention time, and intensity columns) and need to identify which features are derivatives of the same parent molecule rather than distinct metabolites.4license: CC-BY-4.05---67# feature-group-fragment-classification89## Summary1011Annotate and group LC-MS features as isotopes, adducts, or in-source fragments by applying mass-shift detection logic and neutral-loss pattern matching. This skill produces a labeled feature table that disambiguates related peaks, enabling more accurate downstream metabolite identification and reduces false positives in nontargeted metabolomics.1213## When to use1415Apply this skill when you have a detected LC-MS feature table (with m/z, retention time, and intensity columns) and need to identify which features are derivatives of the same parent molecule rather than distinct metabolites. Use it before MS/MS annotation or statistical analysis to collapse redundant features and improve annotation confidence.1617## When NOT to use1819- Input is already a curated, manually validated feature group assignment.20- Analysis does not require disambiguation of related features (e.g., targeted assay with known metabolite list).21- Raw spectrum data have not yet undergone peak detection and segmentation.2223## Inputs2425- LC-MS feature table (m/z, retention time, intensity columns)26- Detection parameters (isotope mass tolerance, retention time window, adduct mass shifts, neutral loss patterns)2728## Outputs2930- Annotated feature table with group ID and annotation label per feature31- Feature group membership assignments (isotope, adduct, or in-source fragment)3233## How to apply3435Load the feature table containing m/z, retention time, and intensity values. Apply isotope detection by identifying features that differ by 1.003 Da (carbon-13 isotope shift) within a shared retention time window. Apply adduct detection to identify features related by common mass shifts (+H, +Na, +NH4, +K, –H). Apply in-source fragment detection to identify features related by characteristic neutral loss patterns (–H2O, –NH3). Assign each feature a group ID and annotation label (isotope, adduct, or fragment) based on detected relationships. Output the annotated feature table with group membership and annotation type for downstream use.3637## Related tools3839- **masscube** (Integrated LC-MS data processing package implementing feature group annotation via isotope, adduct, and in-source fragment detection) — https://github.com/huaxuyu/masscube/40- **Python** (Language environment for executing masscube annotation workflows)4142## Evaluation signals4344- All features in the output table have a non-null group ID and annotation label (isotope, adduct, or fragment).45- Isotope-grouped features differ by 1.003 ± tolerance Da and share retention time within specified window.46- Adduct-grouped features match known mass shifts (+H, +Na, +NH4, +K, –H) and share retention time.47- Fragment-grouped features are linked to parent features by documented neutral loss patterns (–H2O, –NH3).48- Number of unique group IDs is less than the total number of features (feature collapsing has occurred).49- No feature is assigned to multiple groups (group membership is mutually exclusive).5051## Limitations5253- Annotation accuracy depends on correct specification of isotope mass tolerance, retention time window, and adduct/neutral loss parameters; misaligned windows may merge unrelated features or fail to link true relatives.54- In-source fragments are detected only if their neutral loss patterns are predefined; unexpected loss patterns will not be captured.55- Features with very similar m/z and retention time may be conflated if tolerance windows are too wide.56- No changelog is provided for the masscube package, limiting visibility into method updates or bug fixes.5758## Evidence5960- [other] masscube implements a feature group annotation mechanism that confidently labels features as isotopes, adducts, and in-source fragments.: "masscube implements a feature group annotation mechanism that confidently labels features as isotopes, adducts, and in-source fragments."61- [other] Load the feature table (containing m/z, retention time, and intensity values for detected features). Apply isotope detection logic to identify features differing by 1.003 Da (carbon-13 isotope shift) within a retention time window.: "Load the feature table (containing m/z, retention time, and intensity values for detected features). Apply isotope detection logic to identify features differing by 1.003 Da (carbon-13 isotope shift)"62- [other] Apply adduct detection to identify features related by common adduct mass shifts (e.g., +H, +Na, +NH4, +K, –H).: "Apply adduct detection to identify features related by common adduct mass shifts (e.g., +H, +Na, +NH4, +K, –H)."63- [other] Apply in-source fragment detection to identify features related by characteristic neutral loss patterns (e.g., –H2O, –NH3).: "Apply in-source fragment detection to identify features related by characteristic neutral loss patterns (e.g., –H2O, –NH3)."64- [readme] Confident annotation of feature groups including isotopes, adducts and in-source fragments.: "Confident annotation of feature groups including isotopes, adducts and in-source fragments."