RFdiffusion icon indicating copy to clipboard operation
RFdiffusion copied to clipboard

Is there a way to combine Inpainting and Fold Conditioning?

Open melinda589 opened this issue 1 year ago • 2 comments

Hello! Thank you for all the work and advancements into RFdiffusion!

I am interested in specifying the secondary structure of a new inpainted section of an input pdb. Essentially, I want to keep parts of the input pdb fixed, add connections between the fixed parts, and be able to specify those connections to be beta sheets or alpha helices or etc.

I did try a few runs with provided _ss.pt and _adj.pt files to correspond to the secondary structure I would like the inpainted section to have, but I would get an Assertion Error:

Error executing job with overrides: ['inference.output_prefix=./outputs/guide_test', 'inference.input_pdb=inputs/1sp1_KT_relaxed1.pdb', 'contigmap.contigs=[A1-7/2-2/A8-30]', 'inference.num_designs=2', 'scaffoldguided.scaffoldguided=True', 'scaffoldguided.target_pdb=False', 'scaffoldguided.scaffold_dir=../helper_scripts/E2/'] Traceback (most recent call last): File "/scratch/ml1628/Klab/RFdiffusion/Zn_hinge/../scripts/run_inference.py", line 84, in main x_init, seq_init = sampler.sample_init() File "/cache/home/ml1628/RFdiffusion/rfdiffusion/inference/model_runners.py", line 851, in sample_init assert L_mapped==self.adj.shape[0] AssertionError

Before I go down the rabbit hole of trying to get this to work, I wanted to ask: is this possible? Any and all advice would be greatly appreciated!

melinda589 avatar Mar 25 '24 18:03 melinda589

@melinda589 Did you get this to work?

thomas-tugwell avatar Mar 03 '25 19:03 thomas-tugwell

Also wondering if this is possible and how to get it to work.

RodenLuo avatar Mar 04 '25 08:03 RodenLuo