Closed zhouhao-learning closed 4 years ago
Does this happen consistently? Or if you rerun it does it work correctly?
Here's what the stack trace shows. After loading one of the molecules, it called PDBFixer to add hydrogens that were missing from the PDB file. It does that by first adding the hydrogens at more or less random positions, then doing an energy minimization to move them into more physically realistic positions. If two hydrogens randomly happened to get put at almost exactly the same position, that might potentially lead the minimization to produce a nan. If so, this should just be a rare, random event. But if it happens consistently, we need to investigate further.
@peastman Sorry, I ran again, but I still got this error
@peastman Can you solve this problem, can I update the code?
I just tried running this, and everything worked correctly for me. Note that there's an error in your code: split="r"
is not a legal option. I assume you meant split="random"
? Anyway, it ran for me and successfully loaded and featurized the datasets.
That's with the very most recent code for DeepChem, PDBFixer, and OpenMM. What versions do you have? It's conceivable the problem you're seeing is caused by a bug in one of them that has since been fixed.
my Deepchem version is 2.1.1, I don't know why, no matter how many times I execute the code, I always get this error.
And what about PDBFixer and OpenMM?
Try upgrading all of them to the latest versions.
@peastman I updated PDBFixer and OpenMM, PDBFixer==1.5, OpenMM==7.3.1, both of which are the latest versions, then I try to run the code again and still get this error.
If you're still having issues, check out the updated tutorials. I've got an tutorial up with pdbbind and grid features now. I'm going to close this issue, but please re-open if you're still facing issues!
I have an unexpected error when extracting protein features. My code is as follows:
But in the middle I got the following error:
Is this a problem with your code or a problem with the data you provided? How should I solve this problem? Please give me some guidance, thank you