-
Notifications
You must be signed in to change notification settings - Fork 121
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
Mol2 files bonds #54
Comments
Hi there, in the current version of biopandas, the Mol2 BOND section is not parsed, yet. You would need to parse it from the raw text data that is attached to a I think adding some parsing functionality for the BOND section would be a good thing to do! Since the analysis of bonds is not necessarily done in each virtual screening analysis/application, I would make parsing the bonds section not the default (but optional) for computational efficiency reasons. A general "design" question now is whether a BOND DataFrame should be stored/accessed via a) or b)
Feedback and comments (and PRs!) are welcome! |
Hi, thanks for your answer. Just wrote a quick, dirty and probably non-optimal parser. It could serve as a temporary solution:
|
Here is a shorter version of of what @btyukodi wrote that uses regex:
|
Thanks a lot. I totally forgot about this / got to busy to work on this. Thanks for sharing though, I hopefully will get to it one day (or maybe someone else :)) |
Hey there all, was this ever implemented? |
No, sorry, never really found the time to do that :( |
Seems like this is still an open issue? |
yeah, this is still an open issue |
PandasMol2().read_mol2() reads and parses a mol2 file, however, in the dataframe, only the @ATOM section is present. Is there any way to access the bonds?
Thanks
Botond
The text was updated successfully, but these errors were encountered: