diff --git a/image_analysis/scale_merge/TwinningAnalysis.cpp b/image_analysis/scale_merge/TwinningAnalysis.cpp index 78ffeb15e..3f7ba6f6e 100644 --- a/image_analysis/scale_merge/TwinningAnalysis.cpp +++ b/image_analysis/scale_merge/TwinningAnalysis.cpp @@ -596,6 +596,10 @@ namespace { result.control.evidence_nats - result.control.n * result.control_excess_per_reflection; for (auto& z : result.zones) z.calibrated_evidence_nats = z.evidence_nats - z.n * result.control_excess_per_reflection; + constexpr double PERFECT_TWIN_ACENTRIC_MEAN_ABS_E2_MINUS_1 = 0.541; + result.zones_ambiguous = result.control.n > 0 + && result.control.mean_abs_e2_minus_1 + 3.0 * result.control.standard_error + < PERFECT_TWIN_ACENTRIC_MEAN_ABS_E2_MINUS_1; } } @@ -862,5 +866,11 @@ std::string TwinImmuneZonesToText(const TwinImmuneZoneResult& result) { for (const auto& z : result.zones) row(z); row(result.control); + if (result.zones_ambiguous) + os << " The control reads more compressed than a perfect twin's acentric reflections (0.541), which\n" + " no twin fraction can do: something else - overlapping spots, neighbour correlation - averages\n" + " each reflection with unrelated ones, and it compresses the zones as well. Genuine symmetry then\n" + " reads acentric in its zones too, so here they do not separate a twinned subgroup from the\n" + " adopted group, and no verdict is read from them either way.\n"; return os.str(); } diff --git a/image_analysis/scale_merge/TwinningAnalysis.h b/image_analysis/scale_merge/TwinningAnalysis.h index cd831d2fb..688daf948 100644 --- a/image_analysis/scale_merge/TwinningAnalysis.h +++ b/image_analysis/scale_merge/TwinningAnalysis.h @@ -143,6 +143,15 @@ struct TwinImmuneZoneResult { // nats were the normalisation's, and the verdict rescued a twin law. Calibrated, that zone reads // -115 nats; the zones of genuine promotions keep +140 nats (a 90 deg tetragonal sweep) to +2000. double control_excess_per_reflection = 0.0; + // The control reads more compressed than a PERFECT twin's acentric population (<|E^2-1|> 0.541, by + // more than three standard errors). Twinning cannot do that at any fraction, so something else + // averages each reflection with unrelated ones - overlapping spots of a long cell, neighbour + // correlation - and it compresses the zones as much as the control: genuine symmetry then reads + // acentric in its zones. Measured on the open battery: a 622 crystal with its control at 0.528 + // read its genuine 2-folds at -950 to -2640 nats, and a twinned 4/m crystal promoted to 4/mmm, its + // control at 0.454, read its added operators at -226 to -616. The zones are reported, but no + // verdict is read from them either way. + bool zones_ambiguous = false; double anisotropy_delta_b_A2 = 0.0; // the anisotropy taken out of the intensities before normalising double d_max_A = 0.0; // resolution range of the shells read double d_min_A = 0.0; diff --git a/rugnux/ResultReport.cpp b/rugnux/ResultReport.cpp index 189295c7b..7cd5edeae 100644 --- a/rugnux/ResultReport.cpp +++ b/rugnux/ResultReport.cpp @@ -1663,6 +1663,17 @@ ReportDocument BuildReportDocument(const std::string &output_prefix, Warn(doc, PathologyCode::TWINNING, fmt::format( "Twinning is indicated ({}) - refinement against the merged data needs a twin law", TwinningVerdictLine(tw))); + else if (abnormal && tw.laue_class_was_chosen_by_promotion && tw.mean_abs_l < 0.375) + // Below a perfect twin's 0.375 the L-test says nothing about the twin fraction, but it does + // say the intensities are at least as twin-like as a perfect twin's - and a perfect twin of + // a subgroup, its law absorbed by the promotion, predicts exactly the data the promoted + // group does. The promotion is then unconfirmed, however clean its operators look. + Warn(doc, PathologyCode::TWINNING, fmt::format( + "The point group was promoted although the intensities read at least as twin-like as a " + "perfect twin's (<|L|> = {:.3f}, below 0.375): a twin of a subgroup whose law the promotion " + "absorbed predicts the same data, so the adopted group is not confirmed - refine in the " + "subgroup with that twin law too (p_P1.mtz carries the same observations)", + tw.mean_abs_l)); } // ---- radiation damage diff --git a/rugnux/Rugnux.cpp b/rugnux/Rugnux.cpp index 94a9325af..917f12968 100644 --- a/rugnux/Rugnux.cpp +++ b/rugnux/Rugnux.cpp @@ -2103,7 +2103,9 @@ namespace { zone.standard_error, z.control.mean_abs_e2_minus_1, z.control_excess_per_reflection, zone.evidence_nats, zone.calibrated_evidence_nats, z.d_max_A, z.d_min_A, z.tncs_normalised ? ", normalised per pseudo-translation class" : "", - verdict < 0 ? "acentric, the added operators are a twin law or a pseudo-symmetry" + verdict < 0 && z.zones_ambiguous + ? "acentric, but the control is compressed beyond a perfect twin, so genuine symmetry would read so too" + : verdict < 0 ? "acentric, the added operators are a twin law or a pseudo-symmetry" : verdict > 0 ? "centric, the added operators are real" : "undecided"); // Recorded only where the zone DECIDED something. An undecided read decides nothing - the // rule stays as it was - and recording it had the report announce "a twin gate refused this