boltz icon indicating copy to clipboard operation
boltz copied to clipboard

Issue with output-format pdb vs output-format mmcif

Open ameya98 opened this issue 11 months ago • 1 comments

Hi, thanks for the wonderful implementation and repo!

I was experimenting with Boltz1 on a kinase:

version: 1  # Optional, defaults to 1
sequences:
  - protein:
      id: ABL
      sequence: GAMDPSSPNYDKWEMERTDITMKHKLGGGQYGEVYEGVWKKYSLTVAVKTLKEDTMEVEEFLKEAAVMKEIKHPNLVQLLGVCTREPPFYIITEFMTYGNLLDYLRECNRQEVNAVVLLYMATQISSAMEYLEKKNFIHRDLAARNCLVGENHLVKVADFGLSRLMTGDTYTAHAGAKFPIKWTAPESLAYNKFSIKSDVWAFGVLLWEIATYGMSPYPGIDLSQVYELLEKDYRMERPEGCPEKVYELMRACWQWNPSDRPSFAEIHQAFETMFQES

With --output_format mmcif, I get something very reasonable as visualized in PyMOL:

Image

but with --output_format pdb:

Image

Am I doing something wrong?

ameya98 avatar Mar 17 '25 18:03 ameya98

Ahh, turns out the issue is in this line which messes up the column offset: https://github.com/jwohlwend/boltz/blob/main/src/boltz/data/write/pdb.py#L37C1-L38C1

        chain_tag = chain["name"]

which should be:

        chain_tag = chain["name"][0]

I'll send in a PR to fix!

ameya98 avatar Mar 17 '25 19:03 ameya98