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

Parse ligands fixes #1908

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

jamesmkrieger
Copy link
Contributor

@jamesmkrieger jamesmkrieger commented Jun 29, 2024

fixes #1870

We may still need to remove or redo fetchPDBLigands, but everything should be fine for now

This makes parsePDBLigand and PDBLigandRecord work now by using parseCCD:

In [1]: from prody import *

In [2]: x = parsePDBLigand('STI')

In [3]: x
Out[3]: <prody.compounds.pdbligands.PDBLigandRecord at 0x7f4823bb2df0>

In [4]: x._rawdata
Out[4]: <StarDataBlock: STI (24 entries and 6 loops)>

In [5]: x.getCanonicalSMILES()
Out[5]: 'Cc1ccc(cc1Nc2nccc(n2)c3cccnc3)NC(=O)c4ccc(cc4)CN5CCN(CC5)C'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDB ligand XML files are replaced by CIF
1 participant