RFdiffusion icon indicating copy to clipboard operation
RFdiffusion copied to clipboard

Partial diffusion errors

Open ibalafkir opened this issue 1 year ago • 8 comments

Hello, I've bumped into a contig error when doing partial diffusion of a PDB composed of chains 'A' and 'B'

When I want to keep fixed chain A but diffuse some residues in chain B by using this contigs code [A1-124/0 B1-2/3-3/B6-121], I get this error: AssertionError: for partial diffusion there can be no offset between the index of a residue in the input and the index of the residue in the output However, I can run the partial diffusion without any problem if I diffuse a random residue in chain A: [A1-123/1-1/0 B1-2/3-3/B6-121] I can also run this: [A1-124/0 B1-121]

ibalafkir avatar Mar 30 '24 12:03 ibalafkir

We ran into this issue as well when trying to do a similar diffusion process! There's a quirk in the PDB numbering scheme where RFDiffusion outputs get renumbered from the binder going 1-N and the underlying target going N+1-L. This means to get most pdb structures properly formatted you're going to want to attempt to renumber the outputs and potentially rename the chains (RFD names the binder A and B).

Zasder3 avatar Aug 15 '24 20:08 Zasder3