|
1 | | -# AlphaPeptDeep (PeptDeep) |
2 | 1 |
|
3 | 2 | [](https://github.com/MannLabs/alphapeptdeep/actions/workflows/pip_installation.yml) |
4 | 3 | [](https://github.com/MannLabs/alphapeptdeep/actions/workflows/publish_and_release.yml) |
|
10 | 9 | [](https://pypi.org/project/peptdeep) |
11 | 10 |  |
12 | 11 |
|
| 12 | +# AlphaPeptDeep (PeptDeep) |
| 13 | + |
13 | 14 | ------------------------------------------------------------------------ |
14 | 15 |
|
15 | 16 | <!-- PROJECT LOGO --> |
16 | 17 | <br /> |
17 | 18 | <div align="center"> |
18 | | - <a href="https://github.com/othneildrew/Best-README-Template"> |
19 | | - <img src="peptdeep/webui/logos/peptdeep.png" alt="Logo" width="80" height="80"> |
20 | | - </a> |
| 19 | + <img src="peptdeep/webui/logos/peptdeep.png" alt="Logo" width="80" height="80"> |
21 | 20 |
|
22 | | - <h3 align="center">AlphaPeptDeep</h3> |
| 21 | + <h3 align="center">PeptDeep</h3> |
23 | 22 |
|
24 | 23 | <p align="center"> |
25 | 24 | <a href="https://doi.org/10.1038/s41467-022-34904-3">Publication</a> |
26 | 25 | · |
27 | | - <a href="https://github.com/Mannlabs/peptdeeo/releases/latest">Download</a> |
| 26 | + <a href="https://github.com/Mannlabs/peptdeep/releases/latest">Download</a> |
28 | 27 | · |
29 | 28 | <a href="#installation">Installation</a> |
30 | 29 | · |
@@ -69,20 +68,21 @@ Visit [alphapept.org](https://alphapept.org) for other packages of AlphaPept eco |
69 | 68 | AlphaPeptDeep can be installed and used on all major operating systems |
70 | 69 | (Windows, macOS and Linux). |
71 | 70 |
|
72 | | -There are three different types of installation possible: |
| 71 | +There are different types of installation possible: |
73 | 72 |
|
74 | | -- [**One-click GUI installation:**](#one-click-gui) Choose this |
| 73 | +- [**One-click GUI installation:**](#one-click-gui-installation) Choose this |
75 | 74 | installation if you only want the GUI and/or keep things as simple as |
76 | 75 | possible. |
77 | | -- [**Pip installation:**](#pip) Choose this installation if you want to use peptdeep as a Python package in an existing Python (recommended Python 3.8 or 3.9) environment (e.g. a Jupyter notebook). If needed, the GUI and CLI |
| 76 | +- [**Pip installation:**](#pip-installation) Choose this installation if you want to use peptdeep as a Python package in an existing Python (recommended Python 3.8 or 3.9) environment (e.g. a Jupyter notebook). If needed, the GUI and CLI |
78 | 77 | can be installed with pip as well. |
79 | | -- [**Developer installation:**](#developer) Choose this installation if you |
| 78 | +- [**Developer installation:**](#developer-installation) Choose this installation if you |
80 | 79 | are familiar with CLI tools, [conda](https://docs.conda.io/en/latest/) |
81 | 80 | and Python. This installation allows access to all available features |
82 | 81 | of peptdeep and even allows to modify its source code directly. |
83 | 82 | Generally, the developer version of peptdeep outperforms the |
84 | 83 | precompiled versions which makes this the installation of choice for |
85 | 84 | high-throughput experiments. |
| 85 | +- [**Docker installation**](#docker-installation) Choose this installation if you want to use peptdeep without any changes to your system. |
86 | 86 |
|
87 | 87 | ### One-click GUI installation |
88 | 88 |
|
@@ -111,7 +111,7 @@ In newer MacOS versions, additional steps are required to enable installation of |
111 | 111 | This is indicated by a dialog telling you `“peptdeep. ... .pkg” Not Opened`. |
112 | 112 | 1. Close this dialog by clicking `Done`. |
113 | 113 | 2. Choose `Apple menu` > `System Settings`, then `Privacy & Security` in the sidebar. (You may need to scroll down.) |
114 | | -3. Go to `Security`, locate the line "alphadia.pkg was blocked to protect your Mac" then click `Open Anyway`. |
| 114 | +3. Go to `Security`, locate the line "peptdeep.pkg was blocked to protect your Mac" then click `Open Anyway`. |
115 | 115 | 4. In the dialog windows, click `Open Anyway`. |
116 | 116 |
|
117 | 117 |
|
@@ -197,13 +197,45 @@ By default this installs 'loose' dependencies (no pinned versions), |
197 | 197 | although it is also possible to use stable dependencies |
198 | 198 | (e.g. `pip install -e ".[stable,development-stable]"`). |
199 | 199 |
|
200 | | -***By using the editable flag `-e`, all modifications to the [peptdeep |
| 200 | +By using the editable flag `-e`, all modifications to the [peptdeep |
201 | 201 | source code folder](peptdeep) are directly reflected when running |
202 | 202 | peptdeep. Note that the peptdeep folder cannot be moved and/or renamed |
203 | 203 | if an editable version is installed. In case of confusion, you can |
204 | 204 | always retrieve the location of any Python module with e.g. the command |
205 | | -`import module` followed by `module.__file__`.*** |
| 205 | +`import module` followed by `module.__file__`. |
| 206 | + |
| 207 | +### Docker installation |
| 208 | +The containerized version can be used to run peptdeep without any installation to your system. |
| 209 | + |
| 210 | +#### 1. Setting up Docker |
| 211 | +Install the latest version of docker (https://docs.docker.com/engine/install/). |
| 212 | + |
| 213 | +#### 2. Prepare folder structure |
| 214 | +Set up your data to match the expected folder structure: |
| 215 | +create a folder and store its name in a variable, and specify a port |
| 216 | +``` |
| 217 | +DATA_FOLDER=/home/username/data; mkdir -p $DATA_FOLDER |
| 218 | +PORT=8501 |
| 219 | +``` |
206 | 220 |
|
| 221 | +#### 3. Start the container |
| 222 | +```bash |
| 223 | +docker run -v $DATA_FOLDER:/app/data -p $PORT:8501 mannlabs/peptdeep:latest |
| 224 | +``` |
| 225 | +After initial download of the container, peptdeep will start running immediately, |
| 226 | +and can be accessed under [localhost:$PORT](http://localhost:8501). |
| 227 | + |
| 228 | +Note: in the app, the local `$DATA_FOLDER` needs to be referred to as "`/app/data`". |
| 229 | + |
| 230 | +#### Alternatively: Build the image yourself |
| 231 | +If you want to build the image yourself, you can do so by |
| 232 | +```bash |
| 233 | +docker build -t peptdeep . |
| 234 | +``` |
| 235 | +and run it with |
| 236 | +```bash |
| 237 | +docker run -p $PORT:8501 -v $DATA_FOLDER:/app/data -t peptdeep |
| 238 | +``` |
207 | 239 |
|
208 | 240 | ### Enable GPU support |
209 | 241 |
|
|
0 commit comments