Repository navigation
CE-Symm: join models only for multi-model biological assemblies - #1172
Open
josemduarte wants to merge 2 commits into
Open
josemduarte wants to merge 2 commits into
josemduarte wants to merge 2 commits into
Conversation
…tries 4TZ5, a multi-model X-ray ensemble refinement, gets all its models joined (27425 atoms instead of 1097 for the first model). Only biological assemblies expanded as models should be joined. See biojava#808. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The models were joined for any structure not flagged as NMR, so X-ray ensembles and other multi-model entries had every conformer fed to CE-Symm, inflating memory use and the number of repeats. Now only structures built by BiologicalAssemblyBuilder with multiModel=true (isBiologicalAssembly() with more than one model) are joined; everything else uses the first model. Fixes biojava#808. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #808.
SymmetryTools.getRepresentativeAtoms(Structure)used only the first model whenisNmr()was true and joined every model otherwise. Multi-model entries that aren't NMR, such as X-ray ensemble refinements, had all their conformers joined. That used too much memory and inflated the CE-Symm repeat count. For 4TZ5 (25 models) the method returned 27,425 atoms against 1,097 in the first model.Now models are joined only when
isBiologicalAssembly()is true and there is more than one model.BiologicalAssemblyBuilderdrops the original extra models, so a multi-model assembly can only come frommultiModel=true. Every other structure uses its first model.Commits:
Gaps (both fall back to the first model):
StructureImpl.clone()doesn't copy the assembly flag, so a cloned multi-model assembly loses it.The SCOP domains mentioned in the issue (d1xmpa_, d2hiyc_, d1kkta_) are single-model, so this change doesn't touch them. On current master, d1kkta_ gives 7 repeats (correct). d1xmpa_ and d2hiyc_ give 4 repeats with 2 C2 axes. That looks like two levels of C2 symmetry counted as repeats, which is a separate issue.
🤖 Generated with Claude Code