Skip to content
Merged
Prev Previous commit
Revert fix for mmcif files without auth_seq_id column
Parsing such a file again throws a NumberFormatException.
Further work/discussion of this issue is on #775, but it was blocking
the merging of #774.
  • Loading branch information
sbliven committed Jun 18, 2018
commit 08ab3e11827b74158fb82fbcf26964cea34d9594
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,7 @@ public void newAtomSite(AtomSite atom) {

String recordName = atom.getGroup_PDB();
String residueNumberS = atom.getAuth_seq_id();
Integer residueNrInt;
if(residueNumberS != null) {
residueNrInt = Integer.parseInt(residueNumberS);
} else {
String label_seq_id = atom.getLabel_seq_id();
residueNrInt = Integer.parseInt(label_seq_id);
}
Integer residueNrInt = Integer.parseInt(residueNumberS);

// the 3-letter name of the group:
String groupCode3 = atom.getLabel_comp_id();
Expand Down
Binary file modified biojava-structure/src/test/resources/atp.cif.gz
Binary file not shown.