CLI Reference
The sci-form binary exposes 102 subcommands: 69 are always built and 33 are behind Cargo feature flags. This page is the exhaustive reference; the CLI guide is the task-oriented walkthrough.
Installation
Pre-built binaries
Download from GitHub Releases:
sci-form-x86_64-unknown-linux-gnu— Linux x86_64sci-form-x86_64-apple-darwin— macOS Intelsci-form-aarch64-apple-darwin— macOS Apple Siliconsci-form-x86_64-pc-windows-msvc.exe— Windows x86_64sci-form-aarch64-unknown-linux-gnu— Linux ARM64
Build from source
cargo install sci-form-cliSubcommands with historical feature labels
State note (2.2.0). The Rust implementations of CGA, SDR, EDL, GSM, KPM, CPM, RandNLA, Riemannian, kinetics, the periodic adapters and the render bridge are core. Some Python/WASM/CLI wrappers still carry the historical
experimental-*,alpha-*orbeta-*feature flag; the flag is a build choice, not a stability claim. MBH, DFT, MLFF and reaction dynamics remain gated.
The optional subcommands are compiled in when the corresponding Cargo feature is enabled on the sci-form-cli package:
cargo install sci-form-cli --features alpha-gsm,alpha-edl,alpha-kinetics| Feature | Unlocks |
|---|---|
experimental-alpb | alpb |
experimental-d4 | d4 |
experimental-cpm | cpm |
alpha-gsm | gsm-backend-plan, gsm-compare-backends |
alpha-edl | edl-profile, edl-capacitance-scan, edl-helmholtz, edl-gouy-chapman, edl-gcs |
alpha-kinetics | htst-rate, extract-kinetics-diagnostics, solve-microkinetic-network, solve-microkinetic-steady-state, analyze-gsm-mbh-htst-step |
alpha-periodic-linear | kmesh, compute-periodic-dos, solve-periodic-randnla, bloch-phase, build-bloch-hamiltonian, assemble-periodic-operators, validate-electron-count |
alpha-render-bridge | edl-chart, capacitance-chart, arrhenius-chart, thermal-prop-chart, phase-portrait-chart, band-structure-chart, dos-chart, kpoint-path-chart, fermi-surface-chart, trajectory-chart, reaction-coordinate-chart |
The alpha-render-bridge chart commands need a second feature as well: edl-chart and capacitance-chart also require alpha-edl; arrhenius-chart, thermal-prop-chart and phase-portrait-chart require alpha-kinetics; band-structure-chart, dos-chart, kpoint-path-chart and fermi-surface-chart require alpha-periodic-linear; and trajectory-chart / reaction-coordinate-chart require alpha-gsm.
The built-in guide
| Command | What it does |
|---|---|
sci-form | With no command: a short guide — three commands to try, then every command by topic. |
sci-form commands [TOPIC] | Every command grouped by topic; TOPIC is any word of a topic name (quantum, crystals, charts, …). |
sci-form examples [COMMAND] [--run] | The ready-to-run example of one command (or of all of them); --run also prints its output. |
sci-form completions <SHELL> | A shell-completion script: bash, zsh, fish, powershell, elvish. |
sci-form help <COMMAND> | Every option of one command; its last lines show the example. |
The topics are Getting started, Structure & chemistry, Conformers, Quantum chemistry, Gradients & optimisation, Surface, solvation & dispersion, Reaction paths & kinetics, Descriptors & machine learning, Crystals & materials, Electrochemistry and Charts (JSON for plotting). The list shows only the commands compiled into your binary. The catalogue behind it (crates/cli/src/catalog.tsv) is checked by crates/cli/tests/guide.rs: every command has an entry and every example exits successfully.
Conventions
Optional arguments are absent
An optional argument is simply absent. There are no magic sentinels: you never pass "", "[]" or 0.0 to mean "not given". Omit the flag and the engine default applies.
sci-form stereo "C(F)(Cl)(Br)I" # topology-only
sci-form stereo "C(F)(Cl)(Br)I" --coords "[1.0, 0, 0]" # with 3D coordinatesError messages
Every user-facing error follows one template:
<What failed> '<actual value>'. Supported: 'a', 'b', 'c'.The offending input is always included and the valid values are always listed when there is a fixed set.
$ sci-form dos-multimethod "[6,6,8]" "[0,0,0,1,0,0,2,0,0]" --method bogus
Invalid 'method' 'bogus'. Supported: 'eht', 'pm3', 'xtb', 'gfn1', 'gfn2', 'hf3c'.
$ sci-form sasa "notjson" "[]"
Invalid 'elements' JSON 'notjson'. (expected ident at line 1 column 2)
$ sci-form charges "C("
Charges error: Expected ')' at position 2 (found 'end of input') in "C("Negative numeric option values
Several options take negative numbers (--e-min, --e-max, --mu-ev, --v-min, --v-max, --reaction-free-energy, …). The argument parser treats a bare -4.44 as a flag, so negative values must be attached with =:
sci-form cpm "$EL" "$COORDS" --mu-ev=-4.44 # correct
sci-form cpm "$EL" "$COORDS" --mu-ev -4.44 # usage errorA reusable geometry
Most commands take a geometry as two positional JSON arguments. Build it once and reuse it:
RESULT=$(sci-form embed "CCO")
EL=$(echo "$RESULT" | jq -c '.elements') # [6, 6, 8, 1, 1, 1, 1, 1, 1]
COORDS=$(echo "$RESULT" | jq -c '.coords') # flat [x, y, z, ...] array in ÅThe examples below use $EL and $COORDS for those two arguments.
Units
| Quantity | Unit |
|---|---|
| Geometry (coordinates, bond lengths, cell parameters) | Å (cell angles in degrees) |
UFF / MMFF94 energies (uff, neb-energy, neb-gradient) | kcal/mol |
UFF / MMFF94 gradients (neb-gradient) | kcal/mol/Å |
| EHT, PM3, xTB orbital energies and HOMO–LUMO gaps | eV |
| PM3 / xTB total, electronic, repulsive, dispersion energies | eV |
| PM3 heat of formation | kcal/mol |
| HF-3c energy, HF energy, nuclear repulsion, D3/gCP/SRB | Hartree |
| HF-3c orbital energies, HOMO/LUMO, gap | Hartree |
| ANI energy and per-atom energies | Hartree (forces Hartree/Å) |
CISD excitation energy, correlation_energy | Hartree (energy_ev is eV) |
EHT gradients, optimize-geometry-eht energy | eV, eV/Å |
optimize-framework energy and forces | eV, eV/Å |
| IR wavenumbers, vibrational frequencies | cm⁻¹ |
J-couplings (ensemble-j-couplings) | Hz |
| Dipole moment | Debye |
| Partial charges | elementary charge (e) |
| Electrostatic potential | Hartree/e |
| DOS / PDOS | 1/eV |
| Surface area | Ų |
| MD energies | kcal/mol; times in fs; temperatures in K |
| Pressure | bar |
Command list
Always built (66)
embed, batch, parse, info, eht, eht-gradient, optimize-geometry-eht, charges, charges-configured, sasa, solvation, eeq, population, dipole, esp, dos, dos-multimethod, pm3, xtb, gfn1, gfn2, hf3c, cisd, ani, aevs-tm, uff, optimize-framework, stereo, sssr, ecfp, ecfp-batch, tanimoto, rmsd, canonical-smiles, embed-diverse, filter-diverse, ir-spectrum-broadened, assign-peaks, ensemble-j-couplings, whim, rdf, getaway, train-random-forest, train-gradient-boosting, cell, assemble, space-group, all-space-groups, periodic-molecule, hapticity, simplified-neb-path, neb-energy, neb-gradient, chart-to-json, chart-from-json, validate-chart-schema, uhf, rohf, pm3-gradient, xtb-gradient, uff-breakdown, mmff94-breakdown, tpsa, ensemble, parse-cif, write-cif.
Feature-gated (34)
alpb (experimental-alpb), d4 (experimental-d4), cpm (experimental-cpm), edl-profile, edl-capacitance-scan, edl-helmholtz, edl-gouy-chapman, edl-gcs (alpha-edl), htst-rate, extract-kinetics-diagnostics, solve-microkinetic-network, solve-microkinetic-steady-state, analyze-gsm-mbh-htst-step (alpha-kinetics), kmesh, compute-periodic-dos, solve-periodic-randnla, bloch-phase, build-bloch-hamiltonian, assemble-periodic-operators, validate-electron-count (alpha-periodic-linear), gsm-backend-plan, gsm-compare-backends (alpha-gsm), edl-chart, capacitance-chart, arrhenius-chart, thermal-prop-chart, phase-portrait-chart, band-structure-chart, dos-chart, kpoint-path-chart, fermi-surface-chart, trajectory-chart, reaction-coordinate-chart (alpha-render-bridge + the matching domain feature).
Conformer generation and structure
embed
Generate a 3D conformer for a single SMILES.
sci-form embed <SMILES> [OPTIONS]| Option | Default | Description |
|---|---|---|
-s, --seed <N> | 42 | RNG seed |
-f, --format <FMT> | json | Output format: json, xyz, sdf |
$ sci-form embed "CCO"
{
"smiles": "CCO",
"num_atoms": 9,
"coords": [-0.8930637240409851, 0.06926389038562775, 0.06360100954771042, "..."],
"elements": [6, 6, 8, 1, 1, 1, 1, 1, 1],
"bonds": [[0, 1, "SINGLE"], [1, 2, "SINGLE"], [0, 3, "SINGLE"], "..."],
"error": null,
"time_ms": 1.530118
}(time_ms is the wall-clock time of that call and varies from run to run.)
$ sci-form embed "c1ccccc1" -f xyz
12
c1ccccc1
C 0.801870 -1.121113 -0.008347
C 1.386838 0.149298 -0.028242
C 0.584813 1.253631 -0.019782
...batch
Process multiple SMILES from a file or stdin. The input path is an option, not a positional argument.
sci-form batch [OPTIONS]| Option | Default | Description |
|---|---|---|
-i, --input <FILE> | stdin | Input file (omit to read stdin) |
-o, --output <FILE> | stdout | Output file (omit to write stdout) |
-s, --seed <N> | 42 | RNG seed |
-t, --threads <N> | 0 | Number of threads (0 = auto) |
-f, --format <FMT> | json | Output format: json, xyz, sdf |
Input file format: exactly one SMILES per line. A trailing name is not supported — the whole line is parsed as SMILES:
CCO
c1ccccc1
CC(=O)O$ sci-form batch -i molecules.smi
Processing molecules from molecules.smi (auto threads)...
[{"smiles":"CCO","num_atoms":9,"coords":[-0.8930637240409851,...],"elements":[6,6,8,1,1,1,1,1,1],"bonds":[[0,1,"SINGLE"],...],"error":null,"time_ms":7.475605}, ...]
Done: 3/3 OK, 0 failed, 0.0s total (2.9 ms/mol)The JSON array still contains one record per input molecule, including per-molecule error fields. batch exits with code 1 when at least one molecule fails, so CI scripts can detect partial failures while keeping the successful records.
parse
Parse SMILES and print the molecular graph. This command writes plain text, not JSON.
sci-form parse <SMILES>$ sci-form parse "c1ccccc1"
Atoms: 12, Bonds: 12
0: elem= 6 hyb=SP2 charge=0 h=0
1: elem= 6 hyb=SP2 charge=0 h=0
2: elem= 6 hyb=SP2 charge=0 h=0
3: elem= 6 hyb=SP2 charge=0 h=0
4: elem= 6 hyb=SP2 charge=0 h=0
5: elem= 6 hyb=SP2 charge=0 h=0
6: elem= 1 hyb=Unknown charge=0 h=0
...info
Print the build information: version, feature summary, supported output formats and the available bindings.
sci-form info$ sci-form info
sci-form 2.2.0
Features: ETKDG distance geometry, CSD torsion patterns, SMARTS matching
EHT, PM3, xTB, GFN1, GFN2, HF-3c, ANI, PBE0 DFT, MP2, QM/MM,
charges, SASA, ESP, DOS, MMFF94, UFF, stereochemistry, solvation, SSSR,
ECFP, Tanimoto, NMR, IR, UV-Vis, Raman, VCD, ROA, XPS, EPR, cells, MOFs,
GCMC adsorption, reaction networks, kMC, metadynamics, OPES, replica exchange,
active learning
Formats: JSON, XYZ, SDF
Bindings: CLI, Python (PyO3), TypeScript (WASM)embed-diverse
Generate a diverse conformer ensemble and cluster it by Butina RMSD. The output contains one centroid per cluster, not every embedding attempt.
sci-form embed-diverse [OPTIONS] <SMILES>| Option | Default | Description |
|---|---|---|
--n-conformers <N> | 10 | Number of embedding attempts (different seeds) |
--rmsd-cutoff <F> | 1.0 | RMSD clustering cutoff in Å |
--base-seed <N> | 42 | Base RNG seed (seeds are base_seed..base_seed+n_conformers) |
--n-conformers must be at least 1 and --rmsd-cutoff must be finite and positive. If every attempt fails, the per-attempt error records are printed and the command exits with code 1. See conformer ensembles for the clustering pipeline.
$ sci-form embed-diverse "CCO" --n-conformers 2
[
{
"smiles": "CCO",
"num_atoms": 9,
"coords": [-0.8822969794273376, -0.19749876856803894, -0.05994144827127457, "..."],
"elements": [6, 6, 8, 1, 1, 1, 1, 1, 1],
"bonds": [[0, 1, "SINGLE"], [1, 2, "SINGLE"], [0, 3, "SINGLE"], "..."],
"error": null,
"time_ms": 1.09874
},
...
]filter-diverse
Keep only the diverse cluster centroids of a conformer ensemble.
sci-form filter-diverse [OPTIONS] <CONFORMERS>| Option | Default | Description |
|---|---|---|
--rmsd-cutoff <F> | 1.0 | RMSD clustering cutoff in Å |
CONFORMERS is a JSON array of conformers, each one a flat xyz coordinate array. All conformers must have the same non-empty length divisible by 3, and the cutoff must be finite and positive. The command prints the JSON array of the retained indices.
$ sci-form filter-diverse "[$COORDS]"
[
0
]canonical-smiles
Print the canonical SMILES representation of a molecule.
sci-form canonical-smiles <SMILES>$ sci-form canonical-smiles "C(F)(Cl)(Br)I"
BrC(Cl)(F)ICharges, surfaces and stereochemistry
charges
Compute Gasteiger-Marsili partial charges. Charges are in elementary charge (e).
sci-form charges <SMILES>$ sci-form charges "CCO"
{
"charges": [
-0.04183875391825285,
0.04020239984506115,
-0.39668550458225543,
0.025376599271769065,
0.025376599271769065,
0.025376599271769065,
0.056079890280577,
0.056079890280577,
0.2100322802789859
],
"iterations": 30,
"total_charge": -2.7755575615628914e-17,
"converged": true
}charges-configured
Gasteiger-Marsili charges with an explicit convergence configuration.
sci-form charges-configured [OPTIONS] <SMILES>| Option | Default | Description |
|---|---|---|
--max-iter <N> | 6 | Electronegativity-equalization iterations |
--initial-damping <F> | 0.5 | Initial damping factor (halved every iteration) |
--convergence-threshold <F> | 1e-10 | Convergence threshold on the maximum charge transfer |
$ sci-form charges-configured "CCO" --max-iter 12
{
"charges": [-0.04183848615477239, 0.04022058174908642, -0.3966637147812598, "..."],
"iterations": 12,
"total_charge": -2.7755575615628914e-17,
"converged": false
}sasa
Compute solvent-accessible surface area. Areas are in Ų.
sci-form sasa [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
-p, --probe-radius <F> | 1.4 | Probe radius in Å (≥ 0) |
$ sci-form sasa "[8,1,1]" "$WATER"
{
"total_sasa": 121.68973804445778,
"atom_sasa": [53.90778214815562, 33.802489755074966, 33.97946614122719],
"probe_radius": 1.4,
"num_points": 960
}A probe radius of 0 gives the van der Waals surface; negative or non-finite values exit 1. Elements without an explicit Bondi radius use the generic 1.70 Å fallback. See solvent-accessible surface.
solvation
Compute the non-polar (SASA-based) solvation energy; with --charges it also returns the Generalized Born electrostatic term. Energies in kcal/mol.
sci-form solvation [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
-c, --charges <JSON> | absent | Per-atom charges as a JSON array. When absent only the non-polar term is computed |
-p, --probe-radius <F> | 1.4 | Probe radius in Å |
The GB term uses a solvent dielectric of 78.5 and an internal dielectric of 1.0; these are fixed in the CLI.
# Using the SMILES pipeline
RESULT=$(sci-form embed "CCO")
ELEM=$(echo "$RESULT" | jq '.elements')
COORDS=$(echo "$RESULT" | jq '.coords')
sci-form solvation "$ELEM" "$COORDS"
# With GB electrostatics
sci-form solvation "$ELEM" "$COORDS" --charges "$(sci-form charges CCO | jq -c '.charges')"Output (non-polar only):
{
"energy_kcal_mol": -3.86723458312331,
"atom_contributions": [0.08755304566289393, 0.040757452291347175, -5.095010880048249, "..."],
"atom_sasa": [7.296087138574494, 3.3964543576122646, 30.692836626796677, "..."],
"total_sasa": 198.45192083308308
}Output (with charges):
{
"electrostatic_energy_kcal_mol": -8.72532248578084e-05,
"nonpolar_energy_kcal_mol": -3.86723458312331,
"total_energy_kcal_mol": -3.8673218363481676,
"born_radii": [50.0, 50.0, 50.0, "..."],
"charges": [-0.04182525705714308, 0.0413843224567292, -0.39527742524721593, "..."],
"solvent_dielectric": 78.5,
"solute_dielectric": 1.0
}eeq
Compute EEQ (electronegativity-equalization) geometry-dependent charges. Elements Z=1–86 are accepted; elements outside that range, empty geometries and length mismatches are rejected with exit code 1.
sci-form eeq [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
-t, --total-charge <F> | 0.0 | Total molecular charge (negative values: -t -1) |
$ sci-form eeq "[8,1,1]" "$WATER"
{
"charges": [-0.5460852203904293, 0.2730426101952145, 0.2730426101952145],
"coordination_numbers": [1.6471164240972276, 0.8236554505895528, 0.8236554505895528],
"total_charge": -3.3306690738754696e-16
}The charge constraint is enforced exactly: the returned charges sum to --total-charge. See EEQ charges for the model and its validation limits.
stereo
Analyze stereochemistry: R/S stereocenters and E/Z double bonds.
sci-form stereo [OPTIONS] <SMILES>| Option | Default | Description |
|---|---|---|
-c, --coords <JSON> | absent | Flat coordinate array as a JSON string. When absent the analysis is topology-only |
$ sci-form stereo "C(F)(Cl)(Br)I"
{
"stereocenters": [
{
"atom_index": 0,
"element": 6,
"substituent_indices": [4, 3, 2, 1],
"priorities": [1, 2, 3, 4],
"configuration": null
}
],
"double_bonds": [],
"n_stereocenters": 1,
"n_double_bonds": 0,
"atropisomeric_axes": [],
"prochiral_centers": [],
"helical_chirality": []
}With --coords the configuration field is filled in ("R" here).
sssr
Perceive the Smallest Set of Smallest Rings.
sci-form sssr <SMILES>$ sci-form sssr "c1ccc2ccccc2c1"
{
"rings": [
{ "atoms": [0, 9, 8, 3, 2, 1], "size": 6, "is_aromatic": true },
{ "atoms": [3, 8, 7, 6, 5, 4], "size": 6, "is_aromatic": true }
],
"atom_ring_count": [1, 1, 1, "..."],
"atom_ring_sizes": [[6], [6], [6], "..."],
"ring_size_histogram": [0, 0, 0, 0, 0, 0, 2]
}ecfp
Compute an ECFP (Morgan) fingerprint.
sci-form ecfp [OPTIONS] <SMILES>| Option | Default | Description |
|---|---|---|
-r, --radius <N> | 2 | Morgan radius (ECFP4 = 2, ECFP6 = 3) |
-n, --n-bits <N> | 2048 | Bit-vector size |
$ sci-form ecfp "c1ccccc1"
{
"n_bits": 2048,
"on_bits": [78, 373, 587, 1798, 1963, 2040],
"radius": 2,
"raw_features": [9995780334538829739, 9995780334538829739, "..."]
}ecfp-batch
Compute ECFP fingerprints for a batch of SMILES given as a JSON array.
sci-form ecfp-batch [OPTIONS] <SMILES_LIST>| Option | Default | Description |
|---|---|---|
-r, --radius <N> | 2 | Morgan radius |
-n, --n-bits <N> | 2048 | Bit-vector size |
$ sci-form ecfp-batch '["CCO", "c1ccccc1"]'
[
{ "n_bits": 2048, "on_bits": [78, 236, 298, "..."], "radius": 2, "raw_features": [...] },
{ "n_bits": 2048, "on_bits": [78, 373, 587, "..."], "radius": 2, "raw_features": [...] }
]tanimoto
Compute the Tanimoto similarity between two molecules.
sci-form tanimoto [OPTIONS] <SMILES1> <SMILES2>| Option | Default | Description |
|---|---|---|
-r, --radius <N> | 2 | ECFP radius |
-n, --n-bits <N> | 2048 | Bit-vector size |
$ sci-form tanimoto "c1ccccc1" "Cc1ccccc1"
{
"tanimoto": 0.333333
}rmsd
Compute the RMSD between two coordinate sets (Kabsch alignment). RMSD in Å.
sci-form rmsd <COORDS_JSON> <REFERENCE_JSON>$ sci-form rmsd "$COORDS" "$COORDS"
{
"rmsd": 0.0,
"rotation": [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]
}Electronic structure
All of these take the same two positional arguments: ELEMENTS_JSON (JSON array of atomic numbers) and COORDS_JSON (flat [x, y, z, ...] array in Å).
eht
Run Extended Hückel Theory. Orbital energies and the gap are in eV.
sci-form eht [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
-k, --k <F> | 1.75 | Wolfsberg-Helmholtz constant (omit the flag for the default) |
$ sci-form eht "$EL" "$COORDS"
{
"energies": [-32.67566514175308, -24.111381812665172, -21.774536672315957, "..."],
"coefficients": [[0.006099259985427686, -0.5943455200430089, "..."], "..."],
"n_electrons": 20,
"homo_index": 9,
"lumo_index": 10,
"homo_energy": -13.41902554862098,
"lumo_energy": -10.31046604789137,
"gap": 3.1085595007296085,
"support": {
"level": "supported",
"has_transition_metals": false,
"supported_elements": [1, 6, 8],
"provisional_elements": [],
"unsupported_elements": [],
"warnings": []
}
}eht-gradient
Compute EHT energy-surface gradients by central finite differences. Gradients in eV/Å.
sci-form eht-gradient <ELEMENTS_JSON> <COORDS_JSON>Central differences use a step of 1e-5 Å on the EHT surface energy (band + nuclear repulsion). Cost: 6N EHT solves. The net gradient over all atoms is zero within numerical noise.
$ sci-form eht-gradient "[8,1,1]" "$WATER"
{
"gradients": [[2.8421709430404003e-9, 0.0, -149.33940221766306], [-9.947598300641403e-9, -103.52112082330221, 74.66970111238425], [-4.263256414560601e-9, 103.52112082046004, 74.66970110812099]],
"rms_gradient": 78.0929862371739,
"max_gradient": 149.33940221766306,
"energy": 92.57766304910245
}optimize-geometry-eht
Optimize a geometry on the EHT energy surface with the shared BFGS engine. Energy in eV.
sci-form optimize-geometry-eht [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--max-steps <N> | 200 | Maximum number of optimization steps |
--grad-threshold <F> | 0.01 | RMS gradient convergence threshold in eV/Å |
--energy-threshold <F> | 1e-6 | Energy convergence threshold in eV |
--step-size <F> | 0.2 | Maximum BFGS step size in Å (> 0) |
The command exits 0 for a completed optimization even when converged is false; check that field. On the qualitative EHT surface, polar molecules can dissociate, so the final geometry is not a production structure.
$ sci-form optimize-geometry-eht "[8,1,1]" "$WATER"
{
"positions": [[22.73484916404946, -15.052740960597381, 3.179487824741697], "..."],
"energy": -147.02560989354768,
"n_steps": 200,
"converged": false,
"rms_gradient": 0.059858849048139116,
"energies": [92.57766304910245, 52.72459563168903, "...", -147.02560989354768]
}pm3, xtb, gfn1, gfn2, hf3c
Semi-empirical and tight-binding single points.
sci-form pm3 <ELEMENTS_JSON> <COORDS_JSON> # PM3
sci-form xtb <ELEMENTS_JSON> <COORDS_JSON> # GFN2-xTB (same method/energy as gfn2)
sci-form gfn1 <ELEMENTS_JSON> <COORDS_JSON> # GFN1-xTB
sci-form gfn2 <ELEMENTS_JSON> <COORDS_JSON> # GFN2-xTB
sci-form hf3c <ELEMENTS_JSON> <COORDS_JSON> # HF-3cPM3 (all energies in eV, heat_of_formation in kcal/mol):
$ sci-form pm3 "$EL" "$COORDS"
{
"orbital_energies": [-38.827117278912816, -30.929876411517615, -22.64673365173473, "..."],
"electronic_energy": -1761.7957220727174,
"nuclear_repulsion": 1138.2523453052277,
"total_energy": -623.5433767674897,
"heat_of_formation": -53.99776430051929,
"n_basis": 18,
"n_electrons": 20,
"homo_energy": -11.091818400759617,
"lumo_energy": 3.2666430586158963,
"gap": 14.358461459375514,
"mulliken_charges": [-0.17244052751007377, 0.08956235044897287, "..."],
"scf_iterations": 20,
"converged": true,
"notes": ["Produced by the faithful MOPAC-parity PM3 solver."]
}xtb (this runs GFN2-xTB and reports the same total energy as gfn2; all energies in eV):
$ sci-form xtb "$EL" "$COORDS"
{
"orbital_energies": [-18.709580590018355, -17.072433084117943, "..."],
"electronic_energy": -312.96057303129896,
"repulsive_energy": 3.0694987989800326,
"total_energy": -309.8910594776795,
"n_basis": 18,
"n_electrons": 20,
"homo_energy": -11.113088168797308,
"lumo_energy": 1.592666900269751,
"gap": 12.70575506906706,
"mulliken_charges": [-0.11257146455801315, 0.09593650567551615, "..."],
"scc_iterations": 9,
"converged": true,
"notes": []
}GFN1-xTB adds dispersion_energy, dispersion_e6, dispersion_e8, halogen_bond_energy and shell_charges; the full gfn2 command also reports dispersion_2_body_energy, atomic_dipoles (Debye) and atomic_quadrupoles, which the compact xtb view omits.
HF-3c supports H, C, N, O, F, P, S and Cl; any other element is rejected with a clear error instead of a panic. All energies are in Hartree:
$ sci-form hf3c "$EL" "$COORDS"
{
"energy": -151.23033482038505,
"hf_energy": -152.1174873874554,
"nuclear_repulsion": 82.58742066152247,
"d3_energy": -0.023907644680519688,
"gcp_energy": 0.009399471038504277,
"srb_energy": 0.9016607407123806,
"orbital_energies": [-20.2397700816775, -11.097490693337386, "..."],
"scf_iterations": 16,
"converged": true,
"cis": { "excitations": [...], "error": null },
"n_basis": 21,
"n_electrons": 26,
"homo_energy": -0.33991491972198973,
"lumo_energy": 0.5640256248572378,
"gap": 0.9039405445792276,
"mulliken_charges": [-0.1726611892372265, 0.035806063383814646, "..."]
}cisd
Compute CISD excited states from an internal STO-3G RHF calculation. The reference must be closed-shell (even electron count) and use an element with an STO-3G contraction (H, C, N, O, F, P, S, Cl); --n-states must be at least 1. Excitation energies are relative to the CI ground state.
sci-form cisd [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--n-states <N> | 5 | Number of excited states to report (≥ 1; capped at the number of states in the CI space) |
$ sci-form cisd "[8,1,1]" "$WATER" --n-states 1
{
"excitations": [
{
"energy": 0.4191404324575245,
"energy_ev": 11.405392104191437,
"wavelength_nm": 108.70664670479528,
"oscillator_strength": 0.2694557295780764,
"dominant_transition": [[4, 5]],
"character": "singles",
"singles_weight": 0.9643154491140016
}
],
"correlation_energy": -0.04885002271124961,
"n_csfs": 141,
"approximation": "full"
}dominant_transition uses zero-based spatial orbital indices. The reported oscillator_strength is the proxy 2/3·ΔE·singles_weight, not a transition dipole; see configuration interaction.
population
Mulliken & Löwdin population analysis (requires the EHT engine).
sci-form population <ELEMENTS_JSON> <COORDS_JSON>$ sci-form population "[8,1,1]" "$WATER"
{
"mulliken_charges": [-1.172140982427667, 0.5860704912138248, 0.5860704912138263],
"lowdin_charges": [-1.0926415761622188, 0.5463207880810946, 0.5463207880810956],
"mulliken_populations": [1.866270587878781, 2.0, 1.546976159313931, 1.758894235234952, 0.4139295087861751, 0.41392950878617374],
"num_atoms": 3,
"total_charge_mulliken": -1.587618925213974e-14,
"total_charge_lowdin": -2.853273173286652e-14,
"charge_conservation_error": 1.587618925213974e-14,
"homo_energy": -14.800000000000024,
"lumo_energy": -8.43736333327947,
"gap": 6.3626366667205545,
"warnings": []
}mulliken_populations has one entry per atomic orbital (n_basis), not per atom; mulliken_charges and lowdin_charges have one entry per atom. All elements must have EHT parameters; otherwise the command exits 1. warnings reports coverage gaps that do not prevent the calculation (for example an element without a valence-electron model).
dipole
Compute the molecular dipole moment (Debye).
sci-form dipole <ELEMENTS_JSON> <COORDS_JSON>$ sci-form dipole "[8,1,1]" "$WATER"
{
"vector": [0.0, -5.332634334109798e-15, -3.3020180425330143],
"magnitude": 3.3020180425330143,
"unit": "Debye",
"nuclear_dipole": [0.0, 0.0, -1.126833066],
"electronic_dipole": [0.0, -5.332634334109798e-15, -2.1751849765330147]
}The decomposition satisfies vector = nuclear_dipole + electronic_dipole. The EHT/Mulliken water value (3.30 D) is larger than the 1.85 D experiment; see dipole moments.
dos
Compute the density of states from the EHT spectrum.
sci-form dos [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
-s, --sigma <F> | 0.3 | Broadening width in eV (> 0) |
--e-min <F> | -30.0 | Energy window minimum in eV |
--e-max <F> | 5.0 | Energy window maximum in eV (> e_min) |
-n, --n-points <N> | 500 | Grid points (≥ 2) |
Negative values are accepted as option values (--e-min -20, -s -0.3). Output: {"sigma": ..., "data": [[energy, dos], ...]} with the energy in eV and the DOS in 1/eV.
$ sci-form dos "[8,1,1]" "$WATER" --e-min=-20 --e-max=-5 -n 6
{
"sigma": 0.3,
"data": [
[-20.0, 0.0],
[-17.0, 0.001417],
[-14.0, 0.038092],
[-11.0, 0.0],
[-8.0, 1.152776],
[-5.0, 0.0]
]
}The CLI reports the total DOS only. Per-atom PDOS is available from the Rust compute_pdos API; the dos-multimethod command reports total DOS for another electronic-structure method.
dos-multimethod
Same as dos, but the orbital energies come from the chosen electronic-structure method.
sci-form dos-multimethod [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--method <M> | eht | Method: eht, pm3, xtb, gfn1, gfn2 or hf3c |
-s, --sigma <F> | 0.3 | Broadening width in eV (> 0) |
--e-min <F> | -30.0 | Energy window minimum in eV |
--e-max <F> | 5.0 | Energy window maximum in eV (> e_min) |
-n, --n-points <N> | 500 | Grid points (≥ 2) |
The method field is lowercase ("eht", "pm3", "xtb", "gfn1", "gfn2", "hf3c"), matching the --method values. Negative values are accepted as option values (--e-min -20, -s -0.3).
$ sci-form dos-multimethod "[8,1,1]" "$WATER" --e-min=-20 --e-max=-5 -n 6
{
"energies": [-20.0, -17.0, -14.0, -11.0, -8.0, -5.0],
"total_dos": [2.336717677571194e-41, 0.0014171274933360782, 0.03809240551679816, 1.9011704594808223e-16, 1.1527760076234912, 1.2105002262608862e-17],
"method": "eht",
"homo_energy": -14.800000000000024,
"lumo_energy": -8.43736333327947,
"gap": 6.3626366667205545,
"orbital_energies": [-32.74760517356369, -15.890059653547342, -15.303475811841889, -14.800000000000024, -8.43736333327947, -7.657598632259621],
"sigma": 0.3
}esp
Compute the electrostatic potential on a 3D grid. Values in Hartree/e.
sci-form esp [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
-s, --spacing <F> | 0.5 | Grid spacing in Å (> 0) |
-p, --padding <F> | 3.0 | Padding beyond the molecule in Å (≥ 0) |
Output: {"origin": [...], "spacing": ..., "dims": [...], "n_values": ..., "values": [...]}. Negative values are accepted as option values (-s -1 reaches validation and exits 1 instead of being parsed as a flag).
$ sci-form esp "[8,1,1]" "$WATER" --spacing 1.0 --padding 2.0
{
"origin": [-2.0, -2.7572, -2.4692],
"spacing": 1.0,
"dims": [5, 7, 6],
"n_values": 210,
"values": [0.013249000639018974, 0.012759136259970397, 0.0068865467351674065, "..."]
}The values are the Mulliken point-charge ESP in Hartree/e; see electrostatic potential for the approximation and its validation limits.
ani
Run an ANI ML-potential calculation. Energy in Hartree, forces in Hartree/Å.
sci-form ani <ELEMENTS_JSON> <COORDS_JSON>Supported elements are H, C, N, O, F, S and Cl. The CLI builds a small internally generated network whose input dimension matches the real AEV length (4032 with the default parameters), so the reported energies are not physically meaningful ANI-2x energies — see Machine Learning Potentials. The CLI prints a warning to stderr on every successful call.
$ sci-form ani "[8,1,1]" "$WATER"
note: using randomly-initialized test networks (4032 AEV inputs); energies are not physically meaningful.
{
"energy": 0.24039815639211026,
"forces": [[-0.0, -2.908800286085117e-16, 1.085656768540342], "..."],
"species": [8, 1, 1],
"atomic_energies": [0.15279084744382998, 0.043803654474140134, 0.043803654474140134],
"aevs": [[1.1250764966181825, 0.07290117844712722, "..."], "..."]
}aevs-tm
Compute ANI-TM atomic environment vectors (extended element set).
sci-form aevs-tm <ELEMENTS_JSON> <COORDS_JSON>Supported elements: H, C, N, O, F, Si, P, S, Cl, Ti, Cr, Mn, Fe, Co, Ni, Cu, Zn, Br, Ru, Pd, Ag, I, Pt, Au. The output has 176256 AEV entries per atom; empty geometries, coordinate mismatches and other elements exit 1.
$ sci-form aevs-tm "[8,1,1]" "$WATER"
{
"aev_length": 176256,
"aevs": [[1.2722657343158947, 0.29089551553524035, 2.2312095831493354e-05, "..."], "..."],
"n_atoms": 3
}Force fields and geometry optimization
uff
Compute the UFF force-field energy in kcal/mol.
sci-form uff <SMILES> <COORDS_JSON>$ sci-form uff "CCO" "$COORDS"
{
"energy": 6.993048,
"unit": "kcal/mol"
}optimize-framework
Optimize a geometry with the shared BFGS engine (UFF backend). Energy in eV, forces in eV/Å.
sci-form optimize-framework [OPTIONS] <SMILES> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--method <M> | bfgs | Optimization method: bfgs or steepest_descent |
--max-iter <N> | 200 | Maximum number of iterations (≥ 1) |
--force-tol <F> | 0.05 | Force convergence threshold in eV/Å (> 0) |
--energy-tol <F> | 1e-6 | Energy convergence threshold in eV (> 0) |
--max-step <F> | 0.2 | Maximum step size in Å (> 0) |
--fixed-atoms <JSON> | absent | JSON array of fixed atom indices; indices must be in range |
--a, --b, --c | absent | Lattice lengths in Å (must be supplied together; > 0) |
--alpha, --beta, --gamma | 90.0 | Lattice angles in degrees (0° < angle < 180°) |
A partial lattice (--a without --b/--c), non-positive lengths, invalid angles, a non-positive cell volume, out-of-range fixed atoms and non-positive tolerances/step sizes are rejected with exit code 1. The command exits 0 for a completed optimization even when converged is false; check that field. Periodic optimization wraps positions in the cell; it does not relax the cell or add periodic images to the UFF energy.
$ sci-form optimize-framework "CCO" "$COORDS"
{
"positions": [[-0.9213744617887727, 0.06510163058925493, 0.07289555794502865], "..."],
"energy": 0.06718227655173616,
"forces": [[0.009298812066820062, 0.0030568574379609397, -0.009864256301979856], "..."],
"max_force": 0.04905923800286457,
"n_iterations": 21,
"converged": true,
"energy_history": [0.3032479101885856, 0.2589600738340934, "..."]
}uhf, rohf
Open-shell Hartree-Fock. The energies are in Hartree, the gap in eV. uhf uses separate α/β orbitals and reports s2_expectation and spin_contamination; rohf projects onto common spatial orbitals, giving an exact S(S+1) and a higher (restricted) energy.
sci-form uhf <ELEMENTS_JSON> <COORDS_JSON> --charge 0 --multiplicity 2
sci-form rohf <ELEMENTS_JSON> <COORDS_JSON> --charge 0 --multiplicity 2$ sci-form uhf "$CH3" --multiplicity 2
{
"total_energy": -39.06969115534437,
"gap_ev": 18.89786868022439,
"s2_expectation": 0.7586289855325434,
"spin_contamination": 0.008628985532543432,
"converged": true
}See open-shell HF for the equations and the ROHF projection caveat.
mp2 (feature alpha-mp2)
Conventional closed-shell MP2 correlation energy on RHF/STO-3G orbitals. Energies are in Hartree and kcal/mol.
sci-form mp2 <ELEMENTS_JSON> <COORDS_JSON>$ sci-form mp2 "[8,1,1]" "$WATER"
{
"hf_energy_hartree": -74.96297768393549,
"correlation_energy_hartree": -0.03552066349518875,
"correlation_energy_kcal_mol": -22.28955286823825,
"total_energy_hartree": -74.99849834743068,
"n_basis": 7,
"n_occupied": 5,
"n_virtual": 2,
"notes": ["..."]
}The method is neutral and closed-shell only. An odd electron count, empty geometry, mismatched coordinates, or a basis with no virtual orbital exits with code 1. See MP2.
pbe0 (feature alpha-dft-hybrid)
Restricted closed-shell PBE0 Kohn–Sham DFT with 25 % exact exchange, using the default Minimal/STO-3G basis. The pKa workflow selects 3-21G separately. Energies are in Hartree and eV.
sci-form pbe0 [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--max-iterations <N> | 100 | SCF iteration cap (≥ 1) |
$ sci-form pbe0 "[8,1,1]" "$WATER" --max-iterations 50
{
"total_energy": -75.2454830117255,
"total_energy_ev": -2047.5339014979909,
"homo_energy": -4.296671774169638,
"lumo_energy": 10.22607085687775,
"gap": 14.522742631047386,
"method": "Pbe0",
"scf_iterations": 6,
"converged": true,
"n_basis": 7,
"n_electrons": 10,
"n_grid_points": 5775,
"unrestricted": false
}--max-iterations 0, a non-converged SCF, an open-shell/charged system without the unrestricted path, an unsupported basis, or malformed coordinates exits with code 1. The command prints a result only when converged: true. See hybrid DFT.
qmmm (feature alpha-qmmm)
Mechanical-embedding QM/MM energy: a UHF/STO-3G (or GFN2-xTB) QM region, its Mulliken charges coupled to MM point charges, and the MM-MM Coulomb term. Energies are in kcal/mol.
sci-form qmmm <SYSTEM_JSON> <CONFIG_JSON>| Config key | Default | Description |
|---|---|---|
method | "uhf" | "uhf" or "xtb" (neutral QM only) |
qm_charge | 0 | Total QM charge |
qm_multiplicity | 1 | QM spin multiplicity |
include_mm_mm | true | Include the MM-MM point-charge term |
$ sci-form qmmm '{"qm_elements":[8,1,1],"qm_positions":[[0,0,0],[0.9572,0,0],[-0.239987,0.927297,0]],"mm_elements":[8],"mm_positions":[[0,0,5]],"mm_charges":[-0.5]}' '{}'
{
"qm_energy_kcal_mol": -47039.97870065027,
"qm_mm_energy_kcal_mol": ...,
"mm_mm_energy_kcal_mol": 0.0,
"total_energy_kcal_mol": ...,
"qm_charges": ["..."],
"n_qm": 3,
"n_mm": 1,
"notes": ["..."]
}An empty QM region, mismatched QM/MM array lengths, non-finite coordinates or charges, coincident QM-MM/MM-MM point charges, or a charged xTB QM region exits with code 1. This is mechanical embedding; see QM/MM.
pm3-gradient, xtb-gradient
Energy gradients in eV/Å per atom. PM3 uses stationary-density (Pulay-free) differentiation; xTB uses warm-started central differences (5·10⁻⁴ Å) of the energy that the matching command returns: pm3-gradient differentiates the pm3 total energy and xtb-gradient the xtb total energy (which is GFN2-xTB). Cost: 6·N fixed-density integral rebuilds plus one SCF for PM3, and 6·N warm-started SCC solves plus one reference solve for xTB. See PM3 and xTB gradients.
sci-form pm3-gradient <ELEMENTS_JSON> <COORDS_JSON>
sci-form xtb-gradient <ELEMENTS_JSON> <COORDS_JSON>$ sci-form pm3-gradient "[8,1,1]" "$WATER"
{
"gradients": [[0.0, 0.0, 0.7114315108651681], [0.0, 0.040422160509479, -0.35571575540416234], [0.0, -0.04042216045263558, -0.355715755631536]],
"energy": -324.8987548272898,
"heat_of_formation": -53.234594942110505
}
$ sci-form xtb-gradient "[8,1,1]" "$WATER"
{
"gradients": [[-1.1368683772161603e-10, 1.1368683772161603e-10, 0.1511913549734345], [-1.4210854715202004e-10, -0.22761443733543274, -0.07559584386740426], [2.8421709430404007e-11, 0.22761443716490248, -0.0755958439810911]],
"energy": -137.97181114461645
}gradients has one [dE/dx, dE/dy, dE/dz] triple per atom in input order, in eV/Å. energy (eV) equals the total_energy of pm3 / xtb for the same input, heat_of_formation is in kcal/mol, and the gradient sums to zero within numerical noise (translational invariance).
uff-breakdown, mmff94-breakdown
The force-field energy split by term type, in kcal/mol. UFF terms are bond, angle, torsion, inversion and vdw; MMFF94 terms are bond, angle, stretch_bend, oop, torsion, vdw and electrostatic. Only terms with a non-zero contribution are emitted, so a missing term means zero; the emitted values sum to the corresponding total energy.
sci-form uff-breakdown <SMILES> <COORDS_JSON>
sci-form mmff94-breakdown <SMILES> <COORDS_JSON>$ sci-form uff-breakdown "CCO" "$COORDS"
[
["bond", 0.5979784639429583],
["angle", 5.446583632606365],
["torsion", 0.021754201971758553],
["vdw", 0.926732134382798]
]
# sum = 6.99304843290388 kcal/mol = `sci-form uff`
$ sci-form mmff94-breakdown "CCO" "$COORDS"
[
["bond", 1.3913486280932996],
["angle", 3.1273972497932854],
["stretch_bend", -0.7329293668360718],
["torsion", -2.21633624454027],
["vdw", 0.7559088091148465]
]
# sum = 2.3253890756250906 kcal/mol = compute_mmff94_energytpsa
Topological polar surface area, in Ų.
sci-form tpsa <SMILES>$ sci-form tpsa "CCO"
20.23See charges, TPSA and fingerprints for the fragment method and reference values.
ensemble
Ensemble property prediction: the consensus LogP with its uncertainty, the solubility, the TPSA, the pKa estimates, the Veber rules, the BBB permeability and an overall confidence score.
sci-form ensemble <SMILES>$ sci-form ensemble "CCO"
{
"logp": -0.5850213822006243,
"logp_std": 0.9045703967460684,
"log_solubility": 0.3749356707863932,
"tpsa": 20.23,
"pka_acidic": 13.371400000000001,
"pka_basic": null,
"veber": { "tpsa_ok": true, "rotb_ok": true, "passes": true },
"bbb_permeable": true,
"bbb_score": 0.8,
"confidence": 0.6834003611388759
}pka_basic is null when the molecule has no nitrogen. The values are proxy heuristics; see property ensemble for the pipeline and caveats.
parse-cif, write-cif
Read a CIF file into a JSON crystal structure and write it back. The path - reads standard input.
sci-form parse-cif structure.cif # CIF -> JSON
sci-form write-cif structure.json # JSON -> CIFparse-cif requires positive cell lengths, angles in (0°, 180°), a positive volume and at least one atom site with a known element and occupancy in (0, 1]. Malformed atom rows and missing cell lengths exit 1. write-cif validates the JSON structure before writing. See CIF input/output.
Spectroscopy
ir-spectrum-broadened
Compute a broadened IR spectrum; the vibrational analysis is run internally. Wavenumbers in cm⁻¹.
sci-form ir-spectrum-broadened [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--method <M> | eht | Hessian method: eht, pm3, xtb (GFN2) or uff (gfn2 is an alias of xtb) |
--gamma <F> | 15.0 | Broadening width in cm⁻¹ (> 0) |
--wn-min <F> | 400.0 | Minimum wavenumber in cm⁻¹ |
--wn-max <F> | 4000.0 | Maximum wavenumber in cm⁻¹ (> wn_min) |
--n-points <N> | 1000 | Number of grid points (≥ 2) |
--broadening <T> | lorentzian | Broadening type: gaussian or lorentzian |
--step-size <F> | absent | Finite-difference step in Å (> 0; engine default 0.005 Å) |
--smiles <S> | absent | SMILES string (required for method=uff) |
Negative option values are accepted as values (--gamma -5, --step-size -0.01) and rejected by validation with exit code 1.
$ sci-form ir-spectrum-broadened "[8,1,1]" "$WATER" --n-points 3
{
"wavenumbers": [400.0, 2200.0, 4000.0],
"intensities": [0.03045896724467752, 0.0016943770090035721, 0.0002661290615469684],
"peaks": [
{ "frequency_cm1": 644.0829037290523, "ir_intensity": 368.5523546741564, "mode_index": 7, "assignment": "unassigned" },
{ "frequency_cm1": 1285.2419178863188, "ir_intensity": 169.6149457617302, "mode_index": 8, "assignment": "unassigned" }
],
"gamma": 15.0,
"notes": [
"IR spectrum generated with Lorentzian broadening (γ = 15 cm⁻¹).",
"Vibrational analysis method: EHT."
]
}Peak assignments are element-aware: water cannot receive a C-H or C-O label, so modes without a matching functional group are "unassigned".
WARNING
The EHT Hessian is a one-electron model with no electron-electron repulsion, so the surface has no minimum and imaginary frequencies are expected. Use --method pm3 or --method xtb.
raman, vcd, roa (feature alpha-raman)
Response-property screening spectra on UFF normal modes.
sci-form raman [OPTIONS] <SMILES> <ELEMENTS_JSON> <COORDS_JSON>
sci-form vcd [OPTIONS] <SMILES> <ELEMENTS_JSON> <COORDS_JSON>
sci-form roa [OPTIONS] <SMILES> <ELEMENTS_JSON> <COORDS_JSON>| Option | Command | Default | Description |
|---|---|---|---|
--step <F> | raman | 0.01 | Polarizability finite-difference step in Å (> 0) |
--min-frequency <F> | vcd, roa | 1.0 | Keep modes above this wavenumber in cm⁻¹ (≥ 0) |
raman reports the uncoupled HF/STO-3G polarizability, per-mode activity and depolarization. vcd reports the nuclear charge-current rotational strength; roa multiplies it by the Raman activity as a screening circular intensity. These are relative/qualitative values, not calibrated cross-sections. See Raman and VCD/ROA.
$ sci-form raman O "[8,1,1]" "$WATER"
{
"modes": [
{"mode_index": 6, "frequency_cm1": 1757.4598999427346, "activity": 1.4748428641833797, "depolarization": 0.5870549451075456},
{"mode_index": 7, "frequency_cm1": 3706.0462968790475, "activity": 27.66093026060657, "depolarization": 0.13591280985935209}
],
"polarizability": {"...": "..."},
"notes": ["..."]
}A non-positive finite-difference step, a negative/non-finite minimum frequency, an invalid SMILES, or malformed coordinates exits with code 1.
ensemble-j-couplings
Predict J-couplings averaged over a conformer ensemble with Boltzmann weighting. Couplings in Hz.
sci-form ensemble-j-couplings [OPTIONS] <SMILES> <CONFORMER_COORDS> <ENERGIES_KCAL>| Option | Default | Description |
|---|---|---|
--temperature-k <F> | 298.15 | Temperature in K |
CONFORMER_COORDS is a JSON array of conformers (each a flat xyz array, length a multiple of 3) and ENERGIES_KCAL a JSON array of the matching energies in kcal/mol. Both arrays must have the same non-zero length; energies must be finite and the temperature must be positive. The command rejects mismatched inputs instead of silently using the first conformer.
$ sci-form ensemble-j-couplings "CC" "[$COORDS]" "[0.0]"
[
{ "h1_index": 2, "h2_index": 3, "j_hz": 12.0, "n_bonds": 2, "coupling_type": "geminal_2J" },
{ "h1_index": 2, "h2_index": 4, "j_hz": 12.0, "n_bonds": 2, "coupling_type": "geminal_2J" },
{ "h1_index": 2, "h2_index": 5, "j_hz": 7.0, "n_bonds": 3, "coupling_type": "vicinal_3J_H-C-C-H" },
"..."
]assign-peaks
Assign IR peaks to functional groups using the group-frequency tables.
sci-form assign-peaks [OPTIONS] <FREQUENCIES> <INTENSITIES> <ELEMENTS>| Option | Default | Description |
|---|---|---|
--mode-displacements <JSON> | absent | JSON array of modes, each an array of [x, y, z] triples |
FREQUENCIES are vibrational wavenumbers in cm⁻¹ and INTENSITIES the matching IR intensities. Both arrays must be non-empty, finite and the same length; ELEMENTS must be non-empty. --mode-displacements, when supplied, must have one mode per frequency and one [x,y,z] triple per element.
$ sci-form assign-peaks "[1000.0,3000.0]" "[10.0,20.0]" "[6,6,8,1,1,1,1,1,1]"
{
"assignments": [
{
"frequency": 1000.0,
"intensity": 10.0,
"assignments": [{ "group": "C-O (alcohol)", "vibration_type": "stretch", "match_quality": 0.019607843137254943 }],
"confidence": 0.019607843137254943
},
{
"frequency": 3000.0,
"intensity": 20.0,
"assignments": [{ "group": "O-H (carboxylic)", "vibration_type": "stretch", "match_quality": 0.7506234413965087 }],
"confidence": 0.7506234413965087
}
],
"functional_groups": ["C-O (alcohol)", "O-H (carboxylic)"]
}nmr-all, nmr-isotopes (feature alpha-nmr-all)
Run GIAO NMR for the default isotope of every element in the molecule, or list the registered active isotopes of one element.
sci-form nmr-all [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>
sci-form nmr-isotopes <Z>| Option | Default | Description |
|---|---|---|
--charge <I> | 0 | Total molecular charge |
--multiplicity <N> | 1 | Spin multiplicity (the public GIAO route is closed-shell singlet) |
--max-scf-iterations <N> | 100 | SCF iteration cap (≥ 1) |
--allow-basis-fallback | off | Use the internal hydrogen-like fallback for unsupported elements |
$ sci-form nmr-isotopes 6
[{"element":6,"mass_number":13,"label":"13C"}]
$ sci-form nmr-all "[8,1,1]" "$WATER"
{"nuclei":[{"nucleus":"1H","scf_converged":true,"chemical_shifts":["..."],"shieldings":["..."]},{"nucleus":"17O",...}],"failures":[],"notes":["..."]}nmr-all runs one SCF per element. An element without a basis is listed in failures, never reported as a zero shift; if no element can be evaluated the command exits 1. nmr-isotopes returns [] for an element with no registered active isotope. See all-nuclide NMR.
epr (feature alpha-epr)
Isotropic EPR hyperfine coupling from the UHF spin density. Couplings are in MHz, spin densities in electrons/Bohr³.
sci-form epr [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--nucleus <Z> | absent (all tabulated nuclei) | Target atomic number |
--charge <I> | 0 | Total molecular charge |
--multiplicity <N> | 2 | Spin multiplicity (≥ 1 and compatible with the electron count) |
$ sci-form epr "[1]" "[0,0,0]" --nucleus 1 --multiplicity 2
{
"entries": [{"atom_index": 0, "element": 1, "g_factor": 5.5856946893,
"spin_density_au": 0.3946941451474386, "a_iso_mhz": 1420.405751}],
"multiplicity": 2,
"notes": ["..."]
}An explicit nucleus with no tabulated g-factor, an incompatible multiplicity, or malformed coordinates exits with code 1. See EPR hyperfine coupling.
xps (feature alpha-core-spectroscopy)
Koopmans core-level binding energies from UHF/STO-3G orbital energies, in eV.
sci-form xps [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--elements-filter <JSON> | absent | JSON array of atomic numbers to keep |
--charge <I> | 0 | Total molecular charge |
--multiplicity <N> | 1 | Spin multiplicity (≥ 1) |
$ sci-form xps "[6,1,1,1,1]" "$METHANE" --elements-filter "[6]"
{
"bindings": [{"atom_index": 0, "element": 6,
"orbital_energy_hartree": -11.03024796826285,
"binding_energy_ev": 300.1483378534248,
"localization": 0.985424309144511}],
"notes": ["..."]
}An empty/invalid filter, a filter that selects no core-like s orbital, a multiplicity of zero, or an electron-count/multiplicity mismatch exits with code 1. This is not a ΔSCF core-hole or XANES calculation; see XPS binding energies.
network
Rule-based reaction-network discovery from a JSON TemplateNetworkConfig. Species are canonical SMILES and edges carry the rule name, barrier and prefactor.
sci-form network <CONFIG_JSON>$ sci-form network '{"initial_species":["C"],"rules":[{"name":"C1","reactants":["C"],"products":["CC"],"barrier_ev":0.05,"prefactor_s_inv":1e12}],"max_depth":2,"max_species":10}'
{
"species": [{"index": 0, "smiles": "C"}, {"index": 1, "smiles": "CC"}],
"edges": [{"reactants": [0], "products": [1], "rule": "C1", "barrier_ev": 0.05, "prefactor_s_inv": 1000000000000.0}],
"notes": []
}An empty initial-species or rule list, max_depth/max_species below 1, an invalid SMILES, a rule with zero/two-plus reactants, no products, a negative barrier or a non-positive prefactor exits with code 1. Deserialised rules are re-validated before discovery. See rule-based reaction networks.
conformal
Split-conformal calibration radius from paired predictions and targets.
sci-form conformal [OPTIONS] <PREDICTIONS_JSON> <TARGETS_JSON>| Option | Default | Description |
|---|---|---|
--coverage <F> | 0.9 | Requested coverage in (0, 1) |
The finite-sample order statistic is ceil((n+1)·coverage)/n, capped at the largest residual. Predictions and targets must be non-empty, finite and the same length.
$ sci-form conformal '[1,2,3]' '[1.1,2.1,3.1]' --coverage 0.9
{"radius": 0.10000000000000009, "coverage": 0.9, "n_calibration": 3}Mismatched/empty arrays, non-finite values, or coverage outside (0, 1) exits with code 1. See uncertainty-aware active learning.
rism (feature alpha-rism)
3D-RISM solver core on a periodic grid with the Kovalenko–Hirata closure. beta_u and susceptibility are row-major nx × ny × nz JSON arrays.
sci-form rism <BETA_U_JSON> <SUSCEPTIBILITY_JSON> <CONFIG_JSON>| Config key | Default | Description |
|---|---|---|
nx, ny, nz | 32 | Grid dimensions (each ≥ 2) |
box_length_angstrom | 16.0 | Cubic periodic box (Å, > 0) |
temperature_k | 298.15 | Temperature (K, > 0) |
bulk_density_angstrom3 | 0.0334 | Bulk density (Å⁻³, ≥ 0) |
max_iterations | 500 | Picard iterations (≥ 1) |
mixing | 0.2 | Mixing fraction in (0, 1] |
tolerance | 1e-6 | Residual tolerance (> 0) |
closure | "kh" | Kovalenko–Hirata closure |
$ sci-form rism '[0,0,0,0,0,0,0,0]' '[0.03,0.03,0.03,0.03,0.03,0.03,0.03,0.03]' '{"nx":2,"ny":2,"nz":2,"box_length_angstrom":8,"temperature_k":300,"bulk_density_angstrom3":0.03,"max_iterations":20,"mixing":0.5,"tolerance":1e-6}'
{"g": [1.0, ...], "h": [0.0, ...], "c": [0.0, ...], "residual": 0.0, "iterations": 1, "converged": true, "mean_g": 1.0, "max_g": 1.0, "mean_interaction_energy_kcal_mol": 0.0, "shape": [2, 2, 2], "notes": ["..."]}A grid dimension below 2, an overflowing nx*ny*nz, a wrong array length, non-finite values, or invalid mixing/tolerance/temperature exits with code 1. Omitted config keys use defaults. See 3D-RISM.
active-learning
Propose the next labels for a serialized Random Forest from a JSON ActiveLearningRequest.
sci-form active-learning <REQUEST_JSON>The request carries model (serialized RandomForest), labeled points (features, target), candidates (features arrays), acquisition ({"kind":"uncertainty"}, {"kind":"distance"} or {"kind":"hybrid","uncertainty_weight":w}) and n (number of labels to propose). All labelled/candidate feature vectors must share one finite dimension; n ≥ 1. Distance and hybrid acquisition need at least one labelled point, and the hybrid weight must be in [0, 1].
$ sci-form active-learning '{"model":{"trees":[],"n_trees":0,"oob_score":null},"labeled":[{"features":[0.0],"target":0.0},{"features":[1.0],"target":0.0}],"candidates":[[0.0],[0.25],[0.5],[0.75],[1.0]],"acquisition":{"kind":"distance"},"n":1}'
[2]Empty candidate pools, ragged/non-finite features, n = 0, an out-of-range hybrid weight, or distance/hybrid acquisition without labelled points exits with code 1. See uncertainty-aware active learning.
3D descriptors and machine learning
whim
Compute WHIM 3D molecular descriptors.
sci-form whim [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--weighting <W> | mass | Weighting: unit, mass, volume, electronegativity or polarizability |
$ sci-form whim "[8,1,1]" "$WATER"
{
"eigenvalues": [0.06416193779850124, 0.034186202920713456, 0.0],
"lambda": [0.06416193779850124, 0.034186202920713456, 0.0],
"nu": [0.6523960425615413, 0.3476039574384588, 0.0],
"gamma": [0.0, -2.462116930662336, 0.0],
"eta": [8.936011904761907, 7.062019780254124, 0.0],
"total_spread": 0.09834814071921469,
"anisotropy": 1.0,
"directional": 0.0,
"kurtosis": 15.99803168501603
}Water is planar, so one eigenvalue and its shape moments are zero. Empty geometries and coordinate mismatches exit 1; see WHIM descriptors.
rdf
Compute radial distribution function (RDF) descriptors.
sci-form rdf [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--charges <JSON> | absent | Per-atom charges; when absent Gasteiger charges are derived internally |
--beta <F> | 100.0 | Gaussian smoothing factor in Å⁻² |
--r-max <F> | 12.0 | Maximum radius in Å |
--n-points <N> | 128 | Number of sampling points |
--beta, --r-max and --n-points must be positive (n-points ≥ 2), and --charges must have one finite value per atom.
$ sci-form rdf "[8,1,1]" "$WATER" --n-points 3
{
"radii": [2.0, 6.0, 10.0],
"rdf_unweighted": [1.142211742551103e-12, 0.0, 0.0],
"rdf_mass": [1.1605602319834438e-12, 0.0, 0.0],
"rdf_electronegativity": [5.528304833947339e-12, 0.0, 0.0],
"rdf_charge": [4.8110740318794345e-14, 0.0, 0.0],
"beta": 100.0,
"n_pairs": 3
}With only three samples the O-H distances fall between grid points; the default 128 points give a useful curve. See RDF descriptors.
getaway
Compute GETAWAY 3D molecular descriptors.
sci-form getaway [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--bonds <JSON> | absent | JSON array of [i, j] bond pairs; when absent bonds are perceived from the geometry |
--max-lag <N> | 8 | Maximum topological distance for the autocorrelations (integer 1..=10000) |
At least two finite coordinates are required; bond indices must be in range and cannot be self-bonds. Invalid max_lag values are rejected before the autocorrelation arrays are allocated.
$ sci-form getaway "[8,1,1]" "$WATER"
{
"leverages": [0.6666666666666666, 0.6666666666666666, 0.6666666666666666],
"hat_autocorrelation": [1.3333333333333333, 0.6666666666666666, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"r_autocorrelation": [1.3921145418283023, 0.4402183483007572, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"hat_total": 1.0,
"r_total": 0.9161664450645297,
"h_information": 1.0986122886681096,
"h_max": 0.6666666666666666,
"h_mean": 0.6666666666666666,
"max_lag": 8
}Water is planar, so the rank-2 influence matrix has finite equal leverages thanks to the pseudo-inverse. See GETAWAY descriptors.
train-random-forest
Train a Random Forest regressor on a feature matrix.
sci-form train-random-forest [OPTIONS] <FEATURES> <TARGETS>| Option | Default | Description |
|---|---|---|
--n-trees <N> | 100 | Number of trees (≥ 1) |
--max-depth <N> | 10 | Maximum tree depth (≥ 1) |
--min-samples-split <N> | 5 | Minimum samples required to split a node (≥ 2) |
--min-samples-leaf <N> | 2 | Minimum samples required for a leaf (≥ 1) |
--sample-fraction <F> | 1.0 | Bootstrap sample fraction in (0, 1] |
--seed <N> | 42 | RNG seed (u64) |
FEATURES is a JSON array of equal-length finite feature vectors and TARGETS a JSON array of finite target values with the same number of rows. Empty or ragged matrices exit 1. See tree regressors.
$ sci-form train-random-forest "[[1,2],[3,4],[5,6],[7,8]]" "[1.0,2.0,3.0,4.0]"
{
"model_type": "random_forest",
"n_estimators": 100,
"n_samples": 4,
"predictions": [2.505, 2.505, 2.505, 2.505],
"train_rmse": 1.118045169033881
}train-gradient-boosting
Train a Gradient Boosting regressor on a feature matrix.
sci-form train-gradient-boosting [OPTIONS] <FEATURES> <TARGETS>| Option | Default | Description |
|---|---|---|
--n-estimators <N> | 100 | Number of boosting stages (≥ 1) |
--learning-rate <F> | 0.1 | Learning rate (> 0) |
--max-depth <N> | 5 | Maximum tree depth (≥ 1) |
--min-samples-split <N> | 5 | Minimum samples required to split a node (≥ 2) |
--min-samples-leaf <N> | 2 | Minimum samples required for a leaf (≥ 1) |
--subsample <F> | 0.8 | Row subsample fraction in (0, 1] |
--seed <N> | 42 | RNG seed (u64) |
$ sci-form train-gradient-boosting "[[1,2],[3,4],[5,6],[7,8]]" "[1.0,2.0,3.0,4.0]"
{
"model_type": "gradient_boosting",
"n_estimators": 100,
"n_samples": 4,
"predictions": [2.510925865628069, 2.510925865628069, 2.510925865628069, 2.510925865628069],
"train_rmse": 1.1180873733924923
}Materials and periodicity
cell
Create a unit cell and print its parameters. Lengths in Å, angles in degrees, volume in ų.
sci-form cell [OPTIONS] --a <A> --b <B> --c <C>| Option | Default | Description |
|---|---|---|
--a, --b, --c | (required) | Lattice lengths in Å (> 0) |
--alpha, --beta, --gamma | 90.0 | Lattice angles in degrees (0° < angle < 180°) |
Lengths must be finite and positive, and the angles must produce a positive cell volume; otherwise the command exits 1.
$ sci-form cell --a 5.43 --b 5.43 --c 5.43
{
"a": 5.43,
"b": 5.43,
"c": 5.43,
"alpha": 90.0,
"beta": 90.0,
"gamma": 90.0,
"volume": 160.10300699999996,
"lattice": [[5.43, 0.0, 0.0], [0.0, 5.43, 0.0], [0.0, 0.0, 5.43]]
}assemble
Assemble a framework crystal structure from a topology.
sci-form assemble [OPTIONS]| Option | Default | Description |
|---|---|---|
-t, --topology <T> | pcu | Framework topology, any name accepted by Topology::from_name (pcu, dia, sql, bcu, fcu, nbo, pts, kgm, hxl, pillared_sql, acs, afw, sod, xah, tfy) |
--a <F> | 10.0 | Lattice parameter a in Å (finite, > 0) |
--metal <N> | 30 | Metal atomic number in 1–118 |
--geometry <G> | octahedral | Coordination geometry: linear, trigonal, tetrahedral, square_planar or octahedral |
--supercell <N> | 1 | Replication factor (≥ 1) |
Invalid topologies/geometries, a non-positive a, an invalid metal atomic number and --supercell 0 exit 1.
$ sci-form assemble --topology pcu --metal 30 --geometry octahedral --a 10.0
{
"cell": { "lattice": [[10.0, 0.0, 0.0], [0.0, 10.0, 0.0], [0.0, 0.0, 10.0]] },
"atoms": [
{ "element": 30, "frac_coords": [0.0, 0.0, 0.0] },
{ "element": 6, "frac_coords": [0.43, 0.0, 0.0] },
"..."
],
"labels": ["node_0", "linker_0", "linker_0", "..."]
}space-group
Look up a crystallographic space group by number or symbol.
sci-form space-group [OPTIONS]| Option | Description |
|---|---|
--number <N> | ITC number (1–230); mutually exclusive with --symbol |
--symbol <S> | Hermann-Mauguin symbol, e.g. "P 21/c" or "P21/c" |
$ sci-form space-group --number 14
{
"number": 14,
"symbol": "P 21/c",
"crystal_system": "Monoclinic",
"lattice_type": "P",
"point_group": "2/m",
"operations": [{ "rotation": [[1, 0, 0], [0, -1, 0], [0, 0, 1]], "translation": [0.0, -0.5, -0.5] }, "..."]
}all-space-groups
List all 230 space groups.
sci-form all-space-groups$ sci-form all-space-groups
[[1, "P 1"], [2, "P -1"], [3, "P 2"], "..."]periodic-molecule
Build a periodic molecular graph from fractional coordinates and a unit cell. FRAC_COORDS is a JSON array of [x, y, z] triples.
sci-form periodic-molecule [OPTIONS] --a <A> --b <B> --c <C> <ELEMENTS> <FRAC_COORDS>| Option | Default | Description |
|---|---|---|
--a, --b, --c | (required) | Lattice lengths in Å (> 0) |
--alpha, --beta, --gamma | 90.0 | Lattice angles in degrees (0° < angle < 180°) |
--bond-tolerance <F> | absent | Extra bonding tolerance in Å (finite, ≥ 0; omit for the default 0.3) |
FRAC_COORDS must have one [x,y,z] triple per element and all values must be finite. Empty geometries, length mismatches, elements outside Z=1–118, degenerate cells and negative tolerances exit 1.
$ sci-form periodic-molecule "[8,1,1]" "[[0.1,0.2,0.3],[0.1,0.2,0.3],[0.1,0.2,0.3]]" --a 10 --b 10 --c 10
{
"elements": [8, 1, 1],
"frac_coords": [[0.1, 0.2, 0.3], [0.1, 0.2, 0.3], [0.1, 0.2, 0.3]],
"cart_coords": [[1.0000000000000004, 2.0, 3.0], [1.0000000000000004, 2.0, 3.0], [1.0000000000000004, 2.0, 3.0]],
"bonds": [],
"cell": { "lattice": [[10.0, 0.0, 0.0], [0.0, 10.0, 0.0], [0.0, 0.0, 10.0]] },
"n_atoms": 3
}hapticity
Detect haptic (η) metal–ring interactions and metallocene motifs.
sci-form hapticity [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--bonds <JSON> | absent | JSON array of [i, j] bond pairs; when absent bonds are perceived from the geometry |
Bond indices must be in range and cannot be self-bonds. A ferrocene-like Fe(Cp)₂ model gives two hapticity: 5 interactions and is_metallocene: true; water gives an empty result.
$ sci-form hapticity "[8,1,1]" "$WATER"
{
"interactions": [],
"is_metallocene": false,
"n_interactions": 0
}See hapticity and metallocenes.
Reaction paths
simplified-neb-path
Compute a simplified NEB-like path between two geometries.
sci-form simplified-neb-path [OPTIONS] <SMILES> <START_COORDS> <END_COORDS>| Option | Default | Description |
|---|---|---|
--n-images <N> | 8 | Number of images along the path (2..=1000) |
--n-iter <N> | 50 | Number of relaxation iterations (> 0) |
--spring-k <F> | 0.1 | Harmonic spring constant between adjacent images (finite, ≥ 0; 0 disables coupling) |
--step-size <F> | 0.01 | Cartesian update step size (finite, > 0) |
--method <M> | uff | Energy backend: uff, mmff94, pm3, xtb, gfn1, gfn2, hf3c |
Start and end coordinates must each contain 3 × n_atoms finite values. This is a spring-coupled gradient relaxation, not a climbing-image/tangent-projected NEB. Use neb-energy/neb-gradient for single-image evaluations.
$ sci-form simplified-neb-path "CCO" "$COORDS" "$COORDS" --n-images 2 --n-iter 2
{
"images": [
{ "index": 0, "coords": [-0.8930637240409851, "..."], "potential_energy_kcal_mol": 6.993048432903878 },
{ "index": 1, "coords": [-0.8930637240409851, "..."], "potential_energy_kcal_mol": 6.993048432903878 }
],
"notes": [
"Simplified NEB (uff) with spring-coupled gradient relaxation on 0 internal images.",
"Low-cost exploratory path; not a full climbing-image / tangent-projected NEB."
]
}neb-energy and neb-gradient
Single-point energy and energy + gradient with any NEB-capable backend.
neb-energy evaluates the energy only (one SCF for pm3/xtb). neb-gradient returns the analytic gradient for uff/mmff94, the stationary-density gradient for pm3, and warm-started central differences for xtb, gfn1, gfn2 and hf3c. xtb is GFN2, the same model as the xtb command and as gfn2; see Reaction backends. For ethanol neb-energy returns −14379.2 kcal/mol for pm3, −7146.0 for xtb/gfn2 and 6.99 for uff; the absolute zero differs between methods.
sci-form neb-energy [OPTIONS] <SMILES> <COORDS_JSON>
sci-form neb-gradient [OPTIONS] <SMILES> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--method <M> | uff | Energy backend: uff, mmff94, pm3, xtb, gfn1, gfn2, hf3c |
Blank or malformed SMILES, an unknown backend and coordinates whose length is not 3 × n_atoms are rejected with a non-zero exit status. The gradient array holds one triple per atom in input order.
$ sci-form neb-energy "CCO" "$COORDS"
{
"energy_kcal_mol": 6.993048432903878,
"method": "uff"
}
$ sci-form neb-gradient "CCO" "$COORDS"
{
"energy_kcal_mol": 6.993048432903878,
"gradient_kcal_mol_ang": [11.829034662841224, 5.8505849421547325, "..."],
"method": "uff"
}gsm-backend-plan (feature alpha-gsm)
Show which GSM reaction-path backends are available for a molecule.
sci-form gsm-backend-plan <SMILES>gsm-compare-backends (feature alpha-gsm)
Compare GSM backends on the same geometry.
sci-form gsm-compare-backends [OPTIONS] <SMILES> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--methods <JSON> | absent | JSON array of backend names; when absent every available backend is used |
analyze-gsm-mbh-htst-step (feature alpha-kinetics)
Analyze a complete GSM + MBH + HTST elementary step.
sci-form analyze-gsm-mbh-htst-step [OPTIONS] <SMILES> <REACTANT_COORDS> <PRODUCT_COORDS>| Option | Default | Description |
|---|---|---|
--method <M> | uff | GSM backend: uff, mmff94, pm3, xtb, gfn1, gfn2, hf3c, reaxff |
--step-id <S> | elementary-step | Stable identifier for the elementary step |
--temperature-k <F> | 298.15 | Temperature in K |
--pressure-bar <F> | 1.0 | Pressure in bar |
--n-nodes <N> | 11 | Maximum number of GSM nodes |
--mbh-fd-step <F> | 0.005 | MBH finite-difference step in Å |
The endpoints must be distinct and finite. A path without a positive barrier (GSM finds the TS at or below the reactant) is rejected instead of feeding a negative activation energy to HTST.
$ sci-form analyze-gsm-mbh-htst-step "CC" "$STAGGERED" "$ROTATED_120" --n-nodes 11
{
"backend": "uff",
"step_id": "elementary-step",
"temperature_k": 298.15,
"pressure_bar": 1.0,
"forward_rate_s_inv": 113775638651.74066,
"reverse_rate_s_inv": 110888020509.86586,
"equilibrium_constant": 1.0260408484938,
"ts_energy_kcal_mol": 5.8434729199791695,
"activation_energy_kcal_mol": 2.081844476576894,
"reverse_barrier_kcal_mol": 2.0970758146704997,
"imaginary_frequency_cm1": -127.4182275263456,
"n_blocks": 0,
"n_flexible": 8,
"n_nodes": 11,
"energy_evaluations": 3600
}This chain is exploratory: it combines a simplified GSM string, MBH finite-difference frequencies and HTST with unit transmission. Use it to sanity check a mechanism, not as a quantitative barrier. See transition-state theory.
trajectory-chart and reaction-coordinate-chart (feature alpha-render-bridge + alpha-gsm)
Chart utilities for a GSM reaction path.
sci-form trajectory-chart [OPTIONS] <SMILES> <REACTANT_COORDS> <PRODUCT_COORDS>
sci-form reaction-coordinate-chart [OPTIONS] <SMILES> <REACTANT_COORDS> <PRODUCT_COORDS>| Option | Default | Description |
|---|---|---|
-m, --method <M> | uff | GSM backend: uff, mmff94, pm3, xtb, gfn1, gfn2, hf3c |
Solvation, dispersion and electrochemistry
alpb (feature experimental-alpb)
Compute ALPB implicit-solvation energy.
sci-form alpb [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
-c, --charges <JSON> | absent | Per-atom charges (e); omitted means all zero |
-d, --dielectric <F> | 78.5 | Solvent dielectric constant (≥ 1; 1 = vacuum) |
The command is built only with --features experimental-alpb. Without charges the electrostatic term is zero and only the cavity/non-polar term is reported.
$ sci-form alpb "[8,1,1]" "$WATER" \
--charges "[-0.5460852203904293,0.2730426101952145,0.2730426101952145]"
{
"alpb_factor": 0.9870455471299786,
"born_radii": [1.7556277223840924, 1.7116973225275922, 1.7116973225275922],
"electrostatic_energy": -2.5781013000810917,
"nonpolar_energy": 0.608448690222289,
"total_energy": -1.9696526098588027
}The HCT/OBC Born radii are the same machinery used by solvation --charges. Elements without an explicit radius use the generic 1.70 Å fallback. See implicit solvation.
d4 (feature experimental-d4)
Compute the DFT-D4 dispersion correction.
sci-form d4 [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
--three-body | off | Include the three-body ATM term |
$ WATER='[0,0,0.1173,0,0.7572,-0.4692,0,-0.7572,-0.4692]'
$ sci-form d4 "[8,1,1]" "$WATER"
{"coordination_numbers":[1.61115652116297,0.8055782605814851,0.8055782605814851],"e2_body":-0.00035654274698183484,"e3_body":0.0,"total_energy":-0.00035654274698183484,"total_kcal_mol":-0.22373395163958412}
$ sci-form d4 "[8,1,1]" "$WATER" --three-body
{"coordination_numbers":[1.61115652116297,0.8055782605814851,0.8055782605814851],"e2_body":-0.00035654274698183484,"e3_body":1.5051867516949722e-10,"total_energy":-0.0003565425964631597,"total_kcal_mol":-0.22373385718768943}Energies are in Hartree (total_kcal_mol in kcal/mol), and the model is the same CN/charge-dependent D4 path gated by F46. Elements Z=0 or >118 and malformed geometries exit 1. See dispersion correction.
cpm (feature experimental-cpm)
Compute CPM charges at a fixed electrochemical potential.
sci-form cpm [OPTIONS] <ELEMENTS_JSON> <COORDS_JSON>| Option | Default | Description |
|---|---|---|
-m, --mu-ev <F> | -4.44 | Electrochemical potential in eV (finite) |
-d, --dielectric <F> | 78.5 | Solvent dielectric constant (≥ 1) |
The command is built only with --features experimental-cpm. Supported elements are H, C, N, O, F, P, S, Cl, Fe, Cu, Zn, Br and I; other elements, empty geometries and coordinate mismatches exit 1.
$ sci-form cpm "[8,1,1]" "$WATER" --mu-ev=-4.44
{"charges":[-1.9874049218707968,-1.7141127122578812,-1.7141127122578812],"converged":true,"electrostatic_energy":-8.51521920367465,"grand_potential":-32.56061794163098,"iterations":1,"mu_ev":-4.44,"total_charge":-5.415630346386559}See constant potential method for the equations and the LAMMPS comparison.
Electrical double layer (feature alpha-edl)
edl-profile
Compute an EDL profile.
sci-form edl-profile [OPTIONS]| Option | Default | Description |
|---|---|---|
-p, --potential <F> | 0.05 | Surface potential in V |
-m, --model <M> | gouy-chapman-stern | EDL model: helmholtz, gouy-chapman, gouy-chapman-stern |
-i, --ionic-strength <F> | 0.1 | Bulk ionic strength in mol/L |
-t, --temperature <F> | 298.15 | Temperature in K |
-n, --n-points <N> | 128 | Number of grid points |
-e, --extent <F> | 12.0 | Maximum profile extent in Å |
edl-capacitance-scan
Scan the EDL capacitance over a potential range.
sci-form edl-capacitance-scan [OPTIONS]| Option | Default | Description |
|---|---|---|
--v-min <F> | -0.5 | Minimum surface potential in V (may be negative) |
--v-max <F> | 0.5 | Maximum surface potential in V (may be negative) |
-n, --n-points <N> | 50 | Number of grid points |
-i, --ionic-strength <F> | 0.1 | Bulk ionic strength in mol/L |
-m, --model <M> | gouy-chapman-stern | EDL model |
edl-helmholtz, edl-gouy-chapman
Single-model EDL profiles.
sci-form edl-helmholtz [OPTIONS]
sci-form edl-gouy-chapman [OPTIONS]| Option | Default | Description |
|---|---|---|
-p, --potential <F> | 0.05 | Surface potential in V (may be negative) |
-i, --ionic-strength <F> | 0.1 | Bulk ionic strength in mol/L |
-t, --temperature <F> | 298.15 | Temperature in K |
edl-gcs
Gouy-Chapman-Stern EDL profile.
sci-form edl-gcs [OPTIONS]| Option | Default | Description |
|---|---|---|
-p, --potential <F> | 0.05 | Surface potential in V (may be negative) |
-i, --ionic-strength <F> | 0.1 | Bulk ionic strength in mol/L |
-t, --temperature <F> | 298.15 | Temperature in K |
-s, --stern-thickness <F> | 3.0 | Stern-layer thickness in Å |
All EDL commands take a surface potential in volts, for every model. Helmholtz and Gouy-Chapman-Stern are solved internally in terms of the surface charge density: the reported surface_charge_c_per_m2 is obtained from the potential through σ = C_H φ (Helmholtz) or the inversion of φ = σ/C_H + 2V_T asinh(σ/σ_ref) (GCS). Gouy-Chapman uses the Grahame relation σ = σ_ref sinh(φ/2V_T). The profile's total_interfacial_drop_v therefore equals the requested potential.
$ sci-form edl-helmholtz --potential 0.1
{"capacitance_f_per_m2":0.177...,"compact_layer_drop_v":0.1,...,"total_drop_v":0.1,"surface_charge_c_per_m2":0.0177...}
$ sci-form edl-capacitance-scan --v-min=-0.1 --v-max=0.1 -n 5 --model gcs
[[-0.1, ...], ..., [0.1, ...]]A non-positive temperature or ionic strength, a non-positive Stern thickness or dielectric, a non-positive grid extent, fewer than two grid points, or a non-finite potential exits with code 1.
pka, redox (feature alpha-redox-pka)
Compute a solution pKa or a redox potential from an explicit pair of states. The electronic energy comes from a closed-shell SCF and the solvent term from ALPB; this is a thermodynamic-cycle wrapper, not a new electronic-structure engine. See redox potentials and pKa for the cycles, units and limitations.
sci-form pka [OPTIONS] <ACID> <BASE>
sci-form redox [OPTIONS] <OXIDIZED> <REDUCED>| Option | Default | Description |
|---|---|---|
--reference-acid <SMILES> | absent | Reference acid (pKa workflow) |
--reference-base <SMILES> | absent | Reference conjugate base (pKa workflow) |
--reference-pka <F> | absent | Experimental reference pKa (pKa workflow) |
--reference-oxidized <SMILES> | absent | Reference oxidised state (redox workflow) |
--reference-reduced <SMILES> | absent | Reference reduced state (redox workflow) |
--reference-potential <F> | absent | Reference potential in V (redox workflow) |
--n-electrons <N> | 1 | Electrons transferred (redox only; 1–4) |
--method <M> | uhf | uhf or xtb; pbe0 needs alpha-dft-hybrid |
--n-conformers <N> | 1 | Conformers per state (≥ 1) |
The three reference options of a workflow must be supplied together. With no reference, pKa uses the absolute proton-solvation convention and redox uses the absolute SHE reference; both results report the convention in their notes.
$ sci-form pka "CC(=O)O" "CC(=O)[O-]" \
--reference-acid "CC(=O)O" --reference-base "CC(=O)[O-]" \
--reference-pka 4.76 --n-conformers 1
{"pka": 4.76, "relative": true, "delta_g_kcal_mol": 159.45..., ...}
$ sci-form redox "CC(=O)O" "CC(=O)[O-]" --n-electrons 1 --n-conformers 1
{"absolute_potential_v": -18.445..., "potential_vs_reference_v": -22.885..., ...}A partial reference triple, --n-electrons outside 1–4, --n-conformers 0, an unknown method, or a non-finite reference pKa/potential exits with code 1.
free-energy (feature alpha-free-energy)
Estimate a dimensionless alchemical free-energy difference from JSON AlchemicalSample records.
sci-form free-energy [OPTIONS] <SAMPLES_JSON>| Option | Default | Description |
|---|---|---|
--estimator <E> | mbar | fep, bar or mbar |
--config <JSON> | absent (defaults) | FreeEnergyConfig; omitted fields use defaults |
Each sample is {origin_state, reduced_potentials} with one finite reduced potential per state. FEP is one-directional and needs exactly two states plus state-0 samples; BAR/MBAR need at least one sample from every state. Empty samples, an out-of-range origin, a wrong potential count, or a non-positive tolerance/max-iteration count exits with code 1. delta_f_kbt is in kBT; delta_g_kcal_mol is filled when temperature_k is set.
$ sci-form free-energy '[{"origin_state":0,"reduced_potentials":[0,1.5]},{"origin_state":1,"reduced_potentials":[0,1.5]}]' --estimator mbar
{
"estimator": "mbar",
"delta_f_kbt": [0.0, 1.5],
"delta_g_kcal_mol": [0.0, 0.888727424570645],
"overlap": ["..."],
"effective_sample_size": ["..."],
"converged": true,
"iterations": 2,
"notes": ["..."]
}metadynamics, opes (feature alpha-enhanced-sampling)
Run well-tempered metadynamics or an OPES-style kernel bias on a UFF molecule. The default collective variable is the distance between atoms 0 and 1; the output contains the CV trace, deposits/kernels, free-energy surfaces and final coordinates.
sci-form metadynamics <SMILES> [OPTIONS]
sci-form opes <SMILES> [OPTIONS]| Option | Default | Description |
|---|---|---|
--coords <JSON> | absent (embed with --seed) | Flat xyz coordinates |
--config <JSON> | absent (engine defaults) | MetaDynamicsConfig or OpesConfig; omitted fields use defaults |
--steps <N> | absent (config default) | Override max_steps (≥ 1) |
--seed <N> | 42 | RNG seed for embedding and dynamics |
$ sci-form metadynamics CCO --steps 200
{"steps": 200, "dt_fs": 0.5, "cv_trace": ["..."], "gaussians": ["..."], "free_energy": {"min": 0.0, "max": 10.0, "bins": 100, "values": ["..."]}, "final_cv": 1.508..., ...}An invalid SMILES, coordinates with the wrong atom count, --steps 0, a non-finite/zero Gaussian width, bias_factor ≤ 1, a zero pace, an invalid grid, or malformed config JSON exits with code 1. The bias is a screening model; inspect notes and the two free-energy surfaces. See enhanced sampling.
kmc
Gillespie direct-method kinetic Monte Carlo for an explicit irreversible elementary-step network.
sci-form kmc <CONFIG_JSON>KmcConfig keys: species (id, initial_count), steps (step, reactants and products as [index, coefficient] pairs), state (temperature_k, pressure_bar), max_events, max_time_s, seed and frame_stride. Omitted fields use defaults.
$ sci-form kmc '{"species":[{"id":"A","initial_count":10},{"id":"B","initial_count":0}],"steps":[{"step":{"step_id":"A-to-B","activation_free_energy_ev":0.05,"reaction_free_energy_ev":-0.1,"prefactor_s_inv":1e12},"reactants":[[0,1]],"products":[[1,1]]}],"state":{"temperature_k":300,"pressure_bar":1},"max_events":20,"max_time_s":1.0,"seed":7,"frame_stride":5}'
{
"events": ["..."],
"frames": ["..."],
"final_counts": [0, 10],
"final_time_s": 2.0288939039567387e-11,
"stopped_on_limit": false,
"notes": ["..."]
}An empty species/step list, an unknown species index, a zero stoichiometric coefficient, max_events/frame_stride below 1, or a non-positive max_time_s exits with code 1. Reversible chemistry must be encoded as two irreversible steps. See kinetic Monte Carlo.
Kinetics (feature alpha-kinetics)
htst-rate
Evaluate an HTST transition rate.
sci-form htst-rate --activation-free-energy <EV> --reaction-free-energy <EV>| Option | Default | Description |
|---|---|---|
--activation-free-energy <F> | (required) | Activation free energy in eV (finite, ≥ 0) |
--reaction-free-energy <F> | (required) | Reaction free energy in eV (finite; may be negative) |
-t, --temperature <F> | 298.15 | Temperature in K (finite, > 0) |
$ sci-form htst-rate --activation-free-energy 0.5 --reaction-free-energy 0.1
{"equilibrium_constant": 0.020400936963103865, "forward_rate_s_inv": 21953.948275021547, "reverse_rate_s_inv": 1076124.5091206536, "step_id": "cli", "temperature_k": 298.15}solve-microkinetic-network
Integrate a microkinetic network.
sci-form solve-microkinetic-network [OPTIONS]| Option | Default | Description |
|---|---|---|
--network <JSON> | absent (built-in demo network) | MicrokineticNetworkConfig as JSON (file path or inline) |
--n-steps <N> | 5 | Number of output frames (≥ 2); overrides the network's n_frames |
$ sci-form solve-microkinetic-network --n-steps 5
{
"n_steps": 5,
"n_steps_requested": 5,
"n_rates": 1,
"converged": false,
"final_time_s": 0.001,
"final_populations": [0.019993059996677224, 0.9800069400033228],
"diagnostics": {
"is_steady_state": false,
"mass_conservation_error": 0.0,
"max_population": 0.9800069400033228,
"max_rate_of_change": 0.00020007488134299312,
"total_population": 1.0
}
}solve-microkinetic-steady-state
Solve the microkinetic steady state.
sci-form solve-microkinetic-steady-state [OPTIONS]| Option | Default | Description |
|---|---|---|
--network <JSON> | absent (built-in demo network) | MicrokineticNetworkConfig as JSON (file path or inline) |
--n-steps <N> | 5 | Number of integration frames (≥ 2); overrides the network's n_frames |
--tol <F> | 1e-10 | Maximum residual max_rate_of_change for converged: true |
$ sci-form solve-microkinetic-steady-state --n-steps 200 --tol 1e-5
{
"n_steps": 200,
"n_steps_requested": 200,
"converged": true,
"residual": 4.337207037963371e-06,
"tol": 1e-05,
"final_populations": [0.01999305999313246, 0.9800069400068679],
"diagnostics": {"...": "..."}
}converged compares the residual with --tol; diagnostics.is_steady_state keeps the stricter built-in 1e-10 s⁻¹ threshold.
extract-kinetics-diagnostics
Extract kinetics diagnostics from a microkinetic trace.
sci-form extract-kinetics-diagnostics [OPTIONS]| Option | Default | Description |
|---|---|---|
--network <JSON> | absent (built-in demo network) | MicrokineticNetworkConfig as JSON (file path or inline) |
This command solves the network with 20 frames. The n_steps contract and the diagnostic fields are documented in microkinetic networks.
$ sci-form extract-kinetics-diagnostics
{"is_steady_state":false,"mass_conservation_error":2.220446049250313e-16,"max_population":0.9800069400037741,"max_rate_of_change":7.94623340044654e-6,"total_population":1.0000000000000002}See microkinetic networks for the network schema, ODE and diagnostics.
Periodic linear algebra (feature alpha-periodic-linear)
kmesh
Generate a k-mesh.
sci-form kmesh [OPTIONS]| Option | Default | Description |
|---|---|---|
--nx <N> | 4 | Mesh divisions along the first reciprocal axis |
--ny <N> | 4 | Mesh divisions along the second reciprocal axis |
--nz <N> | 1 | Mesh divisions along the third reciprocal axis |
-c, --centering <C> | monkhorst-pack | Centering: monkhorst-pack or gamma |
$ sci-form kmesh
{
"grid": [4, 4, 1],
"n_points": 16,
"centering": "monkhorst-pack",
"weights_sum": 1.0,
"points": [
{"fractional": [-0.375, -0.375, 0.0], "index": [0, 0, 0], "weight": 0.0625},
"..."
]
}The full list of fractional k-points, mesh indices and integration weights is returned in points; the first three fields are a compact summary. Centering names are case-insensitive (MP, Gamma). Zero divisions and unknown centering schemes exit 1.
compute-periodic-dos
Compute the k-averaged periodic DOS with the KPM solver.
sci-form compute-periodic-dos [OPTIONS] <HAMILTONIAN_BLOCKS>| Option | Default | Description |
|---|---|---|
--nx, --ny, --nz | 2 | Mesh divisions along the reciprocal axes |
-c, --centering <C> | monkhorst-pack | Centering |
--order <N> | 100 | Chebyshev expansion order |
--e-min <F> | -20.0 | Output minimum energy in eV |
--e-max <F> | 10.0 | Output maximum energy in eV |
--n-points <N> | 512 | Number of output grid points |
--fermi-energy-ev <F> | absent | Fermi energy in eV |
--order must be ≥ 1, --n-points ≥ 2 and the energy window must satisfy e_max > e_min. The executable example uses a two-band chain and a window around its spectrum:
$ sci-form compute-periodic-dos '[...]' --nx 4 --ny 1 --nz 1 --e-min=-3 --e-max=1 --n-points 20
{
"energies_ev": ["..."],
"total_dos": ["..."],
"n_kpoints": 4,
"order": 100,
"e_min": -3.0,
"e_max": 1.0,
"fermi_energy_ev": null,
"band_edges": {"...": "..."},
"diagnostics": {"n_kpoints": 4, "...": "..."}
}solve-periodic-randnla
Solve the periodic RandNLA problem.
sci-form solve-periodic-randnla [OPTIONS] <HAMILTONIAN_BLOCKS> <OVERLAP_BLOCKS>| Option | Default | Description |
|---|---|---|
--n-electrons <N> | 2 | Number of valence electrons |
--nx, --ny, --nz | 2 | Mesh divisions along the reciprocal axes |
-c, --centering <C> | monkhorst-pack | Centering |
--sketch-size <N> | absent (engine default) | Nyström sketch rank (≥ 1; omit for default) |
A 4×1×1 mesh gives dispersive k-points for a chain; the default 2×2×2 mesh can place every k-point at a node where the hopping term vanishes. sketch_size=0 and invalid grid/centering values exit 1.
$ sci-form solve-periodic-randnla "$H" "$S" --n-electrons 2 --nx 4 --ny 1 --nz 1
{
"n_kpoints": 4,
"sketch_size": null,
"homo_energy_ev": -0.6845972523883022,
"lumo_energy_ev": -0.8169761019247392,
"band_gap_ev": 0.476301285963152,
"direct_gap_ev": 0.476301285963152,
"indirect_gap_ev": 0.476301285963152,
"max_residual": 1.3084103822364793e-16,
"used_fallback": false,
"kpoint_results": ["..."]
}bloch-phase
Compute the Bloch phase factor for a fractional k-point and a lattice translation:
sci-form bloch-phase [OPTIONS]| Option | Default | Description |
|---|---|---|
--k-x, --k-y, --k-z | 0.0 | Fractional k coordinates (finite, may be negative) |
--t-x, --t-y, --t-z | 1, 0, 0 | Lattice translation indices (may be negative) |
$ sci-form bloch-phase --k-x 0.5
{"cos":-1.0,"k":[0.5,0.0,0.0],"sin":1.2246467991473532e-16,"translation":[1,0,0]}The phase is periodic in k with period 1 along each reciprocal axis. A non-finite k coordinate is rejected with exit code 1.
build-bloch-hamiltonian
Build the real-space Bloch Hamiltonian
The implementation is real-valued: it retains the cosine part of the Bloch sum. Supply both +R and -R blocks for each hopping (and the on-site R=0 block) so that the imaginary parts cancel and the result is the physical Hermitian Bloch Hamiltonian. A model that needs a genuinely complex H(k) (e.g. a non-centrosymmetric hopping) is outside this real adapter.
sci-form build-bloch-hamiltonian [OPTIONS] <BLOCKS>| Option | Default | Description |
|---|---|---|
--k-x, --k-y, --k-z | 0.0 | Fractional k coordinates (finite, may be negative) |
$ sci-form build-bloch-hamiltonian '[{"matrix":[[-1.0]],"translation":[0,0,0]},{"matrix":[[-0.5]],"translation":[1,0,0]},{"matrix":[[-0.5]],"translation":[-1,0,0]}]' --k-x 0.25
{"eigenvalues":[-1.0],"k":[0.25,0.0,0.0],"matrix":[[-1.0]],"matrix_shape":[1,1],"n_basis":1}At k = 0.25 the two hopping phases cancel (cos(π/2) = 0), leaving only the on-site block. Blocks must be non-empty, square, real, and share one dimension; empty input, ragged blocks, a dimension mismatch, or a non-finite k coordinate exit with code 1.
assemble-periodic-operators
Assemble the periodic operators for every k-point.
sci-form assemble-periodic-operators [OPTIONS] <HAMILTONIAN_BLOCKS> [OVERLAP_BLOCKS]| Option | Default | Description |
|---|---|---|
--nx, --ny, --nz | 2 | Mesh divisions along the reciprocal axes |
-c, --centering <C> | monkhorst-pack | Centering (monkhorst-pack/mp or gamma) |
OVERLAP_BLOCKS is optional; when absent the overlap is the identity matrix in the Hamiltonian basis. The output reports n_kpoints, n_basis, assembled, the mesh kpoints (fractional coordinates, indices and weights), hamiltonians and overlaps for every k-point.
$ sci-form assemble-periodic-operators "$H" --nx 2 --ny 1 --nz 1
{"assembled":true,"hamiltonians":[[[-1.0]],[[-1.0]]],"kpoints":[{"fractional":[-0.25,0.0,0.0],"index":[0,0,0],"weight":0.5},{"fractional":[0.25,0.0,0.0],"index":[1,0,0],"weight":0.5}],"n_basis":1,"n_kpoints":2,"overlaps":[[[1.0]],[[1.0]]]}An empty Hamiltonian block list, a non-positive grid dimension, a bad centering name, or a Hamiltonian/overlap dimension mismatch exits with code 1.
validate-electron-count
Check that a valence-electron count fits into the available band/k-point states. A band at a k-point is spin-degenerate and holds two electrons, so the capacity is 2 × n_bands × n_kpoints. The command returns valid = true only when n_bands > 0, n_kpoints > 0, and n_electrons ≤ 2 × n_bands × n_kpoints. It does not inspect the band energies or check for an occupied/unoccupied split.
sci-form validate-electron-count --n-electrons <N> --n-bands <N> --n-kpoints <N>All three options are required.
$ sci-form validate-electron-count --n-electrons 2 --n-bands 4 --n-kpoints 8
{"n_bands": 4, "n_electrons": 2, "n_kpoints": 8, "valid": true}
$ sci-form validate-electron-count --n-electrons 65 --n-bands 4 --n-kpoints 8
{"n_bands": 4, "n_electrons": 65, "n_kpoints": 8, "valid": false}Chart utilities
chart-to-json, chart-from-json, validate-chart-schema
Serialize, deserialize and validate chart payloads.
sci-form chart-to-json [JSON]
sci-form chart-from-json [JSON]
sci-form validate-chart-schema [JSON]The JSON positional argument accepts an inline JSON string; when it is omitted or empty the command reads the payload from stdin. The payload schema is {title, series: [{series_id, label, x, y, x_unit, y_unit}]}. Every series needs a non-empty, unique series_id, matching x/y lengths and finite values. chart-to-json and chart-from-json exit 1 on invalid input; validate-chart-schema always exits 0 and reports {"valid": false}.
$ sci-form chart-to-json '{"title":"t","series":[{"series_id":"s","label":"S","x":[0,1],"y":[0,1],"x_unit":"V","y_unit":"A"}]}'
{
"data": {
"series": [{ "label": "S", "series_id": "s", "x": [0.0, 1.0], "x_unit": "V", "y": [0.0, 1.0], "y_unit": "A" }],
"title": "t"
},
"format": "json",
"version": "1.0"
}
$ sci-form chart-from-json '{"title":"t","series":[{"series_id":"s","label":"S","x":[0,1],"y":[0,1],"x_unit":"V","y_unit":"A"}]}'
{
"title": "t",
"series": [{ "series_id": "s", "label": "S", "x": [0.0, 1.0], "x_unit": "V", "y": [0.0, 1.0], "y_unit": "A" }]
}
$ sci-form validate-chart-schema '{"title":"t","series":[{"series_id":"s","label":"S","x":[0,1],"y":[0,1],"x_unit":"V","y_unit":"A"}]}'
{
"valid": true
}edl-chart (also needs alpha-edl)
Build a chart payload for a Gouy-Chapman profile at a surface potential.
sci-form edl-chart [OPTIONS]| Option | Default | Description |
|---|---|---|
-p, --potential <F> | 0.1 | Surface potential in V (may be negative) |
-i, --ionic-strength <F> | 0.1 | Bulk ionic strength in mol/L (> 0) |
The payload has two series: potential (V vs Å) and charge_density (C/m³ vs Å). A non-finite potential or a non-positive ionic strength exits with code 1.
capacitance-chart (also needs alpha-edl)
Build a capacitance-scan chart payload.
sci-form capacitance-chart [OPTIONS]| Option | Default | Description |
|---|---|---|
--v-min <F> | -0.5 | Minimum surface potential in V (may be negative) |
--v-max <F> | 0.5 | Maximum surface potential in V (may be negative) |
-n, --n-points <N> | 50 | Number of grid points (≥ 2) |
-i, --ionic-strength <F> | 0.1 | Bulk ionic strength in mol/L (> 0) |
-m, --model <M> | gouy-chapman | EDL model |
The first series is the exact surface charge density from the model's potential–charge relation (Q(φ), C/m²), not a trapezoidal integral of the truncated profile. The second series is the differential capacitance (F/m²). Descending potential ranges are allowed.
arrhenius-chart, thermal-prop-chart (also need alpha-kinetics)
sci-form arrhenius-chart --temperatures <JSON> --rates <JSON>
sci-form thermal-prop-chart --activation-free-energy <EV> --reaction-free-energy <EV> --temperatures <JSON>arrhenius-chart plots ln(k) against 1000/T. The temperature and rate arrays must be non-empty, have the same length, and contain finite positive values (a non-positive rate has no logarithm). thermal-prop-chart accepts a negative reaction free energy and adds a ln(K_eq) series; the activation free energy must be finite and non-negative, the temperature list non-empty, and every temperature positive.
phase-portrait-chart (also needs alpha-kinetics)
sci-form phase-portrait-chart [OPTIONS]| Option | Default | Description |
|---|---|---|
--network <JSON> | absent (built-in demo network) | MicrokineticNetworkConfig JSON (file path or inline) |
--n-steps <N> | 50 | Number of integration frames (≥ 2); overrides the network's n_frames |
The portrait plots the first two species against each other. The network must contain at least two species and a valid stoichiometry/state.
band-structure-chart, dos-chart, kpoint-path-chart, fermi-surface-chart (also need alpha-periodic-linear)
sci-form band-structure-chart [OPTIONS] <ELEMENTS> <COORDS> <LATTICE>
sci-form dos-chart --energies <JSON> --dos-values <JSON>
sci-form kpoint-path-chart [OPTIONS]
sci-form fermi-surface-chart [OPTIONS] <BLOCKS>| Command | Options |
|---|---|
band-structure-chart | --n-kpoints-per-segment <N> (default 20, ≥ 1) |
dos-chart | -e, --energies <JSON>, -d, --dos-values <JSON> (both required) |
kpoint-path-chart | --n-points-per-segment <N> (default 20, ≥ 1) |
fermi-surface-chart | --fermi-energy-ev <F> (absent, may be negative), --n-kx <N> (default 24, ≥ 2), --n-ky <N> (default 24, ≥ 2) |
band-structure-chart requires coords to contain exactly three values per element and a finite nine-component lattice. dos-chart requires equal-length, finite arrays with strictly increasing energies and non-negative DOS values. fermi-surface-chart reads the same real-space blocks as the periodic commands and returns the kz = 0 contour; when the Fermi energy is omitted it uses the median sampled eigenvalue.
$ sci-form dos-chart --energies '[-1,0,1]' --dos-values '[0.1,0.5,0.1]'
{"series": [{"label": "Density of states", "series_id": "dos", "x": [-1.0, 0.0, 1.0], "x_unit": "eV", "y": [0.1, 0.5, 0.1], "y_unit": "a.u."}], "series_count": 1, "title": "Periodic DOS"}Output formats
JSON
Default format. Returns the full ConformerResult as compact JSON.
XYZ
Standard XYZ format for molecular viewers (Avogadro, VESTA, VMD):
9
CCO
C -0.893064 0.069264 0.063601
C 0.525542 -0.422006 -0.147153
O 1.389964 0.450482 0.467233
...SDF
MDL Structure Data File format. Compatible with RDKit, OpenBabel, MarvinSuite.
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | Runtime failure: invalid SMILES, embedding failure, missing input file, I/O error, or a failed calculation |
2 | Usage error reported by the argument parser (unknown subcommand, missing or invalid flag) |
Pipeline examples
Filter successful results
sci-form batch -i molecules.smi | jq -c 'select(.error == null)'Get batch statistics
sci-form batch -i molecules.smi | jq -s '{
total: length,
success: [.[] | select(.error == null)] | length,
avg_time_ms: ([.[] | .time_ms] | add / length)
}'Convert batch to XYZ
sci-form batch -i molecules.smi -f xyz > all_conformers.xyzCompute charges for all molecules in a file
while read smiles; do
sci-form charges "$smiles"
done < molecules.smi | jq -s '.'Parallel processing with GNU Parallel
cat huge_set.smi | parallel -j8 --pipe -N100 sci-form batch /dev/stdin > results.json