SearchSpaceGroup: offer every monoclinic setting the holohedry holds; break sibling ties on axial screw evidence
Stage A offered the b-unique two-fold (reference setting) on the lattice's holohedry alone, but held its a- and c-unique siblings (pass-1 settings) to CellHostsRotations at 2e-3. On a cell refined free ~0.2 deg off orthogonal only the b-unique rung existed, so when the holohedral 222 was refused the setting, not the data, chose the two-fold axis. Stage B already offers non-reference settings without asking the cell, for the same reason; Stage A now does likewise where a holohedry is given. With siblings of one order eligible together, ties were broken on the class CC alone, which a twin law at fraction ~0.4 can win. A twin law cannot extinguish an axial row (every principal row maps to itself or its Friedel mate), so ties now go first to the group whose pure two-fold axes carry the more screw evidence on their own odd axial row - judged exactly as Stage B judges that zone - and only then to the CC. Rows on 3-, 4- or 6-fold axes are not read. Open arm: 6p8j (deposited P2_1, b = 152 A) was P 1 1 2 on the 88 A axis, now P 1 21 1 on the 152 A axis (152 A odd row 158 nats, 46 A row 36, 88 A row refused; R-free 0.214). 9hnc and 5cc8 p.mtz md5-identical (siblings offered but refused by added-operator R). On five passing P2_1 sets in an orthorhombic metric the true axis carries all the evidence (offline replay), so no change there. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SVmAWnzCmRKAXVUCdc4iNi
This commit is contained in:
1 parent
b1e19e4481
commit
8880e95382
2 files changed
+99
-2
No files matched your search
@@ -444,6 +444,25 @@ TEST_CASE("SearchSpaceGroup names a non-reference setting only on a cell that ho
|
||||
}
|
||||
}
|
||||
|
||||
// A cell refined free a fifth of a degree off orthogonal hosts none of the three monoclinic settings
|
||||
// to CELL_SETTING_TOLERANCE, yet the reference (b-unique) rung is offered on the lattice's holohedry
|
||||
// alone. Its a- and c-unique siblings are offered on the same terms, or the setting picks the axis.
|
||||
TEST_CASE("SearchSpaceGroup offers every monoclinic setting the lattice's holohedry holds") {
|
||||
const gemmi::SpaceGroup& sg = gemmi::get_spacegroup_by_name("P 1 1 21");
|
||||
const auto merged = GenerateMergedReflectionsForSpaceGroup(sg, 12);
|
||||
|
||||
SearchSpaceGroupOptions opt;
|
||||
opt.merge_friedel = true;
|
||||
opt.lattice_system = gemmi::CrystalSystem::Orthorhombic;
|
||||
opt.cell = gemmi::UnitCell(40.0, 50.0, 60.0, 89.8, 90.0, 89.8);
|
||||
opt.enumerate_all_settings = true;
|
||||
opt.enumerate_all_rotation_sets = true;
|
||||
const auto result = SearchSpaceGroup(merged, opt);
|
||||
INFO(SearchSpaceGroupResultToText(result));
|
||||
REQUIRE(result.best_space_group.has_value());
|
||||
CHECK(result.best_space_group->xhm() == "P 1 1 21");
|
||||
}
|
||||
|
||||
// The screw axes of an orthorhombic crystal can lie on any pair of axes, and only one of the three
|
||||
// namings of #18 is a reference setting. With the narrow enumeration the group that predicts a
|
||||
// SUBSET of the real absences and nothing else wins on no evidence at all, so the reported group is
|
||||
|
||||
Reference in new issue
Block a user