1. 10 Apr, 2015 1 commit
    • Jason Swails's avatar
      Improve CHARMM parsing when resnums have inscodes · 7b30da6e
      Jason Swails authored
      Apparently CHARMM PSF files (particularly those printed by VMD's psfgen) can
      have an insertion code tacked on to the end of the residue number, meaning that
      casting to an integer will invariably fail.  We can't just ignore the insertion
      code, though, since it will differentiate from the residues that came before and
      after (which will likely have the same number -- same general idea as insertion
      codes from PDB files). So instead we pull the insertion code off of the residue
      number and extend the Residue object to accommodate that.
      
      This is the port of the fix from ParmEd: ParmEd/ParmEd#98
      
      I added a test for this case.
      7b30da6e
  2. 19 Mar, 2015 3 commits
  3. 16 Mar, 2015 1 commit
    • Jason Swails's avatar
      Fix very subtle bug in Amber prmtop with NBFIX · 53e7cadc
      Jason Swails authored
      Some topology files have some of the nonbonded pairs in the Lennard-Jones matrix
      pointing to a 0 entry in the HBOND_ACOEF and HBOND_BCOEF arrays. This commit
      simply skips over those entries, having previously checked that all entries in
      the 10-12 sections are 0.  There is actually an example of this already in the
      test suite (see ff14ipq.parm7), but this fortuitously did not cause any
      difference in those test results.
      
      The reason this bug is not evident in that test case is because the A- and
      B-coefficients pulled when the index was -1 (later decremented to -2) was also
      coincidentally 0. However, if this was not the case (as it does not *have* to
      be), then who knows what could happen.
      
      This also adds more of a check against 10-12 topology files. ParmEd actually
      supports using the 10-12 potential in OpenMM when specified in the Amber prmtop,
      but it is sufficiently rare that it is not worth porting to OpenMM, IMO.
      53e7cadc
  4. 14 Mar, 2015 7 commits
  5. 05 Mar, 2015 3 commits
  6. 04 Mar, 2015 1 commit
  7. 03 Mar, 2015 1 commit
  8. 27 Feb, 2015 2 commits
  9. 20 Feb, 2015 5 commits
  10. 18 Feb, 2015 2 commits
  11. 17 Feb, 2015 1 commit
  12. 11 Feb, 2015 3 commits
  13. 10 Feb, 2015 2 commits
  14. 09 Feb, 2015 2 commits
  15. 08 Feb, 2015 2 commits
  16. 07 Feb, 2015 1 commit
  17. 02 Feb, 2015 2 commits
  18. 20 Jan, 2015 1 commit