-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow skipping of frames where PROPKA fails #10
Comments
@rsexton2 please attach a zip file with structure and trajectory that fail together with the code you used for testing. Thanks! |
Script used where failing frame is isolated (ts = 1414ns). import MDAnalysis as mda
import propkatraj
traj = 'test_traj.xtc'
topology = 'test_top.gro'
u = mda.Universe(topology, traj)
pkas = propkatraj.get_propka(u, sel='protein', skip_failure=True, start=10, stop=19) |
Zip file containing the topology and trajectory where propka fails. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If PROPKA fails for mysterious reasons then we want to have the option to move on and skip frames.
requirements
skip_failing = True
)try/except
to skipdesign notes
Put a
try/except
around https://github.com/Becksteinlab/propkatraj/blob/master/propkatraj/propkatraj.py#L74 together with the logging.skip_failing = False
then raise the exception.skip_failing = True
then log error and continueSomething like
(
IndexError
is the PROPKA error that @rsexton2 encounters.)The text was updated successfully, but these errors were encountered: