Skip to main content
Docs

Search guides and API endpoints, for example “Idempotency-Key” or “submit job”.

    Tools · Quantum Chemistry

    Spectral Conformer Assignment

    Conformer populations from measured IR spectra, fitted as a non-negative mix of a computed per-conformer spectral library, with bootstrap intervals and identifiability flags.

    Updated November 24, 2026

    On this page

    Prices, workflows, and method papersOpen in the app

    Spectral Conformer Assignment is the inverse step of the IR chain. Vibrational Spectrum Library predicts a spectrum for every conformer; this tool takes a measured spectrum and asks which mix of those conformers explains it. Each observed spectrum is fitted as a non-negative combination of the library spectra by bounded least squares (Lawson and Hanson, 1995), and the normalized weights are reported as conformer populations. Every population carries a bootstrap interval, and conformers whose spectra cannot be told apart are flagged rather than given a falsely precise split.

    How a run works

    1. The observed x values are converted to wavenumbers (cm⁻¹, µm, or nm are accepted) and sorted, so a descending instrument axis works as is.
    2. The fit uses only the range where the observed spectrum and the library overlap, optionally narrowed to a window. Observed points are interpolated onto the library grid; nothing is extrapolated. A spectrum that overlaps the library over less than the minimum fraction is rejected.
    3. If calibration is on, a global shift (or a shift and a frequency scale) is fitted first and then held fixed.
    4. The populations are fitted, with an optional constant or linear baseline alongside them.
    5. Intervals come from a seeded block bootstrap of the residuals (Efron, 1979): the fit is repeated on resampled residuals, and the 2.5 and 97.5 percentiles are reported.

    The same inputs and seed always give the same result.

    Inputs

    • Library: a wavenumber_cm1 column followed by one intensity column per conformer. The library.csv from Vibrational Spectrum Library has this shape; a library from another program works if it does too.
    • Observed spectra: an x column and one intensity column per measured spectrum. Baseline-correct and trim the spectra first, or let the fit add a baseline. Intensity units do not matter, because the populations are normalized.
    • Conformers (optional): the Vibrational Spectrum Library conformers.csv. It adds SMILES, molecule indices, and Boltzmann populations, joined on the conformer_<index>_ column names of the library.
    • Sticks (optional): the Vibrational Spectrum Library sticks.csv. It adds the band assignment table.

    In a workflow, the library, conformers, and sticks inputs bind straight to a Vibrational Spectrum Library step.

    Calibration

    Computed harmonic frequencies are usually offset from experiment, often by a few percent. A shift moves every library band by the same amount; shift and scale also stretches the axis about zero, like a frequency scaling factor. The fitted values are reported on every row. A value that lands on a bound is flagged, since the true calibration may lie outside it. Intervals are conditional on the fitted calibration.

    The Boltzmann prior

    With a conformers table, the computed Boltzmann populations are always reported next to the fitted ones, together with how well a spectrum built from them fits. Regularizing turns them into a prior: the fit is pulled toward the computed populations, and the strength sets how far. A strength of 1 makes a 0.1 population deviation cost 1% of the squared size of the spectrum. Use the prior when the spectrum alone cannot separate some conformers and the computed energies are trusted; leave it off to let the spectrum speak for itself.

    Reading the results

    • populations.csv: one row per spectrum and conformer, with the population and its interval, the computed prior population, the collinear group and its summed population, the calibration, and flags.
    • fit.csv: one row per spectrum, with the residual, R², and the residuals of three simple alternatives: equal populations, the lowest-energy conformer alone, and the Boltzmann mix. A fit that is not clearly better than these says little about the conformers.
    • assignments.csv: each computed band weighted by its conformer's fitted population, so peaks in the measured spectrum can be traced to conformers.
    • overlay.csv: the observed and reconstructed spectra on the fitted grid, ready to plot.

    The flags mean:

    • non_identifiable: the conformer's spectrum is nearly identical to another's over the fitted window (cosine similarity above the threshold), or its interval is wide. For a collinear group the split is not determined, but the group's summed population, reported with its own interval, often is.
    • wide_ci: the interval is wider than the threshold.
    • at_bound: the population is zero.
    • no_signal_in_window: the conformer has no intensity in the fitted window.

    Limits and not covered

    On synthetic three-conformer mixtures, the nominal 95% intervals covered the true populations 84 to 94% of the time, so read them as a lower bound on the uncertainty. The noise model is Gaussian and the library is taken as exact: errors in the computed spectra themselves, such as band shapes or relative intensities, are not propagated into the intervals. Overtones, combination bands, and solvent or matrix bands that the library does not contain show up as residual. Raw instrument files are not read; upload a processed table.

    Build the library with Vibrational Spectrum Library from a Conformer Ensemble Generator or xTB / CREST ensemble. QC Conformer Ranking & Descriptors gives DFT-level populations, which Vibrational Spectrum Library can carry through as the prior.

    Measured accuracy

    No published accuracy measurement yet.

    Run it from the API

    Submit with Submit a job and the job_type below. Price it first with Estimate job reservation cost: submitting reserves that amount from your wallet, and the charge settles at the actual runtime.

    Spectral Conformer Assignment spectrum-assign

    Job type
    spectrum-assign
    Hardware
    cpu (default)
    Typical runtime
    2 min on CPU

    Payload

    Payload fields
    FieldTypeDescription
    libraryrequiredfile_object
    observedrequiredfile_object
    conformersfile_object
    sticksfile_object
    observed_x_columnstring

    Limits: min length 1, max length 200

    observed_x_unitstring

    Default: "cm-1"One of: "cm-1", "um", "nm"

    observed_columns[]string[]

    Limits: min items 1, max items 20

    x_min_cm1number

    Limits: ≥ 0, ≤ 5000

    x_max_cm1number

    Limits: ≥ 0, ≤ 5000

    min_overlap_fractionnumber

    Default: 0.5Limits: > 0, ≤ 1

    baselinestring

    Default: "none"One of: "none", "constant", "linear"

    calibrationstring

    Default: "none"One of: "none", "shift", "shift_scale"

    max_shift_cm1number

    Default: 20Limits: > 0, ≤ 200

    scale_minnumber

    Default: 0.95Limits: ≥ 0.8, ≤ 1.2

    scale_maxnumber

    Default: 1.02Limits: ≥ 0.8, ≤ 1.2

    priorstring

    Default: "none"One of: "none", "regularize"

    prior_strengthnumber

    Default: 1Limits: > 0, ≤ 1000000

    n_bootstrapinteger

    Default: 200Limits: ≥ 50, ≤ 2000

    seedinteger

    Default: 0Limits: ≥ 0, ≤ 2147483647

    collinearity_thresholdnumber

    Default: 0.99Limits: ≥ 0.8, < 1

    wide_ci_thresholdnumber

    Default: 0.5Limits: > 0, ≤ 1

    assignment_min_weightnumber

    Default: 0.01Limits: ≥ 0, ≤ 1

    library_methodstring

    Limits: min length 1, max length 200

    File fields take {"name": "x.pdb", "content_b64": "…"} or a stored artifact, {"$artifact": {"id": "art-…", "port": "…"}}. Files are up to 25 MiB each.

    Example

    from cognichem_client import CogniChem
    
    client = CogniChem.from_env()  # reads COGNICHEM_API_KEY
    payload = {
        "library": {
            "name": "library.csv",
            "content_b64": "<file contents, base64>",
        },
        "observed": {
            "name": "observed.csv",
            "content_b64": "<file contents, base64>",
        },
        "conformers": {
            "name": "conformers.csv",
            "content_b64": "<file contents, base64>",
        },
        "sticks": {"name": "sticks.csv", "content_b64": "<file contents, base64>"},
        "observed_x_column": "wavenumber_cm1",
        "observed_x_unit": "cm-1",
        "baseline": "constant",
        "calibration": "shift",
        "max_shift_cm1": 10,
        "n_bootstrap": 100,
        "seed": 0,
        "library_method": "GFN2-xTB (synthetic fixture)",
    }
    
    estimate = client.jobs.estimate(job_type="spectrum-assign", payload=payload, resource="cpu")
    print(f"Reserves ${estimate.cost:.2f}")
    
    job = client.jobs.submit(
        job_name="my-spectrum-assign-run",
        job_type="spectrum-assign",
        payload=payload,
        resource="cpu",
    )
    status = client.jobs.wait(job.process_id)
    if status.status == "completed":
        client.jobs.result(job.process_id, save_path=".")

    Sample data from the job catalog; long values are shortened here. Each job_name must be unique among your jobs.

    Workflow inputs

    • Table · optionalCSV
    • TableCSV
    • TableCSV
    • Table · optionalCSV

    Workflow outputs

    • ArchiveZIP
    • TableCSV
    • TableCSV
    • TableCSV
    • TableCSV