Skip to content

Commit 1fd2c0b

Browse files
SimonBartelsSimon BartelsmiguelgonduRichard MichaelRMichae1
authored
provides a running blackbox for Rosetta (#222)
Co-authored-by: Simon Bartels <sbartels@univ-tlse3.fr> Co-authored-by: Miguel González Duque <miguelgondu@gmail.com> Co-authored-by: Richard Michael <r.michael@posteo.net> Co-authored-by: Richard Michael <pcq275@alumni.ku.dk>
1 parent f9709e5 commit 1fd2c0b

File tree

15 files changed

+9310
-6
lines changed

15 files changed

+9310
-6
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: poli rosetta (conda, py3.9)
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- master
8+
pull_request:
9+
types: [opened, synchronize, reopened, ready_for_review, closed]
10+
branches:
11+
- dev
12+
- master
13+
schedule:
14+
- cron: '0 0 * * 0'
15+
16+
jobs:
17+
build-linux:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 8
20+
if: github.event.pull_request.draft == false
21+
strategy:
22+
max-parallel: 5
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Set up Python 3.9
27+
uses: actions/setup-python@v3
28+
with:
29+
python-version: '3.10'
30+
- name: Add conda to system path
31+
run: |
32+
# $CONDA is an environment variable pointing to the root of the miniconda directory
33+
echo $CONDA/bin >> $GITHUB_PATH
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install tox
37+
- name: Test rosetta-related black boxes with tox and pytest
38+
run: |
39+
tox -c tox.ini -e poli-rosetta_energy-py310

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ authors:
88
- family-names: "Michael"
99
given-names: "Richard"
1010
title: "poli: a libary of discrete sequence objectives"
11-
version: 1.0.1
11+
version: 1.1.0
1212
date-released: 2024-01-23
1313
url: "https://github.com/MachineLearningLifeScience/poli"

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "poli-core"
7-
version = "1.0.1"
7+
version = "1.1.0"
88
description = "poli, a library of discrete objective functions"
99
readme = "README.md"
1010
authors = [{name="Miguel González-Duque", email="miguelgondu@gmail.com"}, {name="Simon Bartels", email="bartels@di.ku.dk"}]
@@ -57,6 +57,10 @@ dockstring = [
5757
rmf = [
5858
"scipy",
5959
]
60+
rosetta_energy = [
61+
"biopython",
62+
"pyrosetta",
63+
]
6064
dev = ["black", "tox", "pytest", "bump-my-version"]
6165
docs = ["sphinx", "furo"]
6266

@@ -72,6 +76,7 @@ markers = [
7276
"poli__protein: marks tests that run in the poli__protein environment",
7377
"poli__rasp: marks tests that run in the poli__rasp environment",
7478
"poli__rmf: marks tests that run in poli__rmf environment",
79+
"poli__rosetta_energy: marks tests that run in poli__rosetta_energy",
7580
"poli__ehrlich_holo: marks tests that run in poli__ehrlich_holo environment",
7681
"unmarked: All other tests, which usually run in the base environment",
7782
]
@@ -83,7 +88,7 @@ profile = "black"
8388
exclude = ["src/poli/core/util/proteins/rasp/inner_rasp", "src/poli/objective_repository/gfp_cbas"]
8489

8590
[tool.bumpversion]
86-
current_version = "1.0.1"
91+
current_version = "1.1.0"
8792
parse = """(?x)
8893
(?P<major>0|[1-9]\\d*)\\.
8994
(?P<minor>0|[1-9]\\d*)\\.

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = poli-core
3-
version = "1.0.1"
3+
version = "1.1.0"
44
author = Miguel González-Duque
55
author_email = miguel.gonzalez-duque@bio.ku.dk
66
description = A library of discrete objective functions

src/poli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""poli, a library for discrete black-box objective functions."""
22

3-
__version__ = "1.0.1"
3+
__version__ = "1.1.0"
44
from .core.util.isolation.instancing import instance_function_as_isolated_process
55

66
# from .core import get_problems

src/poli/objective_repository/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
)
7777
from .rfp_rasp.register import RFPRaspBlackBox, RFPRaspProblemFactory
7878
from .rmf_landscape.register import RMFBlackBox, RMFProblemFactory
79+
from .rosetta_energy.register import RosettaEnergyBlackBox, RosettaEnergyProblemFactory
7980
from .sa_tdc.register import SABlackBox, SAProblemFactory
8081
from .scaffold_hop.register import ScaffoldHopBlackBox, ScaffoldHopProblemFactory
8182
from .sitagliptin_mpo.register import (
@@ -142,6 +143,7 @@
142143
"rfp_foldx_stability": RFPFoldXStabilityProblemFactory,
143144
"rfp_foldx_stability_and_sasa": RFPFoldXStabilityAndSASAProblemFactory,
144145
"rmf_landscape": RMFProblemFactory,
146+
"rosetta_energy": RosettaEnergyProblemFactory,
145147
"sa_tdc": SAProblemFactory,
146148
"super_mario_bros": SuperMarioBrosProblemFactory,
147149
"white_noise": WhiteNoiseProblemFactory,
@@ -190,6 +192,7 @@
190192
"rfp_foldx_stability": RFPFoldXStabilityBlackBox,
191193
"rfp_foldx_stability_and_sasa": FoldXStabilityAndSASABlackBox,
192194
"rmf_landscape": RMFBlackBox,
195+
"rosetta_energy": RosettaEnergyBlackBox,
193196
"sa_tdc": SABlackBox,
194197
"super_mario_bros": SuperMarioBrosBlackBox,
195198
"white_noise": WhiteNoiseBlackBox,

src/poli/objective_repository/rosetta_energy/1ggx.pdb

Lines changed: 8368 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
This black-box function uses PyRosetta-4.
2+
3+
Created at JHU by Sergey Lyskov and the PyRosetta Team.
4+
5+
(C) Copyright remains with the Rosetta Commons Member Institutions.
6+
7+
8+
By using the `rosetta_energy` black-box you agree that you have read and are in compliance with the PyRosetta
9+
license agreement.
10+
11+
See LICENSE.PyRosetta.md or email license@uw.edu.

src/poli/objective_repository/rosetta_energy/__init__.py

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: poli__rosetta_energy
2+
channels:
3+
- defaults
4+
- conda-forge
5+
- https://conda.rosettacommons.org
6+
dependencies:
7+
- python=3.10
8+
- pyrosetta
9+
- pip:
10+
- numpy
11+
- "git+https://github.com/MachineLearningLifeScience/poli.git@dev"
12+
- biopython==1.72

0 commit comments

Comments
 (0)