Skip to content
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

Add write mmtf #1814

Closed
jamesmkrieger opened this issue Jan 16, 2024 · 7 comments
Closed

Add write mmtf #1814

jamesmkrieger opened this issue Jan 16, 2024 · 7 comments
Labels
Feature request Adding a feature that does not yet exist.

Comments

@jamesmkrieger
Copy link
Contributor

Not sure if it will be easier to convert directly for mmtf-python or use biopython

@jamesmkrieger jamesmkrieger added the Feature request Adding a feature that does not yet exist. label Jan 16, 2024
@Waris-95
Copy link

That depends on your preference and the features you need. Both mmtf-python and Biopython can handle pdb and mmtf files, but Biopython has more functionality for bioinformatics analysis, such as sequence alignment, phylogenetics, and molecular modeling. However, mmtf-python is more lightweight and faster for parsing and writing mmtf files. You can try both libraries and see which one suits your needs better. 😊

@jamesmkrieger
Copy link
Contributor Author

We already have dependency on both. It’s just which to use for this particular case

@jamesmkrieger
Copy link
Contributor Author

Thanks

@jamesmkrieger
Copy link
Contributor Author

See also scipion-em/scipion-em-prody#65 where I initially opened the issue by accident

@jamesmkrieger
Copy link
Contributor Author

Well, of course Bio only includes MMTF in latest versions that aren't compatible with ProDy yet!

@jamesmkrieger
Copy link
Contributor Author

ProDy should now be compatible with the latest Biopython following #1816 and I should be able to use that for writing to mmCIF and mmtf soon

@jamesmkrieger
Copy link
Contributor Author

We still need more features for including numBonds, numAtoms, numModels, etc.
“””
Hi! I just had time to test it today, and it works great! I was not aware of the biopython mmtf implementation; I was using biotite previously. I still need to figure out some things related to the mmtf, but overall, now the conversation works great! Thanks!

Alright, I think I figured it out. I have never worked with mmtf files, so the concept is new to me. The biotite mmtf only works with mmtf files that are properly annotated and have all the keys filled with proper values.

However, neither ProDy nor Biopython annotate all the fields inside the mmtf file (numBonds, numModels, numAtoms); thus, other software fails. Nevertheless, the conversion works well
“””

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Adding a feature that does not yet exist.
Projects
None yet
Development

No branches or pull requests

2 participants