Merging statistics count systematically absent reflections as observed
I maintainer di solito rispondono entro 1 giorno
@jbeilstenedmands ci sta già lavorando.
Dal 3/11/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
Start with ExtendedDatasetStatistics in src/dials/algorithms/scaling/scaling_library.py, including its additional_stats branch, which re-reads the unfiltered array. Then find the other eliminate_sys_absent=False call sites the issue lists: export_mmcif.py, export_cif.py, pychef/damage_series.py and resolution_analysis.py. Done means completeness is computed over allowed reflections only, and absent reflections remain in the reflection table and exports. Confirm the AIMLESS behaviour before changing the defaults.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
dials.scale and dials.merge compute completeness as the ratio of the number of unique observed reflections to the number of unique reflections allowed by the space group. The numerator incorrectly includes systematic absences and overestimates completeness. This happens whenever the data are scaled or merged in a space group with screw axes or glide planes, because for rotation data dials.integrate predicts those reflections regardless of the space group set (it only removes lattice-centring absences) and nothing downstream removes them. On a small-cell 3D ED crystal in Pccn the reported completeness was 89.3% against 80.8% over allowed reflections.
The cause can be traced to scaling_library.py. The class ExtendedDatasetStatistics is an extension of iotbx.merging_statistics.dataset_statistics, and is instantiated with eliminate_sys_absent=False. In iotbx.merging_statistics.dataset_statistics, the eliminate_sys_absent parameter only filters the input array (line 585). The denominator is calculated from array_merged.complete_set(), which removes systematic absences regardless of the flag, and the ratio is then capped at 1.
The same eliminate_sys_absent=False is passed in export_mmcif.py (_reflns.percent_possible_obs), export_cif.py, pychef/damage_series.py and resolution_analysis.py, and is the default in xia2's scaler, xia2.report, xia2.merging_statistics and xia2.compare_merging_stats.
My tracing suggests this was introduced into DIALS to match the results from AIMLESS. xia2 set the default to False in 4860ad8 (2016), DIALS copied the call in 673a399 (2018), and xia2 2cb1c03 gives the reason as "comparable results to aimless calculations". I have not checked what AIMLESS counts.
This is a minor issue for MX datasets because systematic absences make up a smaller fraction of the total possible reflections, due to both the larger unit cells and the lack of glide planes. The crystal above is orthorhombic, a = 16.83, b = 13.08, c = 6.18 Å, integrated in P1 and merged in Pccn; 219 of its 2318 unique reflections are systematically absent in Pccn.
Suggested fix: pass eliminate_sys_absent=True (the iotbx default) at the dials call sites, including the additional_stats branch of ExtendedDatasetStatistics, which re-reads the unfiltered array. The absent reflections stay in the reflection table and exported files. Since the flag filters the array before binning, the other merging statistics shift slightly too.
- Lingua principale
- Python
- Stelle
- 107
- Fork
- 61
- Merge medio
- 2g 15h
- PR unite (30g)
- 12
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dials/dials
-
Clear params.inputs in dials.indexForse già presa @phyy-nx l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
dials/dials#3361 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
dials.generate_mask silently ignores masking options when given only mask filesForse già presa @CAOShurong l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
HDRMX Performance BenchmarkAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
dials.reindex reference.file= refuses a reference in the enantiomorphic space group, contrary to help textForse già presa @spmeisburger l’ha presa 3 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
search beam position failForse già presa @mpks l’ha presa 3 giorni fa. Aperta
dials/dials#3352 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorForse già presa @jejjohnson l’ha presa oggi. Apertatype:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
jejjohnson/integrix#144 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
finos/ai-governance-framework#459 ·
-
slurm: a case outcome nested too deep crashes status/collect instead of reading as no outcomeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
freelawproject/litigant-portal#1307 ·
I maintainer di solito rispondono entro 2 giorni
-
type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
h2oai/h2o-llmstudio#1163 ·
I maintainer di solito rispondono entro 1 giorno