JAL-1998 bugfix for division by zero error for PDB entries with chain(s) consisiting...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 25 Jan 2016 15:06:26 +0000 (15:06 +0000)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 25 Jan 2016 15:06:26 +0000 (15:06 +0000)
src/MCview/PDBChain.java

index 6d5f9fe..a43626f 100755 (executable)
@@ -252,7 +252,7 @@ public class PDBChain
      * If > 99% 'P', flag as nucleotide; note the count doesn't include the last
      * residue
      */
-    if (residues.size() > 0 && (numNa / (residues.size() - 1) > 0.99))
+    if (residues.size() > 1 && (numNa / (residues.size() - 1) > 0.99))
     {
       isNa = true;
     }