-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements RaSP for more than one wildtype
- Loading branch information
1 parent
2becc26
commit 9473941
Showing
11 changed files
with
12,154 additions
and
60 deletions.
There are no files selected for viewing
1,953 changes: 1,953 additions & 0 deletions
1,953
examples/comparing_rasp_and_foldx/example_pdbs/1uis.pdb
Large diffs are not rendered by default.
Oops, something went wrong.
1,778 changes: 1,778 additions & 0 deletions
1,778
examples/comparing_rasp_and_foldx/example_pdbs/1uis_A_Repair.pdb
Large diffs are not rendered by default.
Oops, something went wrong.
2,081 changes: 2,081 additions & 0 deletions
2,081
examples/comparing_rasp_and_foldx/example_pdbs/2vae.pdb
Large diffs are not rendered by default.
Oops, something went wrong.
1,757 changes: 1,757 additions & 0 deletions
1,757
examples/comparing_rasp_and_foldx/example_pdbs/2vae_A_Repair.pdb
Large diffs are not rendered by default.
Oops, something went wrong.
2,619 changes: 2,619 additions & 0 deletions
2,619
examples/comparing_rasp_and_foldx/example_pdbs/3ned.pdb
Large diffs are not rendered by default.
Oops, something went wrong.
1,830 changes: 1,830 additions & 0 deletions
1,830
examples/comparing_rasp_and_foldx/example_pdbs/3ned_A_Repair.pdb
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
examples/comparing_rasp_and_foldx/simple_rasp_foldx_comparison.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
""" | ||
In this example, we create both a RaSP and a FoldX objective function | ||
and we compare their predictions of stability. | ||
""" | ||
|
||
from pathlib import Path | ||
|
||
from poli import objective_factory | ||
|
||
THIS_DIR = Path(__file__).parent.resolve() | ||
|
||
if __name__ == "__main__": | ||
wildtype_pdb_paths_for_foldx = list((THIS_DIR / "example_pdbs").glob("*_Repair.pdb")) | ||
wildtype_pdb_paths_for_rasp = list((THIS_DIR / "example_pdbs").glob("*.pdb")) | ||
wildtype_pdb_paths_for_rasp = [ | ||
path_ for path_ in wildtype_pdb_paths_for_rasp if "_Repair" not in str(path_.name) | ||
] | ||
|
||
# _, f_foldx, x0, y0, _ = objective_factory.create( | ||
# name="foldx_stability", | ||
# wildtype_pdb_path=wildtype_pdb_paths, | ||
# batch_size=1, | ||
# ) | ||
|
||
# print(f_foldx(x0)) | ||
|
||
_, f_rasp, x0, y0, _ = objective_factory.create( | ||
name="rasp", | ||
wildtype_pdb_path=wildtype_pdb_paths_for_rasp, | ||
) | ||
|
||
print(f_rasp(x0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: poli__tdc | ||
name: poli__rasp | ||
channels: | ||
- omnia | ||
- conda-forge | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters