Skip to content

Commit 28a941f

Browse files
committed
Cleans the titles for the sections, adds cards to make the available objective functions more eye-catching
1 parent 793e06b commit 28a941f

File tree

17 files changed

+145
-27
lines changed

17 files changed

+145
-27
lines changed

docs/protein-optimization/_toc.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,23 @@ parts:
77
- caption: Getting started
88
chapters:
99
- file: getting_started/getting_started.md
10-
- caption: Using poli - the basics
10+
- caption: The basics
1111
chapters:
1212
- file: using_poli/the_basics/intro_to_poli.ipynb
1313
- file: using_poli/the_basics/registering_an_objective_function.md
1414
- file: using_poli/the_basics/defining_a_problem_solver.md
1515
- file: using_poli/the_basics/optimizing_an_objective_function.md
1616
- file: using_poli/the_basics/diving_deeper.md
17-
- caption: Using poli - examples
17+
- caption: Examples
1818
chapters:
1919
- file: using_poli/optimization_examples/protein-stability-foldx/optimizing_protein_stability.ipynb
20-
- caption: Understanding FoldX
20+
- caption: Some objective functions available
21+
chapters:
22+
- file: using_poli/objective_repository/white_noise.md
23+
- file: using_poli/objective_repository/foldx_stability.md
24+
- file: using_poli/objective_repository/super_mario_bros.md
25+
- file: using_poli/objective_repository/small_molecule.md
26+
- caption: "Appendix: Understanding FoldX"
2127
chapters:
2228
- file: understanding_foldx/00-installing-foldx.md
2329
- file: understanding_foldx/01-single-mutation-using-foldx/index.ipynb

docs/protein-optimization/getting_started/getting_started.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ $ python -c "from poli.objective_repository import AVAILABLE_OBJECTIVES ; print(
8787
Let's write a small script that installs `white_noise` from the repository:
8888

8989
```python
90-
# see examples/minimal_working_example.py
90+
# see poli/examples/minimal_working_example.py
91+
import numpy as np
9192
from poli import objective_factory
9293

9394
problem_info, f, x0, y0, run_info = objective_factory.create(name="white_noise")
9495

95-
x = np.array([[1]]) # must be of shape [b, d], in this case [1, 1].
96+
x = np.array([["1", "2", "3"]]) # must be of shape [b, L], in this case [1, 3].
9697
for _ in range(5):
9798
print(f"f(x) = {f(x)}")
9899
```

docs/protein-optimization/index.md

Lines changed: 94 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,106 @@
1-
# Tutorials on protein optimization using poli
1+
# Protein optimization using `poli`
22

33
This book contains documentation on how to use `poli` and `poli-baselines`, our tools for creating and optimizing black box objective functions.
44

55
At its core, `poli` allows you to isolate calls to complicated objective functions which might, for example, depend on simulators, binaries, or a weird version of the Java runtime.
66
Our promise is: if you can run your objective function reliably in a `conda` environment, then you can register it and call it from other projects without having to worry about re-installing all the dependencies.
77

8-
`poli` comes batteries-included. By this, we mean that there are already a collection of black box objective functions you could register and use out-of-the-box. Examples include:
9-
- standard white noise,
10-
- computing the stability of proteins and their mutations from a wildtype `pdb`,
11-
- optimizing the number of jumps Mario performs in a Super Mario Bros level sampled from the latent space of a Variational Autoencoder.
12-
- optimizing the QED and penalized logP of small molecules, presented as either SELFIES or SMILES. [WIP]
8+
`poli` comes batteries-included. By this, we mean that there are already a collection of black box objective functions you could register and use out-of-the-box.
139

14-
On top of `poli`, we provide `poli-baselines`, a collection of black-box optimization algorithms (focusing especially on *discrete* sequences). Examples include
15-
- Random mutations,
16-
- Evolutionary and genetic algorithms like CMA-ES, or NSGA-2 [WIP],
17-
- Bayesian Optimization in latent space [WIP].
10+
## Black-box objective functions
11+
12+
These are some objective functions available on `poli`. **For a full list**, check [getting started](./getting_started/getting_started.md).
13+
14+
::::{grid}
15+
:gutter: 3
16+
17+
:::{grid-item-card} White noise
18+
:link: ./using_poli/objective_repository/white_noise.html
19+
:columns: 4
20+
White noise drawn from a unit Gaussian
21+
:::
22+
23+
:::{grid-item-card} Aloha
24+
:link: ./using_poli/objective_repository/aloha.html
25+
:columns: 4
26+
A toy example about optimizing 5-letter words to spell "ALOHA"
27+
:::
28+
29+
:::{grid-item-card} Protein Stability
30+
:link: ./using_poli/objective_repository/foldx_stability.html
31+
:columns: 4
32+
Stability of mutations of a wildtype using `foldx`
33+
:::
34+
35+
:::{grid-item-card} Mario jumps
36+
:link: ./using_poli/objective_repository/super_mario_bros.html
37+
:columns: 4
38+
Optimizing the number of jumps on a Super Mario Bros level
39+
:::
40+
41+
:::{grid-item-card} Small molecule properties
42+
:link: ./using_poli/objective_repository/small_molecule.html
43+
:columns: 4
44+
Small molecule's synthesizability, druglikeness, and more. [WIP]
45+
:::
46+
47+
:::{grid-item-card} RaSP
48+
:link: ./using_poli/objective_repository/RaSP.html
49+
:columns: 4
50+
Rapid Stability Predictions of single mutations from a wildtype. [WIP]
51+
:::
52+
53+
:::{grid-item-card} TDC oracles
54+
:link: ./using_poli/objective_repository/tdc_oracles.html
55+
:columns: 4
56+
Some of the oracles provided by the Therapeutics Data Commons. [WIP]
57+
:::
58+
59+
::::
60+
## Black-box optimization algorithms
61+
62+
On top of `poli`, we provide `poli-baselines`, a collection of **black-box optimization algorithms** (focusing especially on *discrete* sequences). Examples include
63+
64+
::::{grid}
65+
:gutter: 3
66+
67+
:::{grid-item-card} Random Mutations
68+
:link: ./using_poli_baselines/random_mutations.html
69+
:columns: 4
70+
Optimizing a discrete sequence by performing random mutations
71+
:::
72+
73+
:::{grid-item-card} NSGA-2
74+
:link: ./using_poli_baselines/nsga_2.html
75+
:columns: 4
76+
A Genetic algorithm for optimizing more than one metric [WIP]
77+
:::
78+
79+
:::{grid-item-card} CMA-ES
80+
:link: ./using_poli_baselines/cma_es.html
81+
:columns: 4
82+
An evolutionary strategy for continuous problems [WIP]
83+
:::
84+
85+
:::{grid-item-card} Latent Space Bayesian Optimization
86+
:link: ./using_poli_baselines/latent_space_bo.html
87+
:columns: 4
88+
Learning continuous representations and optimizing in latent space. [WIP]
89+
:::
90+
91+
:::{grid-item-card} Graph GA
92+
:link: ./using_poli_baselines/graph_ga.html
93+
:columns: 4
94+
Graph Genetic Algorithms for small molecules. [WIP]
95+
:::
96+
97+
::::
98+
99+
## Get started!
18100

19101
A good place to start is the next chapter! [Go to Getting Started](./getting_started/getting_started.md).
20102

21-
## Contents
103+
<!-- ## Contents of the book
22104
23105
```{tableofcontents}
24-
```
106+
``` -->
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Rapid Stability Predictions
2+
3+
[TODO: write]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Aloha objective function
2+
3+
[TODO: write]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Protein stability using `foldx`
2+
3+
[TODO: write]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Small molecule properties
2+
3+
[TODO: write]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Optimizing jumps in Super Mario Bros
2+
3+
[TODO: write]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Therapeutics Data Commons' oracles
2+
3+
[TODO: write]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# White Noise objective function
2+
3+
[TODO: write]

0 commit comments

Comments
 (0)