Nathan Baker
ebddfa1f9f
Add tests_require argument to setup.py.
...
Addresses https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429100526
Since the tests_require argument is deprecated, I'm also leaving the
requirements.txt file to make sure the dependencies are captured in the
future.
2020-05-23 08:19:19 -07:00
Nathan Baker
1b0ad999b1
Remove unnecessary exception catching.
...
Fixes https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429063049
2020-05-23 08:06:54 -07:00
Nathan Baker
6288711209
Update requirements with pandas.
...
See https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429106093
2020-05-22 21:04:09 -07:00
Nathan Baker
2266e0a102
Consistent test naming.
...
See https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429099054
2020-05-22 20:55:58 -07:00
Nathan Baker
48f69eb544
Support Python 3.5 and higher.
...
See https://github.com/jensengroup/propka-3.1/pull/36#discussion_r429094884
2020-05-22 20:41:59 -07:00
Nathan Baker
03e12ae15c
Update propka/lib.py
...
I cannot spell.
Co-authored-by: Oliver Beckstein <orbeckst@gmail.com >
2020-05-22 20:22:30 -07:00
Nathan Baker
f13d3d8121
PROPKA testing working with pytest.
2020-05-21 15:50:23 -07:00
Nathan Baker
fc27d8bfc3
Fix bugs in invocation and options.
...
Add non-command-arguments.
Restore --quiet option.
2020-05-21 11:53:03 -07:00
Nathan Baker
393f5cee50
Rename "Tests" directory for consistency.
2020-05-21 10:39:08 -07:00
Nathan Baker
fa4a547f1f
Enforce Python 3.*.
2020-05-21 10:29:45 -07:00
Nathan Baker
17bad90dc4
Start fixing tests.
2020-05-18 20:37:56 -07:00
Nathan Baker
e9a88bee4b
Restore Tests/runtest.py.
...
Also update README.md to document the existence of multiple tests.
2020-05-18 16:23:39 -07:00
Nathan Baker
61c200c3f4
Remove duplicate tests.
2020-05-16 18:18:15 -07:00
Nathan Baker
0fbaa6711f
Update minor version number.
...
Addresses
https://github.com/jensengroup/propka-3.1/pull/29#discussion_r424575807
2020-05-16 17:06:28 -07:00
Nathan Baker
6c67ef152c
Remove unnecessary OptionParser statements.
...
Addresses
https://github.com/jensengroup/propka-3.1/pull/29#discussion_r424418158 .
2020-05-16 16:58:19 -07:00
Nathan Baker
9cafb41e06
Document acceptable error in PROPKA tests.
...
Addresses
https://github.com/jensengroup/propka-3.1/pull/29#discussion_r424572620
2020-05-16 16:49:47 -07:00
Nathan Baker
cddda2f515
Fix verbosity/logging in PROPKA.
2020-05-14 19:02:11 -07:00
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