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

Use MOL2 file in graphein.protein.graphs.construct_graph #259

Open
KevinCrp opened this issue Feb 1, 2023 · 1 comment
Open

Use MOL2 file in graphein.protein.graphs.construct_graph #259

KevinCrp opened this issue Feb 1, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@KevinCrp
Copy link

KevinCrp commented Feb 1, 2023

Files used to construct protein graphs must be in PDB format. Whereas, molecular graphs may also be constructed from MOL2 or SDF.

Is it possible to add a protein graph constructor from the MOL2 file?
I don't understand why the protein graphs are limited to PDB files.

I have tested converting MOL2 to PDB to construct a protein graph, but the conversion does not always work well.

@a-r-j
Copy link
Owner

a-r-j commented Feb 1, 2023

Hi @KevinCrp

PDBs are the primary format for protein graphs as this is what is typically used in the community. Molecules are comparatively simpler to parse - there are a lot of protein-specific fields recorded in PDB files that I don't believe are explicit in Mol2 files.

For example, chains and residue types have to be inferred from atom types and connectivity. I believe if, for example, you had an ALA with an unresolved/missing Cb atom it would not be possible to distinguish this from a GLY. Furthermore, Mol2 files don't contain bfactors, occupancy etc.

This is not to say it's impossible; it's certainly doable. However, I don't have bandwidth to implement this myself. If you want to make a PR to implement this I'd be more than happy to support you.

@a-r-j a-r-j added enhancement New feature or request help wanted Extra attention is needed labels Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants