-
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.
provides a running blackbox for Rosetta (#222)
Co-authored-by: Simon Bartels <[email protected]> Co-authored-by: Miguel González Duque <[email protected]> Co-authored-by: Richard Michael <[email protected]> Co-authored-by: Richard Michael <[email protected]>
- Loading branch information
1 parent
f9709e5
commit 1fd2c0b
Showing
15 changed files
with
9,310 additions
and
6 deletions.
There are no files selected for viewing
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,39 @@ | ||
name: poli rosetta (conda, py3.9) | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, closed] | ||
branches: | ||
- dev | ||
- master | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 8 | ||
if: github.event.pull_request.draft == false | ||
strategy: | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.10' | ||
- name: Add conda to system path | ||
run: | | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install tox | ||
- name: Test rosetta-related black boxes with tox and pytest | ||
run: | | ||
tox -c tox.ini -e poli-rosetta_energy-py310 |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "poli-core" | ||
version = "1.0.1" | ||
version = "1.1.0" | ||
description = "poli, a library of discrete objective functions" | ||
readme = "README.md" | ||
authors = [{name="Miguel González-Duque", email="[email protected]"}, {name="Simon Bartels", email="[email protected]"}] | ||
|
@@ -57,6 +57,10 @@ dockstring = [ | |
rmf = [ | ||
"scipy", | ||
] | ||
rosetta_energy = [ | ||
"biopython", | ||
"pyrosetta", | ||
] | ||
dev = ["black", "tox", "pytest", "bump-my-version"] | ||
docs = ["sphinx", "furo"] | ||
|
||
|
@@ -72,6 +76,7 @@ markers = [ | |
"poli__protein: marks tests that run in the poli__protein environment", | ||
"poli__rasp: marks tests that run in the poli__rasp environment", | ||
"poli__rmf: marks tests that run in poli__rmf environment", | ||
"poli__rosetta_energy: marks tests that run in poli__rosetta_energy", | ||
"poli__ehrlich_holo: marks tests that run in poli__ehrlich_holo environment", | ||
"unmarked: All other tests, which usually run in the base environment", | ||
] | ||
|
@@ -83,7 +88,7 @@ profile = "black" | |
exclude = ["src/poli/core/util/proteins/rasp/inner_rasp", "src/poli/objective_repository/gfp_cbas"] | ||
|
||
[tool.bumpversion] | ||
current_version = "1.0.1" | ||
current_version = "1.1.0" | ||
parse = """(?x) | ||
(?P<major>0|[1-9]\\d*)\\. | ||
(?P<minor>0|[1-9]\\d*)\\. | ||
|
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,6 +1,6 @@ | ||
[metadata] | ||
name = poli-core | ||
version = "1.0.1" | ||
version = "1.1.0" | ||
author = Miguel González-Duque | ||
author_email = [email protected] | ||
description = A library of discrete objective functions | ||
|
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
8,368 changes: 8,368 additions & 0 deletions
8,368
src/poli/objective_repository/rosetta_energy/1ggx.pdb
Large diffs are not rendered by default.
Oops, something went wrong.
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,11 @@ | ||
This black-box function uses PyRosetta-4. | ||
|
||
Created at JHU by Sergey Lyskov and the PyRosetta Team. | ||
|
||
(C) Copyright remains with the Rosetta Commons Member Institutions. | ||
|
||
|
||
By using the `rosetta_energy` black-box you agree that you have read and are in compliance with the PyRosetta | ||
license agreement. | ||
|
||
See LICENSE.PyRosetta.md or email [email protected]. |
Empty file.
12 changes: 12 additions & 0 deletions
12
src/poli/objective_repository/rosetta_energy/environment.yml
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,12 @@ | ||
name: poli__rosetta_energy | ||
channels: | ||
- defaults | ||
- conda-forge | ||
- https://conda.rosettacommons.org | ||
dependencies: | ||
- python=3.10 | ||
- pyrosetta | ||
- pip: | ||
- numpy | ||
- "git+https://github.com/MachineLearningLifeScience/poli.git@dev" | ||
- biopython==1.72 |
15 changes: 15 additions & 0 deletions
15
src/poli/objective_repository/rosetta_energy/information.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,15 @@ | ||
import numpy as np | ||
|
||
from poli.core.black_box_information import BlackBoxInformation | ||
from poli.core.util.proteins.defaults import AMINO_ACIDS | ||
|
||
rosetta_energy_information = BlackBoxInformation( | ||
name="rosetta_energy", | ||
max_sequence_length=np.inf, | ||
alphabet=AMINO_ACIDS, | ||
aligned=True, | ||
fixed_length=True, | ||
discrete=True, | ||
deterministic=False, | ||
padding_token="", | ||
) |
Oops, something went wrong.