Skip to content

Commit 9ed5e22

Browse files
authored
Merge pull request #31 from fmoorhof/uv-dependency-management
Uv dependency management
2 parents d605b97 + 04e8377 commit 9ed5e22

7 files changed

Lines changed: 2487 additions & 171 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ __pycache__/
77
.vscode/
88
.idea/
99
results/
10+
.venv/
1011

1112
# C extensions
1213
*.so

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@ RUN apt-get update \
88
&& apt-get install -y --no-install-recommends git \
99
&& rm -rf /var/lib/apt/lists/*
1010

11-
COPY requirements.txt /app/requirements.txt
11+
COPY pyproject.toml requirements.txt uv.lock /app/
12+
1213
RUN \
13-
pip install -r requirements.txt && \
14-
pip install --no-dependencies git+https://github.com/ipb-halle/SelectZyme.git@f16adbc && \
15-
python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='davari-group/selectzyme-app-data', repo_type='dataset')"
14+
pip install uv && \
15+
uv sync --frozen && \
16+
uv pip install --no-cache-dir --no-deps git+https://github.com/ipb-halle/SelectZyme.git@f16adbc && \
17+
uv run python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='davari-group/selectzyme-app-data', repo_type='dataset')"
1618

1719
COPY . /app
18-
RUN pip install .
20+
RUN uv pip install .
1921

2022
# Expose the port Dash will run on
2123
EXPOSE 8050
2224

2325
# Run the Dash app [stack size (-s) in kbytes]
24-
ENTRYPOINT ["bash", "-c", "ulimit -s 11040 && exec gunicorn app:server --bind 0.0.0.0:8050 --workers 1"]
26+
ENTRYPOINT ["bash", "-c", "ulimit -s 11040 && exec uv run gunicorn app:server --bind 0.0.0.0:8050 --workers 1"]
2527
# ENTRYPOINT ["bash", "-c", "ulimit -s 10240 && exec python app.py \"$@\"", "--"] # old argparsing

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SelectZyme-app
22
Web application to host the pre calculated analyses by SelectZyme.
33

4+
![SelectZyme](assets/selectzyme_logo.png)
5+
46
## Install
57
Prerequisite for all installs is to clone the repository.
68
```
@@ -19,9 +21,14 @@ Access the server from your browser at: `localhost/`
1921
### Local install to run a single case study
2022
Install dependencies defined in the `pyproject.toml` and SelectZyme without dependencies.
2123
```
22-
pip install .
23-
pip install --no-dependencies git+https://github.com/ipb-halle/SelectZyme.git
24+
uv sync
25+
uv pip install --no-deps git+https://github.com/ipb-halle/SelectZyme.git
26+
```
27+
Troubleshooting install:
2428
```
29+
uv pip install .
30+
```
31+
2532
Usage:
2633
```
2734
python app.py # runs example analysis 'demo' by default
@@ -88,4 +95,16 @@ http://ocean_ip/selectzyme/demo/
8895

8996

9097
# License
91-
MIT License
98+
MIT License
99+
100+
## Citation
101+
102+
This repository contains the source code for the application hosted at [https://selectzyme.app.ipb-halle.de/](https://selectzyme.app.ipb-halle.de/), showing selected pre-calculated case studies for the manuscript:<br>
103+
104+
Felix Moorhoff<sup>*1*</sup>, David Medina-Ortiz<sup>*1*</sup>, Alicja Kotnis<sup>*1*</sup>, Ahmed Hassanin<sup>*1,2*</sup>, Mehdi D. Davari<sup>*1,\**</sup>, <br>“Visualize, Explore, and Select”: A protein Language Model-Based Approach Enabling Navigation of Protein Sequence Space for Enzyme Discovery and Mining<br>
105+
*Journal* 2026, 61, 3463-3476 <br>
106+
https://doi.org/10.64898/2026.03.23.712833 <br>
107+
108+
<sup>*1*</sup><sub>Department of Bioorganic Chemistry, Leibniz Institute of Plant Biochemistry, Weinberg 3, 06120 Halle, Germany</sub> <br>
109+
<sup>*2*</sup><sub>Department of Pharmacognosy, Faculty of Pharmacy, Assiut University, 71526 Assiut, Egypt</sub> <br>
110+
<sup>*\**</sup><sub>Corresponding author</sub> <br>

assets/selectzyme_logo.png

66.7 KB
Loading

0 commit comments

Comments
 (0)