Skip to content

Commit 2d4a720

Browse files
committed
Adding non-standard sg check to pdb parser
1 parent a2f900c commit 2d4a720

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/io/PDBFileParser.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,8 +1502,13 @@ private void pdb_CRYST1_Handler(String line) {
15021502
}
15031503

15041504
SpaceGroup sg = SymoplibParser.getSpaceGroup(spaceGroup);
1505-
if (sg==null) logger.warn("Space group '"+spaceGroup+"' not recognised as a standard space group");
1506-
crystallographicInfo.setSpaceGroup(sg);
1505+
if (sg==null) {
1506+
logger.warn("Space group '"+spaceGroup+"' not recognised as a standard space group");
1507+
crystallographicInfo.setNonStandardSg(true);
1508+
} else {
1509+
crystallographicInfo.setSpaceGroup(sg);
1510+
crystallographicInfo.setNonStandardSg(false);
1511+
}
15071512
}
15081513

15091514
/**

0 commit comments

Comments
 (0)