Chemprop Specialized Molecular Tasks
Use this sub-skill when a Chemprop request needs specialized molecular schemas or flags rather than ordinary molecule-level training/prediction.
Route Here For
- Reaction property models using atom-mapped reaction SMILES,
--reaction-columns, and --rxn-mode / --reaction-mode.
- Multicomponent workflows combining reactions and molecule SMILES such as reaction-plus-solvent models.
- MolAtomBond training where molecule, atom, and/or bond targets use
--mol-target-columns, --atom-target-columns, or --bond-target-columns.
- Constrained atom/bond prediction with
--constraints-path and --constraints-to-targets.
- Spectral task setup with
--task-type spectral, sid/earthmovers style metrics, and positivity/normalization caveats.
- Specialized feature inputs whose component indices, atom ordering, bond ordering, or scaling flags interact with the schema.
Route Elsewhere
- Use
../training-cli/ for ordinary chemprop train options, split policies, checkpoints, losses, metrics, and generic regression/classification workflows.
- Use
../prediction-fingerprints/ for general chemprop predict and chemprop fingerprint mechanics after the specialized columns are known.
- Use
../data-featurization/ for CSV/NPZ validation, molecule featurizer choices, descriptors, and general feature-file shape checks.
- Use
../python-api-modeling/ for low-level Python API composition of models, dataloaders, Lightning modules, and custom predictors.
Quick Starts
Reaction Training
chemprop train \
-i reactions.csv \
--reaction-columns rxn_smiles \
--rxn-mode REAC_DIFF_BALANCE \
--target-columns yield \
--keep-h \
--epochs 50 \
--save-dir chemprop_rxn_model
Use the same reaction columns and reaction mode at prediction/fingerprint time as were used for training.
Reaction Plus Solvent
chemprop train \
-i reaction_solvent.csv \
--reaction-columns rxn_smiles \
--smiles-columns solvent_smiles \
--split-key-molecule 1 \
--message-hidden-dim 300 200 \
--depth 3 5 \
--target-columns rate \
--save-dir chemprop_rxn_solvent_model
For mixed reaction+molecule inputs, component order is the order implied by reaction columns plus SMILES columns. Match that order when giving per-component feature paths, message dimensions, and prediction inputs.
Atom/Bond Targets
chemprop train \
-i atom_bond_targets.csv \
--smiles-columns smiles \
--mol-target-columns mol_y \
--atom-target-columns atom_charge atom_shift \
--bond-target-columns bond_order \
--reorder-atoms \
--epochs 50 \
--save-dir chemprop_mab_model
Atom and bond target cells must be parseable Python/JSON-like lists. Atom target list order follows RDKit atom order unless atom maps are present and --reorder-atoms is used; bond target list order follows the input molecule bond order.
References
references/reaction-multicomponent.md covers reaction SMILES, --rxn-mode, reaction-plus-solvent inputs, and per-component model dimensions.
references/mol-atom-bond.md covers MolAtomBond target schemas, constraints, bounded targets, extra atom/bond descriptors, and prediction ordering.
references/spectral-and-special-tasks.md covers spectral tasks, special task/loss choices, and feature/descriptor interactions.
references/troubleshooting.md covers atom-map ordering, constraint mapping, reaction modes, multicomponent dimensions, and constrained output issues.
scripts/chemprop_specialized_command_builder.py builds command arrays and shell snippets for reaction, multicomponent, MolAtomBond, constrained, and spectral workflows.
Practical Guardrails
- Prefer
--rxn-mode in generated commands; --reaction-mode is accepted as an alias, but --rxn-mode matches the parser destination.
- Do not combine
--mpn-shared with different --message-hidden-dim or --depth values; mixed reaction+molecule data also rejects shared MPNNs.
- Do not use
--use-cuikmolmaker-featurization when --reorder-atoms is required for mapped atom target order.
- Treat reaction extra atom/bond features cautiously: the reaction graph featurizer warns that extra atom and bond features are unsupported for reaction components.
- For MolAtomBond constraints,
--constraints-to-targets names must be selected from the atom/bond target column names passed in the same command, in the same order as the constraints CSV columns.
1---2name: specialized-molecular-tasks3description: "Use this Chemprop sub-skill for reaction SMILES,4 reaction-plus-molecule multicomponent data, atom/bond targets, constrained5 MolAtomBond prediction, spectral tasks, and specialized descriptor/feature6 schemas."7disable-model-invocation: true8metadata:9 source: https://skillmd.com/skills/vectorspacelab/specialized-molecular-tasks10 disco-role: operating11license: NOASSERTION12---1314# Chemprop Specialized Molecular Tasks1516Use this sub-skill when a Chemprop request needs specialized molecular schemas or flags rather than ordinary molecule-level training/prediction.1718## Route Here For1920- Reaction property models using atom-mapped reaction SMILES, `--reaction-columns`, and `--rxn-mode` / `--reaction-mode`.21- Multicomponent workflows combining reactions and molecule SMILES such as reaction-plus-solvent models.22- MolAtomBond training where molecule, atom, and/or bond targets use `--mol-target-columns`, `--atom-target-columns`, or `--bond-target-columns`.23- Constrained atom/bond prediction with `--constraints-path` and `--constraints-to-targets`.24- Spectral task setup with `--task-type spectral`, `sid`/`earthmovers` style metrics, and positivity/normalization caveats.25- Specialized feature inputs whose component indices, atom ordering, bond ordering, or scaling flags interact with the schema.2627## Route Elsewhere2829- Use `../training-cli/` for ordinary `chemprop train` options, split policies, checkpoints, losses, metrics, and generic regression/classification workflows.30- Use `../prediction-fingerprints/` for general `chemprop predict` and `chemprop fingerprint` mechanics after the specialized columns are known.31- Use `../data-featurization/` for CSV/NPZ validation, molecule featurizer choices, descriptors, and general feature-file shape checks.32- Use `../python-api-modeling/` for low-level Python API composition of models, dataloaders, Lightning modules, and custom predictors.3334## Quick Starts3536### Reaction Training3738```bash39chemprop train \40 -i reactions.csv \41 --reaction-columns rxn_smiles \42 --rxn-mode REAC_DIFF_BALANCE \43 --target-columns yield \44 --keep-h \45 --epochs 50 \46 --save-dir chemprop_rxn_model47```4849Use the same reaction columns and reaction mode at prediction/fingerprint time as were used for training.5051### Reaction Plus Solvent5253```bash54chemprop train \55 -i reaction_solvent.csv \56 --reaction-columns rxn_smiles \57 --smiles-columns solvent_smiles \58 --split-key-molecule 1 \59 --message-hidden-dim 300 200 \60 --depth 3 5 \61 --target-columns rate \62 --save-dir chemprop_rxn_solvent_model63```6465For mixed reaction+molecule inputs, component order is the order implied by reaction columns plus SMILES columns. Match that order when giving per-component feature paths, message dimensions, and prediction inputs.6667### Atom/Bond Targets6869```bash70chemprop train \71 -i atom_bond_targets.csv \72 --smiles-columns smiles \73 --mol-target-columns mol_y \74 --atom-target-columns atom_charge atom_shift \75 --bond-target-columns bond_order \76 --reorder-atoms \77 --epochs 50 \78 --save-dir chemprop_mab_model79```8081Atom and bond target cells must be parseable Python/JSON-like lists. Atom target list order follows RDKit atom order unless atom maps are present and `--reorder-atoms` is used; bond target list order follows the input molecule bond order.8283## References8485- `references/reaction-multicomponent.md` covers reaction SMILES, `--rxn-mode`, reaction-plus-solvent inputs, and per-component model dimensions.86- `references/mol-atom-bond.md` covers MolAtomBond target schemas, constraints, bounded targets, extra atom/bond descriptors, and prediction ordering.87- `references/spectral-and-special-tasks.md` covers spectral tasks, special task/loss choices, and feature/descriptor interactions.88- `references/troubleshooting.md` covers atom-map ordering, constraint mapping, reaction modes, multicomponent dimensions, and constrained output issues.89- `scripts/chemprop_specialized_command_builder.py` builds command arrays and shell snippets for reaction, multicomponent, MolAtomBond, constrained, and spectral workflows.9091## Practical Guardrails9293- Prefer `--rxn-mode` in generated commands; `--reaction-mode` is accepted as an alias, but `--rxn-mode` matches the parser destination.94- Do not combine `--mpn-shared` with different `--message-hidden-dim` or `--depth` values; mixed reaction+molecule data also rejects shared MPNNs.95- Do not use `--use-cuikmolmaker-featurization` when `--reorder-atoms` is required for mapped atom target order.96- Treat reaction extra atom/bond features cautiously: the reaction graph featurizer warns that extra atom and bond features are unsupported for reaction components.97- For MolAtomBond constraints, `--constraints-to-targets` names must be selected from the atom/bond target column names passed in the same command, in the same order as the constraints CSV columns.