agentsclimarketplace

Batch structure processing

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/batch-structure-processing

Use when you have a collection of 100+ molecules in SMILES, SDF, MOL, or MOL2 format and need to compute a unified feature representation combining physicochemical descriptors and structural fingerprints for downstream machine learning.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill batch-structure-processing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

8.5 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it

batch-structure-processing

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Batch processing of chemical structures through alvaDesc to generate standardized molecular descriptors and fingerprints (MACCS166, Extended Connectivity, Path) for large molecular datasets. This skill is essential for preparing feature matrices for machine learning models in retention time prediction and metabolite annotation workflows.

When to use

Apply this skill when you have a collection of 100+ molecules in SMILES, SDF, MOL, or MOL2 format and need to compute a unified feature representation combining physicochemical descriptors and structural fingerprints for downstream machine learning. Specifically useful when training regressors for retention time prediction or when performing cross-method projection of chromatographic data.

When NOT to use

  • Input is already a pre-computed feature table or descriptor matrix — skip directly to feature selection or model training.
  • Molecules are very small organic compounds (< 10 atoms) or simple salts where fingerprint diversity is minimal; descriptors alone may be sufficient.
  • You require real-time or streaming structure processing rather than batch; alvaDesc batch mode is optimized for offline processing of entire datasets at once.

Inputs

  • SMILES strings or chemical structure files (SDF, MOL, MOL2, HIN format)
  • Molecular dataset metadata (pubchem IDs, inchi identifiers, or direct structure representations)
  • alvaDesc software configuration or command-line parameters

Outputs

  • Unified feature matrix (CSV or tabular format): rows = molecules, columns = 5,666 descriptors + 2,214 fingerprints
  • Individual descriptor vector file (5,666 features per molecule)
  • Individual fingerprint vector file (2,214 features per molecule: MACCS166, ECFP, PFP concatenated)

How to apply

Load your molecular structures (SMILES or SDF files) into alvaDesc and configure batch processing to compute both descriptor and fingerprint sets simultaneously. Configure alvaDesc to generate 5,666 molecular descriptors across physicochemical, topological, and structural categories, and 2,214 fingerprints using MACCS166, Extended Connectivity, and Path Fingerprint algorithms. Execute batch mode processing on all molecules to generate feature vectors, then concatenate descriptor and fingerprint outputs row-wise (molecules × features) into a unified CSV feature matrix. Export as tabular format with molecules as rows and all descriptors+fingerprints as columns. Validate that the resulting feature matrix has no missing values and contains the expected column counts (5,666 + 2,214 = 7,880 features) before passing to machine learning training.

Related tools

Examples

from cmmrt.rt.build_data import generate_vector_fps_descs; features = generate_vector_fps_descs(aDesc, chemicalStructureFile='molecules.sdf', fingerprint_types=('ECFP', 'MACCSFP', 'PFP'), descriptors=True)

Evaluation signals

  • Feature matrix shape is (N_molecules, 7880) where N_molecules matches input dataset size and 7880 = 5,666 descriptors + 2,214 fingerprints.
  • No NaN or missing values in descriptor or fingerprint columns; all 80,038 molecules (or input count) have complete feature vectors.
  • Fingerprint vectors are binary or count-valued (MACCS166 bits, ECFP/PFP counts) and descriptor vectors are floating-point physicochemical properties; verify column data types are consistent with expected ranges.
  • CSV export has valid tabular structure with headers matching descriptor names and fingerprint type identifiers (e.g., 'MACCS_bit_1', 'ECFP_count', 'PFP_count').
  • Downstream machine learning model can ingest the feature matrix without shape or dtype errors; fingerprint-only models show comparable or superior retention time prediction error (mean absolute error ≤ 50 s) compared to descriptor-only baseline.

Limitations

  • alvaDesc is commercial software requiring a license; open-source alternatives (RDKit) produce similar but not identical fingerprints and may differ in descriptor coverage.
  • Batch processing speed and memory overhead scale linearly with dataset size; METLIN SMRT (80,038 molecules) requires significant computational resources and wall-clock time.
  • Fingerprint generation is deterministic but depends on exact alvaDesc version and configuration; minor software updates may produce slightly different bit patterns or counts, affecting reproducibility.
  • The skill assumes input structures are valid and properly formatted; malformed SMILES or corrupted SDF files will cause alvaDesc to skip or error on individual molecules, reducing feature matrix row count.

Evidence

  • [intro] 5,666 molecular descriptors and 2,214 fingerprints (MACCS166, Extended Connectivity, and Path Fingerprints fingerprints) were generated with the alvaDesc software: "5,666 molecular descriptors and 2,214 fingerprints (MACCS166, Extended Connectivity, and Path Fingerprints fingerprints) were generated with the alvaDesc software"
  • [intro] We have trained state-of-the-art machine learning regressors using the 80,038 experimental RTs from the METLIN small molecule dataset (SMRT): "We have trained state-of-the-art machine learning regressors using the 80,038 experimental RTs from the METLIN small molecule dataset (SMRT)"
  • [other] Configure alvaDesc to compute 5,666 molecular descriptors across physicochemical, topological, and structural categories: "Configure alvaDesc to compute 5,666 molecular descriptors across physicochemical, topological, and structural categories"
  • [other] Combine descriptor and fingerprint outputs into a unified feature matrix with rows=molecules and columns=descriptors+fingerprints: "Combine descriptor and fingerprint outputs into a unified feature matrix with rows=molecules and columns=descriptors+fingerprints"
  • [readme] To train your own model or to predict the RT of your own set of compounds it is necessary to generate the fingerprints using alvaDesc software: "To train your own model or to predict the RT of your own set of compounds it is necessary to generate the fingerprints using alvaDesc software"
  • [readme] The function generate_vector_fps_descs(aDesc, chemicalStructureFile, fingerprint_types = ("ECFP", "MACCSFP", "PFP"), descriptors = True) generates both the the descriptors and the fingerprints: "The function generate_vector_fps_descs(aDesc, chemicalStructureFile, fingerprint_types = ("ECFP", "MACCSFP", "PFP"), descriptors = True) generates both the the descriptors and the fingerprints"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.