Repository navigation
Fix three structure-alignment I/O bugs (#443, #907, #613) - #1173
Open
josemduarte wants to merge 3 commits into
Open
josemduarte wants to merge 3 commits into
josemduarte wants to merge 3 commits into
Conversation
The command-line processor always used PDBFileReader, so a .cif or .cif.gz file failed to parse. The reader is now picked from the file name with StructureIO.guessFiletype, for both URLs and local paths. Fixes biojava#443 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The alignment was copied into a HashMap and seeded from its first key, so the same alignment could print differently depending on insertion order. Comparable keys are now sorted and the output starts from the smallest key; otherwise the input's iteration order is kept. Fixes biojava#907 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MultipleAlignmentWriter and MultipleAlignmentImpl.toString threw a NullPointerException when the ensemble had no structure identifiers, e.g. when built from atom arrays alone. New helpers in MultipleAlignmentTools log a warning, recover each identifier from the atoms' parent Structure, and fall back to "unknown". Fixes biojava#613 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.
Three independent fixes in structure alignment, one commit each, each with a test that failed before the fix.
-file1/-file2options now read mmCIF and BinaryCIF files.AbstractUserArgumentProcessorpicks the reader from the file name withStructureIO.guessFiletype, for both URLs and local paths; any other extension is still read as PDB.AlignmentTools.toConciseAlignmentStringno longer depends on the input map's iteration order.Comparablekeys are sorted and the output starts from the smallest key. Otherwise the input's iteration order is kept.fromConciseAlignmentStringreads the output back.MultipleAlignmentWriter(toFASTA,toFatCat,toAlignedResidues,to3DFormat) andMultipleAlignmentImpl.toStringno longer throw when the ensemble has no structure identifiers. NewMultipleAlignmentTools.getStructureIdentifiers/getStructureNames(@since 7.5.0) log a warning, recover each identifier from the atoms' parentStructure, and fall back to"unknown".mvn -pl biojava-structure test: 462 tests, 0 failures, 8 skipped.Fixes #443
Fixes #907
Fixes #613
🤖 Generated with Claude Code