Skip to content

Commit 0a452ab

Browse files
decarboxyjoewatchwell
authored andcommitted
more path updates in the readme
1 parent 94fb2d8 commit 0a452ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ In this section we will demonstrate how to run diffusion.
126126

127127

128128
### Running the diffusion script
129-
The actual script you will execute is called `run_inference.py`. There are many ways to run it, governed by hydra configs.
129+
The actual script you will execute is called `scripts/run_inference.py`. There are many ways to run it, governed by hydra configs.
130130
[Hydra configs](https://hydra.cc/docs/configure_hydra/intro/) are a nice way of being able to specify many different options, with sensible defaults drawn *directly* from the model checkpoint, so inference should always, by default, match training.
131131
What this means is that the default values in `config/inference/base.yml` might not match the actual values used during inference, with a specific checkpoint. This is all handled under the hood.
132132

@@ -141,7 +141,7 @@ For this, we just need to specify three things:
141141
3. The number of designs we want
142142

143143
```
144-
./run_inference.py 'contigmap.contigs=[150-150]' inference.output_prefix=test_outputs/test inference.num_designs=10
144+
./scripts/run_inference.py 'contigmap.contigs=[150-150]' inference.output_prefix=test_outputs/test inference.num_designs=10
145145
```
146146

147147
Let's look at this in detail.
@@ -251,7 +251,7 @@ Hopefully, it's now obvious how you might make a binder with diffusion! Indeed,
251251
If chain B is your target, then you could do it like this:
252252

253253
```
254-
./run_inference.py 'contigmap.contigs=[B1-100/0 100-100]' inference.output_prefix=test_outputs/binder_test inference.num_designs=10
254+
./scripts/run_inference.py 'contigmap.contigs=[B1-100/0 100-100]' inference.output_prefix=test_outputs/binder_test inference.num_designs=10
255255
```
256256

257257
This will generate 100 residue long binders to residues 1-100 of chain B. You can find another example of
@@ -315,7 +315,7 @@ or e.g. 2:
315315
This will process either a single pdb, or a folder of pdbs, and output a secondary structure and adjacency pytorch file, ready to go into the model. For now (although this might not be necessary), you should also generate these files for the target protein (if you're doing PPI), and provide this to the model. You can then use these at inference as follows:
316316

317317
```
318-
./run_inference.py inference.output_prefix=./scaffold_conditioned_test/test scaffoldguided.scaffoldguided=True scaffoldguided.target_pdb=False scaffoldguided.scaffold_dir=./examples/ppi_scaffolds_subset
318+
./scripts/run_inference.py inference.output_prefix=./scaffold_conditioned_test/test scaffoldguided.scaffoldguided=True scaffoldguided.target_pdb=False scaffoldguided.scaffold_dir=./examples/ppi_scaffolds_subset
319319
```
320320

321321
A few exra things:
@@ -373,7 +373,7 @@ We're going to switch gears from discussing PPI and look at another task at whic
373373

374374
Here's an example:
375375
```
376-
./run_inference.py --config-name symmetry inference.symmetry=tetrahedral 'contigmap.contigs=[360]' inference.output_prefix=test_sample/tetrahedral inference.num_designs=1
376+
./scripts/run_inference.py --config-name symmetry inference.symmetry=tetrahedral 'contigmap.contigs=[360]' inference.output_prefix=test_sample/tetrahedral inference.num_designs=1
377377
```
378378

379379
Here, we've specified a different `config` file (with `--config-name symmetry`). Because symmetric diffusion is quite different from the diffusion described above, we packaged a whole load of symmetry-related configs into a new file (see `configs/inference/symmetry.yml`). Using this config file now puts diffusion in `symmetry-mode`.

0 commit comments

Comments
 (0)