Metadata-Version: 2.5
Name: molass_benchmarks
Version: 0.2.0
Summary: Benchmark Data of Known Composition for Molass Library
Project-URL: Repository, https://github.com/biosaxs-dev/molass-benchmarks
Author: Molass Community
Maintainer: Molass Community
License: GNU General Public License v3.0
License-File: LICENSE.txt
Keywords: SEC-SAXS
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# Benchmark Data for Molass Library

Data sets of **known composition** for testing and demonstrating the Molass Library, kept apart from the tutorial
data of `molass_data` (which stays small).

```
pip install molass_benchmarks
```

```
from molass_benchmarks import PROTEINS5               # contains the folder path
from molass_benchmarks import OAGI_INTERPARTICLE      # contains the folder path
from molass_benchmarks import FOLDUNFOLD_CONTINUUM    # contains the folder path
from molass_benchmarks import FOLDUNFOLD_DISCRETE    # contains the folder path
```

| Attribute | Kind | Content |
|---|---|---|
| `PROTEINS5` | measured | A mixture of five proteins (`20191006_proteins5`); it was `SAMPLE6` of `molass_data` 0.5.0. |
| `OAGI_INTERPARTICLE` | measured | A mixture of ovalbumin and glucose isomerase (`20180526/OAGI`), the second measured data set for interparticle effects next to `SAMPLE3` of `molass_data` (`20180526/GI`, glucose isomerase alone). 372 frames, 775 q points (0.0075 – 0.4192 Å⁻¹, the grid of `SAMPLE3`), UV 318 × 745. See below. |
| `FOLDUNFOLD_CONTINUUM` | simulated | A continuum of fold/unfold species: fast-exchange mix of a folded sphere and an unfolded Gaussian chain whose unfolded fraction falls along the elution (Rg from 52 to 26 Å); one peak with a trailing shoulder. |
| `FOLDUNFOLD_DISCRETE` | simulated | Three discrete fold/unfold species with different unfolded fractions (true Rg 52.6, 41.4 and 25.7 Å; Guinier Rg of a quick decomposition 47, 34 and 22 Å): a control that a diagnostic should call discrete. |

The simulated sets are generated by `molass.Testing.simulate_sample4_like("fold_unfold_continuum")` and
`("fold_unfold_discrete")` (molass-library#379; form factors after J. S. Pedersen, Adv. Colloid Interface Sci. 70
(1997) 171) with the photon-counting noise of Sedlak et al. (J. Appl. Cryst. 50 (2017) 621-630; about 30 counts at the
strongest frame and the first q point) on the geometry of a measured data set; the truth is in `ssd.simulation_truth` of the
simulated object and the scripts in `scripts/` regenerate the files.

### About `OAGI_INTERPARTICLE`

Why it is here: until now `SAMPLE3` was the only measured data set in which an interparticle effect is expected, and a
single data set cannot show whether a diagnostic or a fix is specific to it. `OAGI_INTERPARTICLE` is a second, **less
clear** case, so it is a harder test than `SAMPLE3` (it also exposed two library problems that `SAMPLE3` did not,
molass-library#426 and #427: a collapsing EDM upgrade, and no warning when an upgrade fits much worse than EGH).
What is known about it (molass 1.3.0 and later; the numbers are from `molass-researcher` experiment 68, not a ground truth):

- The default trimming (`trimmed_copy()`) keeps 363 of the 372 frames and 747 of the 775 q points.
- `recommend_decomposition_options()` finds two well-separated peaks (frames 186 and 277) and suggests `ranks=[2, 2]`:
  the lowest-q intensity is 0.91 of the Guinier extrapolation (`SAMPLE3`: 0.81), which suggests a repulsive interparticle
  effect, a weaker one than in `SAMPLE3`.
- The second direction of the main peak is not readable above the noise (SNR2 1.3 – 2.8 above 25 % of the height); in a wider
  window it reads like another time profile (CEF 0.35), not like a pure c² term. So the Ranks hint is **not confirmed** by
  `second_direction_report()`: the data set is a test of how a tool behaves when the evidence is mixed, not an example of a
  clean interparticle effect.
- The main peak fronts (half-height asymmetry As50 0.56 in the low-q XR, mid-q XR and the UV curve, the same as `SAMPLE3`),
  and the quick EGH decomposition has a fronting first component (tau/sigma −0.35 and +0.20), with a relative residual of 0.064.
  An EDM upgrade of it (`decomposition.upgrade('edm')`) fits well with molass 1.3.0 or later (0.044), whereas the code before #426
  returned a collapsed (zero) component.

The files are the exported data of the source folder (`scripts/make_oagi_interparticle.py`; the analysis output folders
of the source are not included), named `OAGI_INTERPARTICLE_*.dat` and `OAGI_INTERPARTICLE_UV.txt`.

## Changes

### 0.2.0

- New: `OAGI_INTERPARTICLE` (measured, `20180526/OAGI`), the second measured data set for interparticle effects.
- The other data sets are unchanged.
### 0.1.1

- `FOLDUNFOLD_CONTINUUM` and `FOLDUNFOLD_DISCRETE`: the noise is now the published photon-counting model of Sedlak et al.
  (2017) and the stated error is that model's standard error; version 0.1.0 used a stated error and scatter taken from
  a measured data set (no measured error is used any more). Species and geometry are unchanged. The verdicts of
  `get_continuity_report()` are the same (continuum: no evidence, excess 1.84 at k = 3; discrete: `discrete`, excess 3.09).
  `trimmed_copy()` of these sets needs `molass_legacy` with the fix of molass-legacy#104 (otherwise it fails with
  `UnboundLocalError`); for `FOLDUNFOLD_DISCRETE` the default trimming now also cuts frames (220 to 211).
- `PROTEINS5` is unchanged.

### 0.1.0

First version: `PROTEINS5` (moved from `molass_data` 0.5.0, where it was `SAMPLE6`; the files are renamed
`PROTEINS5_*.dat`), `FOLDUNFOLD_CONTINUUM` and `FOLDUNFOLD_DISCRETE`.
