Commit Graph

1165 Commits

Author SHA1 Message Date
Rachel Clune
b8a81f88da Update binder_design_tutorial.md
Fixed missing motif definition.
2026-06-03 11:03:56 -07:00
Rachel Clune
9fbeffc590 Minor binder design tutorial edits
- Fixed cd28_nag.pdb: the F chain NAG molecule did not have a residue number
- Updated the example runscript files to remove any system/user-specific information. I also removed the variables as they seemed unnecessary for such a simple runscript.
- Added example output files for CD28 and PDF1
- Added a 'Step 3' section for the small molecule example
- Corrected noisy and denoised trajectory file descriptions in the tutorial text.
2026-06-03 10:00:59 -07:00
Rachel Clune
bb8c084c03 Added small molecule example
Minor file rearranging also occurred.
2026-06-02 16:05:02 -07:00
Rachel Clune
4bdc24c7aa First draft of binder design tutorial
The original tutorial was written by Julia Bonzanini with support from Christian Schellhaas during the 2026 Tutorial Hackathon.

PDF1 example still needs to be edited.
2026-05-30 10:40:50 -07:00
Rafael Brent
cee116dc55 fix: infer ori edge case (#273)
* fix: correct bug when inferring ori from hotspots that occurs when the original hotspot COM is near (0,0,0)

* fix:rafi hotspot fix for inference.py for rfd3na

---------

Co-authored-by: Rafi Brent <rafi.brent@gmail.com>
Co-authored-by: Raktim Mitra <timkartar7879@gmail.com>
2026-04-23 13:31:16 -07:00
Raktim Mitra
2e3f2edde2 rfd3na (#269)
* rfd3na

* ruff check fix

* ruff format

* handle P suffix from fonudry components update

* simplify p suffix handling and fix demo.json (was brokem in foundry due to ligand chain allow issue)

* clean; remove extraneous files

* main doc cleanup; training fix

* rnasep png

* add white background to png

* try jpg as png getting cropped

* atom23 gif

* Update README.md

* foundry install

* no background multipolymer

* Update README.md

* ruff format

---------

Co-authored-by: Raktim Mitra <raktim@localhost>
Co-authored-by: Rohith Krishna <rohith@localhost>
Co-authored-by: Raktim Mitra <raktim@digs>
Co-authored-by: Raktim Mitra <raktim@digs.ipd.uw.edu>
2026-04-16 09:52:02 -07:00
Rachel Clune
b071919caa Docs rfd3 instsallation tutorial (#262)
* Adding the RFD3 installation guide from the Tutorial Hackathon

* Update RFdiffusion3_installation_tutorial.md

Edits based on communications with the original author (Florian) along with minor corrections and formatting changes.
2026-04-08 08:26:11 -07:00
Rachel Clune
4e3feffc12 Docs add analytics (#264)
* Adding Google Analytics to the Foundry documentation

The analytics are under Rachel Clune's OSMF account and will only be used for reporting to the Rosetta Commons Board

* Add simple analytics tracking to the foundry docs

Simple analytics does not collect any personal information.
The page view information will only be used for reporting to the Rosetta board and prioritizing future work.
2026-04-07 10:15:21 -07:00
Jasper Butcher
7dd7b31a0a Improve PTM bond handling in RFdiffusion3 (#256)
* Improve PTM bond handling in RFdiffusion3 input parsing

Replace the old _restore_bonds_for_nonstandard_residues approach with a
more robust bond restoration system that properly handles unindexed
components, backbone-like bonds for non-standard residues (PTMs), and
cross-residue bond preservation from source structures. Adds the legacy
counterpart and regression tests for both code paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Apply ruff formatting to PTM bond handling files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Remove is_motif_atom guards from legacy input parsing

The bare is_motif_atom annotation is being abolished; remove the
guards that were adding it when missing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Gate bond restoration behind nonstandard-residue check

Only run _restore_component_bonds, _add_backbone_bonds_for_nonstandard_residues,
and _sort_bonds when the source structure actually has backbone connections
to nonstandard residues.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 22:11:59 -07:00
Jasper Butcher
b5395e43a8 Fix ligand res_id offset to match AF3 convention (#261)
* Fix ligand res_id offset to match AF3 output convention

RFD3 was offsetting ligand res_id values from the protein max, causing
(chain_id, res_id, atom_name) pairing to fail against AF3 predictions
which always start ligand res_id at 1. Replace the offset with dense
rank-based per-chain renumbering (1, 2, ...) and add a chain A
validation with an override option (allow_ligand_on_chain_a).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Generalize chain validation to all existing chains

Rename allow_ligand_on_chain_a → allow_ligand_on_existing_chain and
check against all chains already present in the built atom array,
not just chain A.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Error on multiple ligands per chain; preserve gaps in override mode

When allow_ligand_on_existing_chain is False, raise an error if
multiple ligand residues share the same chain. Reset res_id min to 1
per chain, preserving relative gaps when ligands share a chain
(override mode).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Use legacy res_id offset when allow_ligand_on_existing_chain is True

The override path now matches the old behaviour (offset from protein
max res_id). The default path (separate chains) sets each ligand
chain's res_id to 1.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Note in errors that override restores old behaviour

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 21:49:41 -07:00
Rachel Clune
dacd4894ec Docs: Creating a contribution guide for Foundry (#215)
I created a contribution guide for foundry that is meant to live both in the main directory and in the external documentation. Since this file lives outside of the `docs` folder but I still wanted it in the external documentation, the `contributing_link.rst` file is necessary.  The content in the guide is based on the Atomworks contribution guide and some of the information provided in the Foundry README. Since this is mean to be rendered both on GitHub and Sphinx, I had to suppress Sphinx's `xref_missing` warnings because while these references are hidden in the Sphinx-built docs, they are visible in the GitHub rendered docs.

While creating this file I realized that a docs_requirements.txt file needed to be created so that contributors could easily make the necessary docs environment to run Sphinx.
2026-04-04 18:43:12 -07:00
Jasper Butcher
54a8d721c1 Expose n_recycle as inference sampler parameter (#259)
* Expose n_recycle as inference sampler parameter and improve docs

The n_recycle parameter was previously hardcoded in the diffusion module
config and not overridable at inference time. This exposes it through the
inference sampler so users can control recycling iterations via CLI
(e.g. inference_sampler.n_recycle=3). Also adds num_timesteps and
n_recycle to the "Other CLI Options" docs section, and makes the
InputSpecification reference more prominent in the README.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-04 16:37:44 -07:00
Jasper Butcher
9fa9ba2f27 Add MPS (Apple Silicon) support for RFD3, RF3, and ProteinMPNN (#260)
Adds support for running inference on Apple Silicon MPS devices.

Key changes:
- Handle bfloat16 -> float32 fallback on MPS (bfloat16 unsupported)
- Add scatter_mean utility with MPS fallback (index_reduce unsupported)
- Guard masked_scatter_/boolean indexing in block_utils with MPS paths
- Use expand (zero-copy) on CUDA/CPU, repeat (contiguous) on MPS for
  torch.where compatibility
- Add .contiguous() calls for scatter/gather ops that require it on MPS
- Replace hardcoded "cuda" in autocast dtype queries with device_of()
- Store torch.linalg.det result before torch.sign to avoid MPS in-place
  op issues on autograd graph leaves
- Auto-detect MPS accelerator and enforce float32 precision
- Add MPS installation instructions to README

Based on work by @fnachon in PR #257 with additional fixes:
- expand/repeat if-else to avoid O(L^2) allocation on non-MPS backends
- ruff 0.8.3 formatting to pass CI lint checks

Co-Authored-By: fnachon

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 16:36:44 -07:00
kaistroh
2b938016f4 Optimize attention computation with local window bias (#254)
Refactor attention mechanism to compute pair bias within local windows, avoiding large tensor operations.
2026-04-04 15:04:27 -07:00
Jane
c5a9fbefde Fix broken PPI tutorial link in RFdiffusion3 README (#252)
The tutorial URL was missing the tutorials/ subdirectory. Updated to point to the correct path at models/rfd3/tutorials/ppi_design_tutorial.html
2026-03-26 10:08:05 -07:00
Rachel Clune
257d20ca88 Docs: Intermediate enzyme design tutorial (#250)
* Uploading and editing the first enzyme design tutorial from the Tutorial Hackathon

This tutorial was written by Johannes and Florian and is meant to be an intermediate enzyme design tutorial.

* Updated draft of Intermediate Enzyme Design Tutorial

* Added explanations for the fixed atom and unfixed motif constraints
* Added more detail about the metrics to quickly determine if a design is 'good'

* Adding example input and output files

- Removal of 1mg5.cif and 1mg5_motif.pdb.cif as they are not necessary for the tutorial.
- Creation of an `outputs.zip` that contains example output files for this tutorial
- Edits to the tutorial document to point to these files.

* Updated description of catalytic structure

Updated the description of the catalytic structure to better cite the literature.
2026-03-24 13:37:21 -07:00
Rachel Clune
a94de86df9 Revert "Adding Google Analytics to the Foundry documentation" (#244)
Revert "Adding Google Analytics to the Foundry documentation (#243)"

This reverts commit d746dc56a3.
2026-03-19 09:02:39 -07:00
Rachel Clune
d746dc56a3 Adding Google Analytics to the Foundry documentation (#243)
The analytics are under Rachel Clune's OSMF account and will only be used for reporting to the Rosetta Commons Board
2026-03-18 19:07:18 -07:00
Rachel Clune
6ab4add581 Fixed broken links in tutorials (#242) 2026-03-12 19:50:52 -07:00
Rachel Clune
146c2be7ac Creation of a NA binder tutorial (#232)
* Docs: Installation FAQ space and minor RFD3 docs updates

Installation FAQ: created a document to specify any common installation issues and questions. Should be continuously updated based on logged issues and questions. Not specific to any model.

RFD3:
- changed the checkpoint files specified in the examples to rfd3_latest.ckpt
- updated information in input.md to clarify information based on recent issues that had been submitted

* Docs: Symlinks for RF3 and MPNN docs, RFD3 README minor edits

RF3 and MPNN: folders, index files, and symlinks were created in order to provide space for eventual RF3 and MPNN docs.

Several small changes in the RFD3 README to improve readability and  add a pointer to the PPI tutorial as a starting point for someone new to RFdiffusion tools.

* First draft of enzyme design tutorial. Minor typo fixes in other documents.

* First draft of nucleic acid binder tutorial, minor edits to the other tutorials

* Completed enzyme design tutorial, removal of NA binder tutorial from index

Made changes based on edits from Saman, added images, and created zip file containing sample outputs for an enzyme design tutorial.

I am waiting on edits for the NA binder design tutorial, so for now I have removed it from the documentation index.

* First drafts of content for NA binder design tutorial

This tutorial is being created in collaboration with Raktim Mitra.

* Adding images to NA binder design tutorial

* Final draft of NA binder tutorial

* Create unfix.zip

* Updated images for na binder tutorial
2026-03-12 19:36:36 -07:00
Nathaniel Corley
4686f7300c fix: reference conformers (#235) 2026-03-06 12:56:10 -08:00
David Hyunyoo Jang
75986084a6 fix: restore python version constraint (==3.12) (#227)
* fix: restore exact python version constraint (==3.12)

Commit 49187c3 unintentionally reverted requires-python from ==3.12
back to >=3.12 as a side-effect of the inference fix. This restores
the exact version constraint originally introduced in 8aeacba.

* fix: relax python version constraint to allow 3.12.x

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 07:49:50 -08:00
Rachel Clune
38d0989cb7 Docs: RF3 README update and moving RF3 examples (#216)
* RF3 README update and moving RF3 examples

I updated the RF3 README for installation instructions that matched the RFD3 installation instructions. For the first example, I improve the instructions for running and fixed the output file descriptions to match what is now output by running the example. I commented out the 'Templating a Small Molecule' section because many of the files in that section were not present in the repository. The rest of the changes were mostly typo fixes.

 I moved the examples from `foundry/docs/releases` to `foundry/models/rf3/docs` to match the organization of RFD3. The changes made to the JSON files just reflect this change of location.

* Changed paths in example JSON files to point to new RF3 examples location

* Updated the landing page for the RF3 documentation so that it links out to the README
2026-02-27 15:35:02 -08:00
Rachel Clune
2f905c59b4 Delete models/rfd3/docs/enzyme_tutorial_files directory
Accidentally duplicated in the last commit
2026-02-25 21:29:58 -08:00
Aiko
290b2fd0bb fix: weight initialization bug in chunked P_LL (#229)
- Also cache static projections for speedup
2026-02-25 16:29:51 -08:00
Rachel Clune
99a0cb773a Enzyme Design Tutorial (#210)
* Docs: Installation FAQ space and minor RFD3 docs updates

Installation FAQ: created a document to specify any common installation issues and questions. Should be continuously updated based on logged issues and questions. Not specific to any model.

RFD3:
- changed the checkpoint files specified in the examples to rfd3_latest.ckpt
- updated information in input.md to clarify information based on recent issues that had been submitted

* Docs: Symlinks for RF3 and MPNN docs, RFD3 README minor edits

RF3 and MPNN: folders, index files, and symlinks were created in order to provide space for eventual RF3 and MPNN docs.

Several small changes in the RFD3 README to improve readability and  add a pointer to the PPI tutorial as a starting point for someone new to RFdiffusion tools.

* First draft of enzyme design tutorial. Minor typo fixes in other documents.

* First draft of nucleic acid binder tutorial, minor edits to the other tutorials

* Completed enzyme design tutorial, removal of NA binder tutorial from index

Made changes based on edits from Saman, added images, and created zip file containing sample outputs for an enzyme design tutorial.

I am waiting on edits for the NA binder design tutorial, so for now I have removed it from the documentation index.

* Removing file related to in-progress NA binder tutorial

* Removing file related to in-progress NA binder tutorial

* Final version of the enzyme design tutorial

Made small edits, created example files.

* Resolving merge conflicts
2026-02-25 16:13:05 -08:00
David Hyunyoo Jang
9f609e8758 Docs: update repository URL in README (#226)
fix: update repository URL in README
2026-02-25 14:39:22 -08:00
Raktim Mitra
3b262b742b Update na_binder_design.md (#230)
UPdating the same minor change int the complex example in the .md file as did for the .json earlier
2026-02-25 14:34:33 -08:00
Sergey Lyskov
bb97ddfb94 Update author email for Sergey Lyskov (#228) 2026-02-25 14:33:29 -08:00
Rachel Clune
4a70f0ef93 Docs: Designability vs. Diversity (#220)
* Docs: Installation FAQ space and minor RFD3 docs updates

Installation FAQ: created a document to specify any common installation issues and questions. Should be continuously updated based on logged issues and questions. Not specific to any model.

RFD3:
- changed the checkpoint files specified in the examples to rfd3_latest.ckpt
- updated information in input.md to clarify information based on recent issues that had been submitted

* Docs: Symlinks for RF3 and MPNN docs, RFD3 README minor edits

RF3 and MPNN: folders, index files, and symlinks were created in order to provide space for eventual RF3 and MPNN docs.

Several small changes in the RFD3 README to improve readability and  add a pointer to the PPI tutorial as a starting point for someone new to RFdiffusion tools.

* First draft of enzyme design tutorial. Minor typo fixes in other documents.

* First draft of nucleic acid binder tutorial, minor edits to the other tutorials

* Completed enzyme design tutorial, removal of NA binder tutorial from index

Made changes based on edits from Saman, added images, and created zip file containing sample outputs for an enzyme design tutorial.

I am waiting on edits for the NA binder design tutorial, so for now I have removed it from the documentation index.

* Removing file related to in-progress NA binder tutorial

* Removing file related to in-progress NA binder tutorial

* Update ppi_design_tutorial.md

- Added information about useful CLI arguments
- Cleaned up the introduction
- Added section for what one might do with the designs from RFD3
- Added a note about hotspot residues also being in the `contig` (information from Rafi's TTT talk)
- Fixed minor sphinx heading issue

* Reorganizing RFD3 documentation

Reorganized files into an `examples` and a `tutorials` folders to clean up the RFD3 docs folder and align its organization with the RF3 docs folder. Any edits made in the files are related to changing the paths to reflect these changes.

* Docs: Designability vs. Diversity document

Created a document describing the settings that can impact the designability and diversity of structures output by RFdiffusion3, the information is based on the talk Rafi gave at Tech Tea Time in January.

* Minor grammar fixes in designability vs diversity document

* Update models/rfd3/docs/tutorials/ppi_design_tutorial.md

Co-authored-by: Rafael Brent <105883594+RafiBrent@users.noreply.github.com>

* Update models/rfd3/docs/tutorials/enzyme_design_tutorial.md

Co-authored-by: Rafael Brent <105883594+RafiBrent@users.noreply.github.com>

* Update models/rfd3/docs/designability_vs_diversity.md

Co-authored-by: Rafael Brent <105883594+RafiBrent@users.noreply.github.com>

* Update models/rfd3/docs/designability_vs_diversity.md

Co-authored-by: Rafael Brent <105883594+RafiBrent@users.noreply.github.com>

---------

Co-authored-by: Jasper Butcher <66851659+Ubiquinone-dot@users.noreply.github.com>
Co-authored-by: Rafael Brent <105883594+RafiBrent@users.noreply.github.com>
2026-02-24 10:50:29 -08:00
Rachel Clune
b81ccd40d8 Create Issue Templates (#197)
* Create Issue Templates

Created templates for bug reports, feature requests, and usage questions. The main goal is to encourage users to provide files and details required to understand their problem/request/question so that minimal back and forth needs to occur before a solution is reached.

* Revise issue template for clarity and detail

Updated issue template to include a request for images of expected behavior and streamlined the reproduction steps section.
2026-02-21 22:42:28 -08:00
Hope Woods
f4f3597aa8 Upload Dockerfile to examples (#222)
* Upload Dockerfile to examples

* Update Foundry README with Docker information

- There is an image for Foundry on DockerHub
- Example recipe is in `foundry/examples/docker`

---------

Co-authored-by: Rachel Clune <rachel.clune@omsf.io>
2026-02-21 22:40:06 -08:00
Raktim Mitra
3294b06cc6 Update na_binder_design.json (#223) 2026-02-19 09:14:49 -08:00
Jasper Butcher
ea05d5939b Fix ligand annotatitions (#219) 2026-02-17 14:06:42 -08:00
Raktim Mitra
4f26b2d46a fix: switch to tmpdir otherwise hb2 won't be found (#218)
Co-authored-by: Raktim Mitra <raktim@localhost>
2026-02-17 14:03:21 -08:00
Rachel Clune
b100462717 Fix chain break representation in input.md
Updated the documentation for the 'contig' field to correct the representation of chain breaks from '\0' to '/0'.
2026-02-12 09:45:38 -08:00
Rohith Krishna
a814636801 Fix Slack invitation link
Updated Slack invitation link in README.
2026-02-06 10:49:56 -08:00
Rohith Krishna
976018840d remove reliance of rooutils for pip installed case (#200)
Co-authored-by: Rohith Krishna <rohith@digs>
2026-02-04 19:04:54 -08:00
Rachel Clune
38a83a97b1 Docs: PPI tutorial updates, RF3 and MPNN docs placeholders, minor edits (#195)
* Docs: Installation FAQ space and minor RFD3 docs updates

Installation FAQ: created a document to specify any common installation issues and questions. Should be continuously updated based on logged issues and questions. Not specific to any model.

RFD3:
- changed the checkpoint files specified in the examples to rfd3_latest.ckpt
- updated information in input.md to clarify information based on recent issues that had been submitted

* Docs: Symlinks for RF3 and MPNN docs, RFD3 README minor edits

RF3 and MPNN: folders, index files, and symlinks were created in order to provide space for eventual RF3 and MPNN docs.

Several small changes in the RFD3 README to improve readability and  add a pointer to the PPI tutorial as a starting point for someone new to RFdiffusion tools.
v0.1.10
2026-02-02 15:33:04 -08:00
Rafael Brent
f682e8c801 fix: correct typo (#194)
Co-authored-by: Rafi Brent <rafi.brent@gmail.com>
2026-02-02 11:11:58 -08:00
Rafael Brent
857b6fbb51 docs: clarify is_non_loopy defaults (#193)
Co-authored-by: Rafi Brent <rafi.brent@gmail.com>
2026-02-02 10:55:23 -08:00
Aiko
c35837e279 fix: revert symmetry related code to the point that was stable (#179) 2026-01-22 23:50:54 -08:00
Jasper Butcher
06b19bdce7 Fix hbond calculation to remove produced file (#178)
* Fix hbond calculation to remove produced file

* Update models/rfd3/src/rfd3/transforms/hbonds_hbplus.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update models/rfd3/src/rfd3/transforms/hbonds_hbplus.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-22 18:37:46 -08:00
Rohith Krishna
a79cb953e2 Update inference command path in README.md (#169) 2026-01-16 14:51:57 -08:00
Simon Mathis
efa7aae8c2 remove .DS_Store files (#167) 2026-01-15 14:10:44 -08:00
jbutch
d35d8ac3c1 Make format 2026-01-14 16:59:41 -08:00
Jasper Butcher
e94fdf63e7 Add search path for rfd3 configurations (#147)
* Add search path for rfd3 configurations

* Add search path for rfd3 configurations

* Add Hydra searchpath for rf3 and rfd3 model-specific configs (#166)

* Initial plan

* Add search path for rf3 configurations

Co-authored-by: Ubiquinone-dot <66851659+Ubiquinone-dot@users.noreply.github.com>

* Add rfd3 searchpath to validate.yaml and dev.yaml

Co-authored-by: Ubiquinone-dot <66851659+Ubiquinone-dot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Ubiquinone-dot <66851659+Ubiquinone-dot@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2026-01-14 16:59:18 -08:00
Rafael Brent
88d212c08d docs: update ppi docs (#159)
docs: update ppi docs to recommend lower-temperature settings

Co-authored-by: Rafi Brent <rafi.brent@gmail.com>
2026-01-08 13:38:25 -08:00
Magnus Bauer
94eb95a004 Parallelize rc-foundry install and checkpoint downloads for colab notebook (#157)
load ckpts and foundry in parallel to save time
2026-01-07 16:31:06 -08:00
Daan Krol
8bfde2381a feat: Add Intel XPU support for Foundry Models (#156)
feat: Add Intel XPU support for all models

- Add XPU accelerator, precision, and strategy classes
- Update DDP utilities to detect and use Intel XPU
- Add XPU trainer configs for RF3 and RFD3
- Update MPNN inference engine for XPU compatibility
- Update README with XPU documentation
2026-01-07 16:30:04 -08:00