Skip to content

Three-letter code extraction doesn't work in ProDy 2.6.1 under Python 3.12 #2185

@lokapal

Description

@lokapal

Hello!

I again try to use prody to extract from mmCIF/PDB three-letter codes. Right now in Python 3.12 and ProDy 2.6.1 installed by pip it simply doesn't work.

The code


from prody import *
polys = parsePDBHeader('1bkv', 'polymers', threeLetter=True)

for prot in polys:
    SEQRES=prot.sequence
    print (SEQRES)

ag = parsePDB('1bkv', compressed=True)
for chain in ag.iterChains():
    print(chain.getSequence(threeLetter=True))
ag.ca.getSequence(threeLetter=True)

produces output:

PPGPPGPPGITGARGLAGPPGPPGPPGPPG
PPGPPGPPGITGARGLAGPPGPPGPPGPPG
GPGPGITGARGLAGPGPGPGPG
PGPGPGITGARGLAGPGPGPGPG
PGPGPGITGARGLAGPGPGPGPG

that is, obviously, wrong

Moreover, I've dived in getSequence source code at
http://www.bahargroup.org/prody/_modules/prody/atomic/chain.html#Chain.getSequence
and I don't see any signs of "threeLetter" keyword processing.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions