Skip to content

Commit 4bba30b

Browse files
committed
Storing PdbCode in BioAssemblyIdentifier cannonical representation
If one tries to load the structure via it's cannonical form, the non-null pdb code could result in reducing it down to the asymmetric unit. This is acceptable.
1 parent 3fb85a2 commit 4bba30b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/BioAssemblyIdentifier.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ public Structure loadStructure(AtomCache cache) throws StructureException,
7272

7373
@Override
7474
public SubstructureIdentifier toCanonical() throws StructureException {
75-
// null pdbCode indicates that the structure can't be loaded by AtomCache
76-
return new SubstructureIdentifier(null, new ArrayList<ResidueRange>());
75+
return new SubstructureIdentifier(pdbCode, new ArrayList<ResidueRange>());
7776
}
7877

7978
@Override

0 commit comments

Comments
 (0)