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
Copy file name to clipboardExpand all lines: README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,23 @@ You can reach us at [AllenCenterCovertLab](mailto:[email protected]
9
9
10
10
See [docs/README.md](docs/README.md) for more info on setting up and running the model.
11
11
12
-
In short, there are two alternative setups to run the model: inside a Docker container vs. in a manually constructed `pyenv` virtual environment.
13
-
12
+
In short, there are two alternative setups to run the model: inside a Docker container vs. in a manually constructed `pyenv` virtual environment. With Docker, you can start running a simulation with three commands:
docker run --name=wcm -it --rm docker.pkg.github.com/covertlab/wholecellecolirelease/wcm-full
20
+
```
21
+
1. Inside the container, run the model:
22
+
```shell script
23
+
python runscripts/manual/runSim.py
24
+
```
14
25
15
26
## Quick start
16
27
17
-
When running this code, prepare with these steps (the wcm-code Docker container already prepares this for you):
28
+
When running this code, prepare with these steps (the wcm-full Docker container already prepares this for you):
18
29
19
30
1. `cd` to the top level of your `wcEcoli` directory.
20
31
2. Set the `$PYTHONPATH`:
@@ -46,7 +57,7 @@ These scripts have command line interfaces built on Python's `argparse`, so you
46
57
**NOTE:** _Use the `-h` or `--help` switch to get complete, up-to-date documentation on the command line options._ Below are just _some_ of the command line options.
47
58
48
59
49
-
To run the parameter calculator (ParCa), which is needed to prepare input data for the simulation:
60
+
To run the parameter calculator (ParCa), which is needed to prepare input data for the simulation (this step has already been run when building the wcm-full Docker image and can be skipped if running a container from that image):
You can then run the wcEcoli model inside the Container like this:
21
19
22
20
```shell script
23
-
docker run --name=wcm -it --rm wcm-code
21
+
docker run --name=wcm -it --rm docker.pkg.github.com/covertlab/wholecellecolirelease/wcm-full
24
22
```
25
23
26
24
The `-it` option starts an interactive shell.
@@ -30,10 +28,11 @@ There are two alternative ways to set up to run the model:
30
28
exit so you don't have to remember to delete old Containers.
31
29
32
30
You can mount your local directory `wcEcoli/out/` into the Container to preserve the
33
-
program's output files when the Container exits:
31
+
program's output files when the Container exits - just be sure to provide a full path
32
+
to `out/` (eg. `$PWD/out`), not just a relative path from your current directory:
34
33
35
34
```shell script
36
-
docker run --name=wcm -v $PWD/out:/wcEcoli/out -it wcm-code
35
+
docker run --name=wcm -v $PWD/out:/wcEcoli/out -it docker.pkg.github.com/covertlab/wholecellecolirelease/wcm-full
37
36
```
38
37
39
38
In this case, the output files will be owned by root. You can fix
@@ -45,7 +44,7 @@ There are two alternative ways to set up to run the model:
45
44
46
45
**NOTE:** If you encounter memory issues while using Docker Desktop (the default allocated memory is 2GB) and the simulation processes get killed midway, click the Docker icon > Preferences > Advanced > adjust memory to 4GB.
47
46
48
-
**NOTE:** Docker Desktop for Windowsis not currently compatible with VirtualBox. If you use VirtualBox, try installing the legacy [Docker Toolbox](https://github.com/docker/toolbox/releases) instead. You may also need to adjust the memory allocated to the VirtualBox VM (named 'default') that gets created. In VirtualBox, select the 'default' VM and under system, change the base memory from 1 GB to 4 GB.
47
+
**NOTE:**When setting up Docker Desktop for Windows, it is best to [use the WSL2 backend](https://docs.docker.com/docker-for-windows/wsl/). If not, you might run into compatability issues when trying to run Docker, especially if you have VirtualBox installed, which could require using the legacy [Docker Toolbox](https://github.com/docker/toolbox/releases).
49
48
50
49
Inside the Container you can then run commands like these:
51
50
@@ -58,6 +57,13 @@ There are two alternative ways to set up to run the model:
58
57
**Tip:** Eventually, you'll want to delete the Docker Image. Refer to the
**Tip:** You can build your own Docker image instead of the one provided using these steps:
61
+
62
+
```shell script
63
+
cd$YOUR_CODE_PROJECTS_DIR/wcEcoli # or wherever you cloned the wcEcoli project to
64
+
cloud/build-containers.sh
65
+
```
66
+
61
67
2.**Python virtual environment:** Follow [Required development tools](dev-tools.md) to install the development tools including pyenv, gcc, make, and git, then follow [Creating the "pyenv" runtime environment](create-pyenv.md) to set up the Python runtime virtual environment for the model including binary libraries and Python packages.
62
68
63
69
You can then run wcEcoli in this Python virtualenv.
0 commit comments