Skip to content

Analysis#

Types from the analysis area of the protocol that appear in API signatures and attributes.

SeriesAnalysisResponse #

success class-attribute instance-attribute #

success: bool

error class-attribute instance-attribute #

error: str

trends class-attribute instance-attribute #

trends: list[SeriesTrend]

x_label class-attribute instance-attribute #

x_label: str

x_unit class-attribute instance-attribute #

x_unit: str

uncertainty_method class-attribute instance-attribute #

uncertainty_method: str

How parameter uncertainties were obtained, and the interval level (0.95).

confidence_level class-attribute instance-attribute #

confidence_level: float

skipped class-attribute instance-attribute #

skipped: list[str]

suitability class-attribute instance-attribute #

suitability: QnmrSystemSuitability | None

The acquisition check of the first member, shown beside concentration and yield; absent for other quantities.

quantity_notes class-attribute instance-attribute #

quantity_notes: list[str]

Translated reasons the requested quantity could not be computed, or what it rests on.

standard_concentration_mol_l class-attribute instance-attribute #

standard_concentration_mol_l: float

Concentration of the internal standard used, mol/L; 0 when none.

SeriesCustomParameter #

One parameter of a custom formula.

name class-attribute instance-attribute #

name: str

initial class-attribute instance-attribute #

initial: float | None

Starting value; when unset it is derived from the data.

lower class-attribute instance-attribute #

lower: float | None

upper class-attribute instance-attribute #

upper: float | None

SeriesDefinition #

variable class-attribute instance-attribute #

variable: SeriesVariable

variable_label class-attribute instance-attribute #

variable_label: str

Name and unit of a custom variable, shown on axes and in the report.

variable_unit class-attribute instance-attribute #

variable_unit: str

time_unit class-attribute instance-attribute #

time_unit: SeriesTimeUnit

points class-attribute instance-attribute #

points: list[SeriesPoint]

regions class-attribute instance-attribute #

regions: list[SeriesRegion]

model class-attribute instance-attribute #

model: SeriesModel

align_low_ppm class-attribute instance-attribute #

align_low_ppm: float | None

Reference window whose centroid is aligned across spectra before measuring.

align_high_ppm class-attribute instance-attribute #

align_high_ppm: float | None

normalise_to class-attribute instance-attribute #

normalise_to: str

Region id every value is divided by (an internal standard); empty for none.

active class-attribute instance-attribute #

active: bool

Whether the Analysis page shows the series view.

alignment class-attribute instance-attribute #

alignment: SeriesAlignment

follow class-attribute instance-attribute #

follow: SeriesFollow | None

species class-attribute instance-attribute #

species: list[SeriesSpecies]

quantity class-attribute instance-attribute #

quantity: SeriesQuantity

conditions class-attribute instance-attribute #

conditions: str

Reagents, solvent and temperature written over the reaction arrow of the scheme.

weighting class-attribute instance-attribute #

weighting: SeriesWeighting

custom_formula class-attribute instance-attribute #

custom_formula: str

Expression in x used by SERIES_MODEL_CUSTOM, e.g. "A*exp(-x/T) + C".

custom_parameters class-attribute instance-attribute #

custom_parameters: list[SeriesCustomParameter]

Start values and bounds by parameter name; a parameter without an entry, or without a start value, starts from the data.

fitter class-attribute instance-attribute #

fitter: SeriesFitter

SeriesFitter #

How the start values of a custom formula are found; the first four are strategies, the rest name an algorithm.

AUTO class-attribute instance-attribute #

AUTO = 0

Pick by the data and the shape of the formula.

ROBUST class-attribute instance-attribute #

ROBUST = 1

FAST class-attribute instance-attribute #

FAST = 2

ACCURATE class-attribute instance-attribute #

ACCURATE = 3

SCIPY class-attribute instance-attribute #

SCIPY = 4

General least squares with data-derived starts.

LINEAR class-attribute instance-attribute #

LINEAR = 5

Log-linearised single exponential.

VARPRO class-attribute instance-attribute #

VARPRO = 6

Variable projection for sums of exponentials.

SPECIALIZED class-attribute instance-attribute #

SPECIALIZED = 7

The specialised fitter for the detected shape (power law, stretched exponential).

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesModel #

UNSPECIFIED class-attribute instance-attribute #

UNSPECIFIED = 0

NONE class-attribute instance-attribute #

NONE = 1

ZERO_ORDER class-attribute instance-attribute #

ZERO_ORDER = 2

y = y0 - k·x

FIRST_ORDER class-attribute instance-attribute #

FIRST_ORDER = 3

y = y0·exp(-k·x)

SECOND_ORDER class-attribute instance-attribute #

SECOND_ORDER = 4

y = y0 / (1 + k·y0·x)

EXPONENTIAL class-attribute instance-attribute #

EXPONENTIAL = 5

y = y_inf + (y0 - y_inf)·exp(-k·x): decay or growth to a plateau

SIGMOID class-attribute instance-attribute #

SIGMOID = 6

y = y_low + (y_high - y_low) / (1 + 10^(n·(x50 - x))), n > 0

STRETCHED_EXPONENTIAL class-attribute instance-attribute #

STRETCHED_EXPONENTIAL = 7

y = y0·exp(-(k·x)^beta), 0 < beta <= 1: a decay with a spread of rates (T1, T2, diffusion in heterogeneous media)

BIEXPONENTIAL class-attribute instance-attribute #

BIEXPONENTIAL = 8

y = a1·exp(-k1·x) + a2·exp(-k2·x), k1 > k2: two decaying components, such as T2 of two environments

CUSTOM class-attribute instance-attribute #

CUSTOM = 9

The expression in SeriesDefinition.custom_formula; its names other than x are the fitted parameters.

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesRegion #

id class-attribute instance-attribute #

id: str

label class-attribute instance-attribute #

label: str

low_ppm class-attribute instance-attribute #

low_ppm: float

high_ppm class-attribute instance-attribute #

high_ppm: float

metric class-attribute instance-attribute #

metric: SeriesMetric

species_id class-attribute instance-attribute #

species_id: str

The species this region measures; empty for a bare region.

n_nuclei class-attribute instance-attribute #

n_nuclei: int

Nuclei behind the region's signal, to normalise its integral; 0 when not stated.

SeriesTimeUnit #

UNSPECIFIED class-attribute instance-attribute #

UNSPECIFIED = 0

SECONDS class-attribute instance-attribute #

SECONDS = 1

MINUTES class-attribute instance-attribute #

MINUTES = 2

HOURS class-attribute instance-attribute #

HOURS = 3

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesVariable #

Members are the scans a request names (the working set); an arrayed scan counts once per increment.

UNSPECIFIED class-attribute instance-attribute #

UNSPECIFIED = 0

TIME class-attribute instance-attribute #

TIME = 1

Time since the earliest acquisition timestamp.

CUSTOM class-attribute instance-attribute #

CUSTOM = 2

A value entered per point (SeriesPoint.x), e.g. temperature or pH.

ARRAY class-attribute instance-attribute #

ARRAY = 3

The arrayed acquisition's own indirect axis (delay list, gradient b-value).

ORDER class-attribute instance-attribute #

ORDER = 4

Position in the working set (1, 2, …); an arrayed scan's increments count one each.

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesWeighting #

How the fit treats the per-point uncertainties.

WEIGHTED class-attribute instance-attribute #

WEIGHTED = 0

Points weighted by their noise-derived sigma when every point has one, else ordinary least squares.

UNWEIGHTED class-attribute instance-attribute #

UNWEIGHTED = 1

Ordinary least squares; sigmas are ignored and parameter errors come from the residual variance.

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesAlignment #

WINDOW class-attribute instance-attribute #

WINDOW = 0

On the centroid of the align_low/high window; no alignment when the window is unset.

REFERENCE class-attribute instance-attribute #

REFERENCE = 1

Each spectrum on its own sample's reference line: the internal standard when its line is present, else the solvent residual.

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesFit #

model class-attribute instance-attribute #

model: SeriesModel

success class-attribute instance-attribute #

success: bool

message class-attribute instance-attribute #

message: str

Why the fit failed (translated).

parameters class-attribute instance-attribute #

parameters: list[SeriesFitParameter]

derived class-attribute instance-attribute #

Quantities computed from the parameters (half_life).

n_points class-attribute instance-attribute #

n_points: int

dof class-attribute instance-attribute #

dof: int

rss class-attribute instance-attribute #

rss: float

reduced_chi_square class-attribute instance-attribute #

reduced_chi_square: float

Weighted by the per-point noise estimate: well above 1 means scatter beyond noise.

r_squared class-attribute instance-attribute #

r_squared: float

aicc class-attribute instance-attribute #

aicc: float

akaike_weight class-attribute instance-attribute #

akaike_weight: float

Akaike weight among the kinetic models, or 1 for the sigmoid (compared with nothing).

curve_x class-attribute instance-attribute #

curve_x: list[float]

curve_y class-attribute instance-attribute #

curve_y: list[float]

weighted class-attribute instance-attribute #

weighted: bool

Whether the points were weighted by their sigmas.

formula class-attribute instance-attribute #

formula: str

The expression of a SERIES_MODEL_CUSTOM fit.

fitted class-attribute instance-attribute #

fitted: list[float]

The fitted curve at each x of the trend, in the trend's order; NaN when the fit failed.

fitter_used class-attribute instance-attribute #

fitter_used: str

Custom formulas: how the start values were found, e.g. "multi-start from the data" or "log-linear exponential".

SeriesFitParameter #

name class-attribute instance-attribute #

name: str

value class-attribute instance-attribute #

value: float

std_error class-attribute instance-attribute #

std_error: float

NaN when the fit has no residual degrees of freedom.

ci_low class-attribute instance-attribute #

ci_low: float

ci_high class-attribute instance-attribute #

ci_high: float

start class-attribute instance-attribute #

start: float

Custom formulas: the value the fit started from, and whether it was derived from the data rather than typed.

start_auto class-attribute instance-attribute #

start_auto: bool

SeriesFollow #

Appends every scan saved into a group to the working set, even with no window open.

project class-attribute instance-attribute #

project: str

group class-attribute instance-attribute #

group: str

enabled class-attribute instance-attribute #

enabled: bool

SeriesMetric #

UNSPECIFIED class-attribute instance-attribute #

UNSPECIFIED = 0

INTEGRAL class-attribute instance-attribute #

INTEGRAL = 1

HEIGHT class-attribute instance-attribute #

HEIGHT = 2

POSITION class-attribute instance-attribute #

POSITION = 3

Intensity-weighted centroid of the region, ppm (follows a titrating shift).

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesPoint #

Per-point settings; a point without an entry has no custom x and is included.

project class-attribute instance-attribute #

project: str

scan_id class-attribute instance-attribute #

scan_id: str

row class-attribute instance-attribute #

row: int | None

Increment index for an arrayed scan; absent for a plain 1D scan.

x class-attribute instance-attribute #

x: float | None

excluded class-attribute instance-attribute #

excluded: bool

SeriesQuantity #

What a trend plots. Everything but INTEGRAL needs species; CONCENTRATION also needs an internal standard.

UNSPECIFIED class-attribute instance-attribute #

UNSPECIFIED = 0

Same as SERIES_QUANTITY_INTEGRAL.

INTEGRAL class-attribute instance-attribute #

INTEGRAL = 1

The region measurements as they are.

MOLE_FRACTION class-attribute instance-attribute #

MOLE_FRACTION = 2

Species amount over the amount of every non-standard species, percent.

CONCENTRATION class-attribute instance-attribute #

CONCENTRATION = 3

Species amount against the internal standard's known concentration, mol/L.

CONVERSION class-attribute instance-attribute #

CONVERSION = 4

1 - n_reactant(t) / n_reactant(t0), percent.

YIELD class-attribute instance-attribute #

YIELD = 5

n_product(t) / (n_reactant(t0) * stoichiometry), percent.

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesSpecies #

A reaction participant whose regions are measured together.

id class-attribute instance-attribute #

id: str

name class-attribute instance-attribute #

name: str

smiles class-attribute instance-attribute #

smiles: str

role class-attribute instance-attribute #

stoichiometry class-attribute instance-attribute #

stoichiometry: float

Moles of this species per mole of the limiting reactant at full conversion; 0 means 1.

component_id class-attribute instance-attribute #

component_id: str

SampleComponent.id this species is linked to; empty for a self-contained species.

SeriesSpeciesRole #

UNSPECIFIED class-attribute instance-attribute #

UNSPECIFIED = 0

REACTANT class-attribute instance-attribute #

REACTANT = 1

PRODUCT class-attribute instance-attribute #

PRODUCT = 2

INTERMEDIATE class-attribute instance-attribute #

INTERMEDIATE = 3

BY_PRODUCT class-attribute instance-attribute #

BY_PRODUCT = 4

STANDARD class-attribute instance-attribute #

STANDARD = 5

The internal standard; its concentration comes from the linked sample component.

betterproto_value_to_renamed_proto_names classmethod #

betterproto_value_to_renamed_proto_names() -> dict[
    int, str
]

betterproto_renamed_proto_names_to_value classmethod #

betterproto_renamed_proto_names_to_value() -> dict[
    str, int
]

SeriesTrend #

region_id class-attribute instance-attribute #

region_id: str

point_keys class-attribute instance-attribute #

point_keys: list[str]

Included points only, ordered by x; keys are "/[#row]".

x class-attribute instance-attribute #

x: list[float]

values class-attribute instance-attribute #

values: list[float]

sigmas class-attribute instance-attribute #

sigmas: list[float]

Noise-propagated standard uncertainty per value.

fits class-attribute instance-attribute #

fits: list[SeriesFit]

Every model, in SeriesModel order.

best_model class-attribute instance-attribute #

best_model: SeriesModel

Lowest-AICc kinetic model.

species_id class-attribute instance-attribute #

species_id: str

Set on a trend of a species rather than of a region (region_id is then empty).

quantity class-attribute instance-attribute #

quantity: SeriesQuantity

What values hold; UNSPECIFIED for a region trend.