You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In propka 3.1, passing a "Named Stream" i.e. a Stream-like object that also provides a mocked filename that can be read via pathlib.Path (see: MDAnalysis.lib.util.NamedStream) instead of a path of an input PDB file would work.
Related issues
Related to #57
Expected behaviour
In propka 3.1, passing a "Named Stream" i.e. a Stream-like object that also provides a mocked filename that can be read via pathlib.Path (see: MDAnalysis.lib.util.NamedStream) instead of a path of an input PDB file would work.
Example (based on https://github.com/Becksteinlab/propkatraj):
Actual behaviour
As detailed in #82 using propka.run.single does not seem to currently work, however we would expect the following to work (it does not):
Causes
As far as I could tell, there are two main causes for this:
read_pdb
passesinput_path
instead ofinput_file
:propka/propka/input.py
Lines 55 to 56 in 01debbf
open_file_for_reading
does not work as expected.seek
.Possible fix
Switching
fseek
->seek
andinput_path
->input_file
fixes things and does not seem to cause any issues in the regression tests.The text was updated successfully, but these errors were encountered: