Skip to content

Commit 9e594b4

Browse files
committed
Update RFD3 documentation and tutorial content
Expanded the Sphinx static path to include RFD3 assets and made minor formatting and clarity improvements in the main and RFD3-specific documentation. The PPI design tutorial was revised for clarity, improved step-by-step instructions, and better separation of setup and execution steps.
1 parent 004633b commit 9e594b4

4 files changed

Lines changed: 18 additions & 21 deletions

File tree

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2828

2929
html_theme = 'furo'
30-
html_static_path = ['_static']
30+
html_static_path = ['_static', '../../models/rfd3/.assets']
3131

3232
html_theme_options = {
3333
"sidebar_hide_name":False,

docs/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ many of the machine learning models produced by `Rosetta Commons member labs <ht
1313
:maxdepth: 1
1414
:caption: General
1515

16-
readme_link.rst
16+
.. readme_link.rst
17+
1718
license_link.rst
1819

1920
.. toctree::

models/rfd3/docs/index.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,17 @@ study ligand-protein interactions, create nucleic acid-protein interfaces, and
66
design enzymes with specific catalytic activities. It is designed to be highly flexible and
77
user-friendly, making it suitable for a wide range of applications in computational biology and biochemistry.
88

9-
General Information
10-
-------------------
11-
.. toctree::
12-
:maxdepth: 1
13-
:caption: General Information
14-
15-
readme.md
16-
179
Tutorials
1810
---------
1911
.. toctree::
2012
:maxdepth: 1
21-
:caption: Contents
2213

2314
ppi_design_tutorial.md
2415

2516
Examples
2617
--------
2718
.. toctree::
28-
:maxdepth: 1
29-
:caption: Examples
19+
:maxdepth: 1
3020

3121
na_binder_design.md
3222
protein_binder_design.md

models/rfd3/docs/ppi_design_tutorial.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Protein-Protein Interface Design in RFdiffusion3
22

33
## Before We Get Started...
4-
This tutorial does not cover installing RFD3, before continuing you should make sure that RFdiffusion3 (RFD3) is installed and able to be run on your system. See the [README](../README.md) for how to install RFD3. You will need to remember the path to the directory where you stored your checkpoint files.
4+
This tutorial does not cover installing RFD3, before continuing you should make sure that RFdiffusion3 (RFD3) is installed and able to be run on your system.
5+
6+
See the [README](../README.md) for installation instructions. You will need to remember the path to the directory where you stored your checkpoint files.
57

68
```{note}
79
The instructions below assume that you have installed RFD3 via the pip commands.
@@ -10,7 +12,7 @@ You may need to slightly modify how you run the calculations based on your setup
1012

1113
Make sure you have activated any environments you used to install RFD3.
1214

13-
RFD3 runs best on GPUs. It is suggested to follow this activity on an interactive GPU node, if you have access to one. <!-- TO DO: Say memory requirement-->
15+
RFD3 runs best on GPUs. It is suggested to follow this tutorial on an interactive GPU node, if you have access to one. <!-- TO DO: Say memory requirement-->
1416

1517
You will need the file `4zxb_cropped.pdb`. This is provided in [`foundry/models/rfd3/docs/input_pdbs`](input_pdbs/4zxb_cropped.pdb).
1618

@@ -38,11 +40,11 @@ There is also an already made YAML file available here. <!-- TO DO: Add example
3840
In this tutorial, we will be briefly describing each of the settings we will be using for this example binder design project.
3941

4042
1. Using your editor of choice, open a new file called `rfd3_ppi_tutorial.yaml`. This is where we will be storing all of the settings that tell RFD3 the type of designs we would like to make.
41-
1. Our calculation needs a name. For this tutorial, we will only be including one example calculation, but your YAML file could have several. A name allows you to differentiate them. Since we are designing binders for the human insulin receptor, let's just call it `insulinr`:
43+
1. Our calculation needs a name. For this tutorial, we will only be including one example calculation, but your YAML file could have several. A name allows you (and RFD3) to differentiate them. Since we are designing binders for the human insulin receptor, let's just call it `insulinr`:
4244
```yaml
4345
insulinr:
4446
```
45-
Everything that comes after this should be indented to show that it's part of this `insulinr` calculation. You will want to use spaces, not the tab character. If a tab character (`\t `) is found in the file RFD3 will crash.
47+
Everything that comes after this should be indented to show that it's part of this `insulinr` calculation. You will want to use spaces, not the tab character. If a tab character (`\t `) is found in the file, RFD3 will crash.
4648
1. Tell RFD3 where to find your input file:
4749
```yaml
4850
input: /path/to/rfd3_ppi_tutorial/4zxb_cropped.pdb
@@ -85,6 +87,7 @@ In this tutorial, we will be briefly describing each of the settings we will be
8587
infer_ori_strategy: hotspots
8688
```
8789
This setting will place the ORI token 10Å outward from the center of mass of the `hotspots`. The center of mass of the diffused region should be within 5Å of the ORI token.
90+
1. Save you file and close it.
8891

8992
### Other useful settings
9093
1. RFD3 does atom-level diffusion, so it can redesign side chains (change the sequence) we will leave this setting set to `false`. If you would like to see what happens when RFD3 redesigns the target/motif (your input structure), try setting this to `true`: <!-- Maybe add a sentence about when people should think about doing this. -->
@@ -100,10 +103,13 @@ In this tutorial, we will be briefly describing each of the settings we will be
100103
```
101104
Here, an empty list indicates that all atoms are flexible, `BKBN` keeps the backbone atoms fixed while allowing side chain atoms to move, and for the last residue, specific atoms are fixed in place while allowing the others to move. Feel free to try adding this to your YAML file as well.
102105

103-
Save your file and close it.
104-
105106
## Running RFD3
106-
To actually run RFD3 you need to know the directory you want the outputs to be stored in, the path to the YAML (or JSON) file that stores the specific settings for the calculation, and the location of your checkpoint files. Once you have these three things you can run something like this from the command line:
107+
To actually run RFD3 you need to know:
108+
- the directory you want the outputs to be stored in
109+
- the path to the YAML (or JSON) file that stores the specific settings for the calculation
110+
- the location of your checkpoint files
111+
112+
Once you have these three things you can run something like this from the command line:
107113
```bash
108114
rfd3 design out_dir=ppi_tutorial_outputs/0 inputs=ppi_tutorial.yaml ckpt_path=/path/to/your/checkpoint/files/rfd3_latest.ckpt
109115
```
@@ -116,7 +122,7 @@ You may see several warning messages when you run RFD3, these should not interfe
116122
## Analyzing the Outputs
117123
You should end up with 8 designs, numbered 0-7, each with its own `.cif.gz` and `.json` file. If you want to adjust the number, add the configuration option `diffusion_batch_size` to your `rfd3 design` command.
118124

119-
The JSON file has many details about your diffusion run, including the options in your YAML file. The compressed CIF file that you can easily visualize with tools like PyMOL.
125+
The JSON file has many details about your diffusion run, including the options in the YAML file you created. The compressed CIF file that you can easily visualize with tools like PyMOL.
120126

121127
Your results should look something like this:
122128
```{figure} .assets/ppi_tutorial/example_output_w_hotspots.png

0 commit comments

Comments
 (0)