Commit Graph

93 Commits

Author SHA1 Message Date
Nathan Baker
387d0a5664 Move argparse sub-command to group. 2020-05-12 14:27:46 -07:00
Nathan Baker
847004a2d6 Fix subparser syntax for argparse. 2020-05-12 13:51:44 -07:00
Nathan Baker
6ddc32c101 Add newline to end of __init__.py. 2020-05-12 13:51:24 -07:00
Nathan Baker
ae7e8b6430 Replace optparse with argparse.
Optparse is deprecated.  Argparse will allow tighter integration with
PDB2PQR/APBS.
2020-05-12 13:13:28 -07:00
Nathan Baker
aeb1663d7b Add code to clean up files after test. 2020-05-10 19:19:37 -07:00
Nathan Baker
997298f1f0 Loosen error tolerance in test.
The PROPKA31 tests fail on Windows 10 Ubuntu 18.04 Windows Subsystem
Linux without any changes.  The relative error is less than 1e-3.  This
commit chnages the behavior to a test of absolute agreement to a test of
relative error less than 1e-3.
2020-05-10 18:29:51 -07:00
Nathan Baker
4fa015a54e Fix typo in PROPKA test.
Fail() -> fail().
2020-05-10 18:18:36 -07:00
Nathan Baker
2bd7e70249 Load data from JSON rather than pickle.
Increases platform independence.
2020-05-05 11:55:45 -07:00
Nathan Baker
726d6aa412 Update __init__.py.
Fix __all__ list and add docstring to point users to PROPKA website when
used as module.
2020-05-05 11:38:36 -07:00
Oliver Beckstein
91925bb920 test for stream-ness in Py 3/Py 2 compatible manner 2018-03-19 22:34:22 -07:00
Oliver Beckstein
9ebc76bcdc modernized installation procedure
- set VERSION to 3.1.0 (introduce a patch level 0 so that it becomes
  easier to publish packages with small fixes, eg for installation)
- got rid of ancient ez_install: just use pip
- updated README and INSTALL
- updated classifiers in setup.py (license: LGPL v2.1 and other meta data);
  updated URL to point to http://propka.org because unlike http://propka.ki.ku.dk
  it is not completely dead and has a link to the pdb2pqr propka server as well
  as the GitHub page
2018-03-19 22:34:22 -07:00
Toni G
5fbbdd4868 Output performed with loggers. Adds options --no-print. (#12)
Output performed with loggers.  Adds --quiet and --verbose options.
2016-04-28 23:21:35 -07:00
Jimmy Charnley Kromann
ca6224433a Merge pull request #8 from orbeckst/ASU
improved integration of PROPKA into Python scripts
2014-11-22 03:58:40 +01:00
Oliver Beckstein
ddaf27dea8 run.single() to run a propka calculation without script
- can pass a single pdffile (or stream(!))
- added options lib.loadOptions() to pass opt string
2014-11-20 17:30:27 -07:00
Oliver Beckstein
f17fc9acfe file open/close functions can process any stream *filename* 2014-11-20 17:30:27 -07:00
Jimmy Charnley Kromann
6e1b0365e0 Merge pull request #6 from schrodinger/titrate_only
Titrate only option
2014-08-27 14:53:54 +02:00
Jimmy Charnley Kromann
b617175f77 Merge pull request #5 from schrodinger/lgpl
change LICENSE from GPL to LGPL
2014-08-27 14:53:38 +02:00
Mike Beachy
bc50c7a3a4 change LICENSE from GPL to LGPL 2014-08-25 11:52:21 -04:00
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
Jimmy Charnley Kromann
2b6c20e9a6 added license 2014-06-07 10:43:48 +02:00
Jimmy Charnley Kromann
54ebb22fb4 Merge pull request #3 from schrodinger/master
merge from schrodinger
2014-04-04 17:08:52 +02: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
Mike Beachy
e0ed5da44b handle structures with 100,000 or more atoms
- the pdb format requires a 5-character field for the atom number; the
  hybrid-36 format allows up to a ridiculous number of atoms
2014-02-27 18:15:18 -05:00
Mike Beachy
61bb875248 add test framework
- add the ability to run tests from the top level directory via
  'python setup.py test'
- translate runtest.py into a test that runs under this framework
- add a __main__ section to Tests/runtest.py and change its indent to 4
  spaces; make no other changes to this script
2014-02-22 17:51:04 -05:00
Mike Beachy
edd25afad3 add a reference to the math.ceil note 2014-02-22 17:48:16 -05:00
Jimmy Charnley Kromann
d01659d614 Merge pull request #2 from orbeckst/master
packaged for standalone installation (Python 3 and Python 2)
2013-08-10 03:51:24 -07:00
Oliver Beckstein
12e4eeabd8 added INSTALL and fixed markup in README 2013-07-25 12:01:09 -07:00
Oliver Beckstein
df9cbc04ec adjusted test script: all tests pass
* renamed scripts/propka.py to propka31.py so that it can be run
  without import issues
* ran the tests and no difference to the fixtures was detected
2013-07-25 11:57:01 -07:00
Oliver Beckstein
7008ed9f24 use pkg_resources to access bundled files
* egg file can remain zipped
* see http://peak.telecommunity.com/DevCenter/PythonEggs#accessing-package-resources
  for details
2013-07-25 11:40:50 -07:00
Oliver Beckstein
b928c18bab Re-packaged with setuptools for standard installation
* 'python setup.py install' will install
  - a package 'propka' (which contains everything that 'Source' contained
    in the original distribution)
  - an executable script 'propka31' (which is identical to the original
    'propka.py' script but it is automatically generated via the setuptools
    mechanism; it uses propka.run.main().
* 'pip install' will also work
* the README.md file was changed to reflect the alterations
* metadata in the setup.py file was added

NOTE: The licence is still unclear!
2013-07-25 11:14:44 -07:00
Oliver Beckstein
695fbb4fbe use generic she-bang instead of hard-coded python3 2013-07-24 18:55:03 -07: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
Jimmy Charnley Kromann, lat13
2aaf2d3a48 character update 2012-11-19 18:39:50 +01:00
Jimmy Charnley Kromann, lat13
62c02fc0a5 little update 2012-11-19 18:38:30 +01:00
Jimmy Charnley Kromann, lat13
6886db9697 unittesting and readme update 2012-11-19 18:36:24 +01:00
Jimmy Charnley Kromann
d882a2f5d1 downloaded from propka.ki.ku.dk 2012-11-15 17:47:47 +01:00
Jimmy Charnley Kromann
57be97bf6b Initial commit 2012-10-31 08:16:12 -07:00