@@ -18,14 +18,14 @@ A toolkit for computational pathology and machine learning.
18
18
** View [ documentation] ( https://pathml.readthedocs.io/en/latest/ ) **
19
19
20
20
:construction : the ` dev ` branch is under active development, with experimental features, bug fixes, and refactors that may happen at any time!
21
- Stable versions are available as tagged commits on the ` master ` branch , or as versioned releases on PyPI
21
+ Stable versions are available as tagged releases on GitHub , or as versioned releases on PyPI
22
22
23
23
# Installation
24
24
25
25
There are several ways to install ` PathML ` :
26
26
27
- 1 . pip install (** recommended for users** )
28
- 2 . clone repo to local machine and install from source (recommended for developers/contributors)
27
+ 1 . ` pip install ` from PyPI (** recommended for users** )
28
+ 2 . Clone repo to local machine and install from source (recommended for developers/contributors)
29
29
3 . Use the PathML Docker container
30
30
31
31
Options (1) and (2) require that you first install all external dependencies:
@@ -39,71 +39,83 @@ Download Miniconda [here](https://docs.conda.io/en/latest/miniconda.html)
39
39
40
40
## Installation option 1: pip install
41
41
42
- Create conda environment
42
+ Create conda environment:
43
43
````
44
44
conda create --name pathml python=3.8
45
45
conda activate pathml
46
46
````
47
47
48
- Install external dependencies (Linux) with [ Apt] ( https://ubuntu.com/server/docs/package-management )
48
+ Install external dependencies (Linux) with [ Apt] ( https://ubuntu.com/server/docs/package-management ) :
49
49
````
50
50
sudo apt-get install openslide-tools g++ gcc libblas-dev liblapack-dev
51
51
````
52
52
53
- Install external dependencies (MacOS) with [ Brew] ( www.brew.sh )
53
+ Install external dependencies (MacOS) with [ Brew] ( www.brew.sh ) :
54
54
````
55
55
brew install openslide
56
56
````
57
57
58
- Install [ OpenJDK 8] ( https://openjdk.java.net/ )
58
+ Install [ OpenJDK 8] ( https://openjdk.java.net/ ) :
59
59
````
60
60
conda install openjdk==8.0.152
61
61
````
62
62
63
63
Optionally install CUDA (instructions [ here] ( #CUDA ) )
64
64
65
- Install ` PathML `
65
+ Install ` PathML ` from PyPI:
66
66
````
67
67
pip install pathml
68
68
````
69
69
70
70
## Installation option 2: clone repo and install from source
71
71
72
- Clone repo
72
+ Clone repo:
73
73
````
74
74
git clone https://github.com/Dana-Farber-AIOS/pathml.git
75
75
cd pathml
76
76
````
77
77
78
- Create conda environment
78
+ Create conda environment:
79
79
````
80
80
conda env create -f environment.yml
81
81
conda activate pathml
82
82
````
83
83
84
84
Optionally install CUDA (instructions [ here] ( #CUDA ) )
85
85
86
- Install ` PathML ` :
86
+ Install ` PathML ` from source :
87
87
````
88
88
pip install -e .
89
89
````
90
90
91
- ## Installation option 3: docker
91
+ ## Installation option 3: Docker
92
92
93
- Build the PathML docker container:
94
- ````
95
- docker build -t pathml-analysis .
96
- ````
93
+ First, download or build the PathML Docker container:
94
+
95
+ - Option A: download PathML container from Docker Hub
96
+ ````
97
+ docker pull pathml/pathml:latest
98
+ ````
99
+ Optionally specify a tag for a particular version, e.g. ` docker pull pathml/pathml:2.0.2 ` . To view possible tags,
100
+ please refer to the [ PathML DockerHub page] ( https://hub.docker.com/r/pathml/pathml ) .
101
+
102
+ - Option B: build docker container from source
103
+ ````
104
+ git clone https://github.com/Dana-Farber-AIOS/pathml.git
105
+ cd pathml
106
+ docker build -t pathml/pathml .
107
+ ````
97
108
98
- Connect to the container:
109
+ Then connect to the container:
99
110
````
100
- docker run -it -p 8888:8888 pathml-analysis
111
+ docker run -it -p 8888:8888 pathml/pathml
101
112
````
102
113
103
114
The above command runs the container, which is configured to spin up a jupyter lab session and expose it on port 8888.
104
- The terminal should display a URL to the jupyter lab session starting with http://127.0.0.1:8888/lab?token= <...> .
115
+ The terminal should display a URL to the jupyter lab session starting with ` http://127.0.0.1:8888/lab?token=<.....> ` .
105
116
Navigate to that page and you should connect to the jupyter lab session running on the container with the pathml
106
- environment fully configured.
117
+ environment fully configured. If a password is requested, copy the string of characters following the ` token= ` in the
118
+ url.
107
119
108
120
Note that the docker container requires extra configurations to use with GPU.
109
121
Note that these instructions assume that there are no other processes using port 8888.
0 commit comments