RF Diffusion Contigmap Config¶
Builds the contig/masking configuration used by RF Diffusion. It defines which sequence or structure regions are masked or preserved, plus optional total length constraints. All fields use the same range syntax as the main contigs input (chain-aware ranges like A10-25, flexible gaps like 5-15, comma-separated lists where applicable).

Usage¶
Use this node to prepare detailed masking instructions for sequence and structure when generating or conditioning designs. Connect its output to the contigmap_config input of the RF Diffusion node. Typical workflow: set contigs and other generation parameters in RF Diffusion, then add optional inpainting/masking and length limits here to fine-tune which residues are redesigned or preserved.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| inpaint_seq | True | STRING | Sequence regions to mask (redesign). Uses the same format as contigs. Supports chain-aware fixed regions (e.g., A10-25), flexible gaps (e.g., 5-15), and multiple segments separated by commas. | A10-25,B50-60,5-15 |
| inpaint_str | True | STRING | 3D structure regions to mask by explicit residue indices. Typically chain-aware ranges. | A30-45,B165-178 |
| inpaint_str_helix | True | STRING | Helical secondary-structure residues to mask. Comma-separated inclusive ranges. | 10-20,30-40 |
| inpaint_str_strand | True | STRING | Beta-strand secondary-structure residues to mask. Comma-separated inclusive ranges. | 50-60,70-80 |
| inpaint_str_loop | True | STRING | Loop secondary-structure residues to mask. Comma-separated inclusive ranges. | 25-29,65-69 |
| provide_seq | True | STRING | Sequence regions to unmask (keep fixed). Comma-separated inclusive ranges. | A172-177,200-205 |
| length | True | STRING | Total sequence length or a range. Used mainly for unconditional designs; can also constrain conditional runs. Leave empty to not constrain. | 100 or 100-150 |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| contigmap_config | RFDIFFUSION_CONTIGMAP_CONFIG | A structured configuration object describing sequence and structure masking/unmasking and optional length constraints for RF Diffusion. | {"inpaint_seq": ["A10-25","B50-60"], "inpaint_str": ["A30-45"], "provide_seq": ["A172-177"], "length": "100-150"} |
Important Notes¶
- Masks follow the same syntax as the main contigs input: use chain IDs for fixed regions (e.g., A10-25), use numeric ranges for flexible gaps (e.g., 5-15), and separate multiple items with commas.
- Only length should be set for unconditional generation; other masking fields are typically left empty. For conditional or inpainting scenarios, use the masking fields alongside a valid contigs layout.
- The helix/strand/loop fields specifically mask secondary-structure classes; use inpaint_str for general residue index masking.
- Ranges are inclusive. Ensure they match the residue numbering and chains of the input structure when used in conditional designs.
- Leave fields empty if not needed; empty strings are treated as no constraint/mask for that category.
Troubleshooting¶
- Invalid range format: Use inclusive ranges like A10-25 or 50-60, separated by commas. Avoid spaces around hyphens.
- Chain mismatch: If using chain-aware ranges (e.g., A10-25), verify the chain IDs exist in the input structure.
- Overlapping or conflicting masks: If provide_seq (unmask) overlaps with inpaint_* (mask), refine regions to avoid ambiguity.
- Length conflicts: If 'length' contradicts the total residues implied by your contigs or input structure, adjust length or the contig layout.
- Empty results or ignored masks: Ensure you are running a conditional design with an input structure when using structure-based masks (inpaint_str and secondary-structure masks).