9 Commits
Author SHA1 Message Date
Matvey Adzhigirey 8084b31393 Added --titrate_only option and tests for it.
This option makes it possible for PROPKA to treat only a subset of protein
residues as titratable.
2014-08-20 20:14:38 -04:00
Matvey Adzhigirey c420b4c2a5 Use get_titratable_groups() instead of manually building up this list
in find_covalently_coupled_groups().
2014-08-13 11:12:21 -07:00
Matvey Adzhigirey 5fe2ac0279 Fix the help message for -c option (regarding chains w/o ID) 2014-08-11 16:37:29 -07:00
Matvey Adzhigirey ae462842c1 replace empty chains with "_" instead "A" 2014-02-27 18:15:18 -05:00
Matvey Adzhigirey 4566cd67f9 Fix a number of crashes and special conditions
- Fix an issue where non-existing interactions were analyzed.

  Bug fix in setIonDeterminants(): skip interactions if either
  titratable_group_interaction_atoms or the backbone_interaction_atoms
  is empty.

- Set center of COO_group to self.atom if no oxygens present in residue.

  COO_group: If self.atom.get_bonded_elements('O') returns an emtpy list
  (the residue has missing side-chain), simply set the center of the
  group to the <self.atom> atom, instead of the center of the
  (non-existing) oxygens.

- Raise more friendly exception in Group.set_center() if an empty atom
  set is passed in.

- Cterm_group: Fix crash if residue is missing a carbon.

  The previous code would crash if the C-termini residue group was
  missing the carbon atom.

- Fix a failure when a HIS residue has missing side-chain atoms.

- Added an entry for Iodine (I) to the valence electrons table.
2014-02-27 18:15:18 -05:00
Matvey Adzhigirey 73c7a2a4be optimize a number of functions
- Major optimization of the put_atom_in_box() function.
- Major optimization of the protein_precheck() function.
- Minor optimization in radial_volume_desolvation()
- Optimization in top_up() to scale for large structures.
2014-02-27 18:15:18 -05:00
Matvey Adzhigirey 2079259884 Improve Python 2 compatability with "future" print_function.
Use python3 version of the print function when running
under python2. Also added "from __future__ import division"
to a few more module files.
2012-12-20 11:29:41 -05:00
Matvey Adzhigirey 4e7427769e Added a comment for int-casting of math.ceil(). 2012-12-20 11:29:30 -05:00
Matvey Adzhigirey cfab0bbe69 Backported PROPKA code base to Python2.
Now this same code can be run with either Python2.7 or Python3.
2012-12-20 11:29:15 -05:00