You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,11 +24,11 @@ Documentation in readthedocs format is available [here](https://ampl.readthedocs
24
24
---
25
25
## Table of contents
26
26
-[Getting started](#Getting-started)
27
-
-[Prerequisites](#Prerequisites)
28
27
-[Install](#Install)
29
28
-[Clone the git repository](#clone-repo)
30
-
-[Create conda environment](#create-conda-env)
29
+
-[Create pip environment](#create-pip-env)
31
30
-[dgl and CUDA (**optional**)](#Install-dgl)
31
+
-[Installation quick summary](#install-summary)
32
32
-[Install with Docker](#Install-docker)
33
33
-[Tutorials](#AMPL-tutorials)
34
34
-[Tests](#Tests)
@@ -55,84 +55,133 @@ Documentation in readthedocs format is available [here](https://ampl.readthedocs
55
55
Welcome to the ATOM Modeling PipeLine (AMPL) for Drug Discovery! These instructions will explain how to install this pipeline for model fitting and prediction.
56
56
57
57
58
-
<aname="Prerequisites"></a>
59
-
### Prerequisites
60
-
AMPL is a Python 3 package that has been developed and run in a specific conda environment. The following prerequisites are necessary to install AMPL:
61
-
62
-
- conda (Anaconda 3 or Miniconda 3, Python 3)
63
-
64
-
65
58
<aname="Install"></a>
66
59
### Install
60
+
61
+
For a quick install summary, see [here](#install-summary).
export LD_LIBRARY_PATH=$ENVROOT/atomsci/lib:$LD_LIBRARY_PATH# add your env/lib to LD_LIBRARY_PATH
181
+
cd .. # go to AMPL repo directory and run build
182
+
./build.sh
183
+
pip3 install -e .
131
184
```
132
-
- The `install.sh system` command installs AMPL directly in the conda environment. If `install.sh` alone is used, then AMPL is installed in the `$HOME/.local` directory.
133
-
134
-
- After this process, you will have an `atomsci` conda environment with all dependencies installed. The name of the AMPL package is `atomsci-ampl` and is installed in the `install.sh` script to the environment with conda's `pip`.
135
-
136
185
137
186
#### More installation information
138
187
- More details on installation can be found in [Advanced installation](#Advanced-installation).
- The `install.sh system` command installs AMPL directly in the pip environment. If `install.sh` alone is used, then AMPL is installed in the `$HOME/.local` directory.
167
217
168
-
where `$test_env` is the name of the your current Conda environment to run [dgl](https://www.dgl.ai/) in.
218
+
- After this process, you will have an `atomsci` pip environment with all dependencies installed. The name of the AMPL package is `atomsci-ampl` and is installed in the `install.sh` script to the environment.
219
+
169
220
170
221
<aname="Install-docker"></a>
171
222
### Install with Docker
@@ -204,7 +255,7 @@ AMPL includes a suite of software tests. This section explains how to run a very
204
255
205
256
To run the Delaney Python script that curates a dataset, fits a model, and makes predictions, run the following commands:
206
257
```
207
-
conda activate atomsci
258
+
source $ENVROOT/atomsci/bin/activate # activate your pip environment. `atomcsi` is an example here.
208
259
209
260
cd atomsci/ddm/test/integrative/delaney_RF
210
261
@@ -386,19 +437,11 @@ AMPL has been developed and tested on the following Linux systems:
386
437
387
438
388
439
### Uninstallation
389
-
To remove AMPL from a conda environment use:
440
+
To remove AMPL from a pip environment use:
390
441
```
391
-
conda activate atomsci
392
442
pip uninstall atomsci-ampl
393
443
```
394
444
395
-
396
-
To remove the atomsci conda environment entirely from a system use:
To run the full set of tests, use Pytest from the test directory:
410
453
```
411
-
conda activate atomsci
454
+
source $ENVROOT/atomsci/bin/activate # activate your pip environment. `atomsci` is an example here.
412
455
413
456
cd atomsci/ddm/test
414
457
@@ -420,7 +463,7 @@ pytest
420
463
Several of the tests take some time to fit. These tests can be submitted to a SLURM cluster as a batch job. Example general SLURM submit scripts are included as `pytest_slurm.sh`.
421
464
422
465
```
423
-
conda activate atomsci
466
+
source $ENVROOT/atomsci/bin/activate # activate your pip environment. `atomsci` is an example here.
424
467
425
468
cd atomsci/ddm/test/integrative/delaney_NN
426
469
@@ -459,12 +502,12 @@ cd ../../..
459
502
### Installing the AMPL for development
460
503
To install the AMPL for development, use the following commands instead:
461
504
```
462
-
conda activate atomsci
505
+
source $ENVROOT/atomsci/bin/activate # activate your pip environment. `atomsci` is an example here.
463
506
./build.sh && ./install_dev.sh
464
507
```
465
508
466
509
467
-
This will create a namespace package in your conda directory that points back to your git working directory, so every time you reimport a module you'll be in sync with your working code. Since site-packages is already in your sys.path, you won't have to fuss with PYTHONPATH or setting sys.path in your notebooks.
510
+
This will create a namespace package in your environment directory that points back to your git working directory, so every time you reimport a module you'll be in sync with your working code. Since site-packages is already in your sys.path, you won't have to fuss with PYTHONPATH or setting sys.path in your notebooks.
0 commit comments