Skip to content

Commit e745cb6

Browse files
authored
Update and rename Installation_instructions_M1_CellProfiler_CellPose_Stardist.md to Installation_instructions_M1_CellProfiler_CellPose.md
1 parent 105caf7 commit e745cb6

1 file changed

Lines changed: 21 additions & 31 deletions

File tree

Instructions/Installation_instructions_M1_CellProfiler_CellPose_Stardist.md renamed to Instructions/Installation_instructions_M1_CellProfiler_CellPose.md

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Installation instructions for CellProfiler, CellProfiler plugins, CellPose and StarDist in a conda environment on Apple silicon.
1+
Installation instructions for CellProfiler, CellProfiler plugins and CellPose in a conda environment on Apple silicon (eg M1).
22

33
1. **Install brew**
44
```
@@ -85,7 +85,6 @@ Installation instructions for CellProfiler, CellProfiler plugins, CellPose and S
8585
- attrdict
8686
- sip==5.5.0
8787
- boto3>=1.12.28
88-
- cellprofiler-core
8988
- centrosome==1.2.1
9089
- docutils==0.15.2
9190
- h5py~=3.6.0
@@ -119,11 +118,11 @@ Installation instructions for CellProfiler, CellProfiler plugins, CellPose and S
119118
120119
```
121120
├── cp_plugins
122-
   ├── CellProfiler-plugins
123-
   └── cellprofiler_plugins_macM1.yml
121+
├── CellProfiler-plugins
122+
└── cellprofiler_plugins_macM1.yml
124123
```
125124
126-
In the terminal, make sure you are in the `cp_plugins` folder mentioned above.
125+
In the terminal, make sure you are in the `cp_plugins` folder mentioned above (run `cd cp_plugins` to get there).
127126
128127
```
129128
conda env create -n cp_plugins --file cellprofiler_plugins_macM1.yml
@@ -135,45 +134,34 @@ Installation instructions for CellProfiler, CellProfiler plugins, CellPose and S
135134
conda activate cp_plugins
136135
```
137136
138-
15. **Install Cellprofiler core and cellprofiler**
139-
140-
In the terminal with your environment activate, navigate to the folder where you download the software and enter:
141-
137+
15. **Install CellProfiler and CellProfiler-core**
142138
```
143-
pip install cellprofiler --no-deps
144-
```
139+
pip install cellprofiler-core
145140
146-
16. **Install other packages for other plugins (just for runStardist)**
141+
# We install CellProfiler with no dependencies here since we installed them with the conda yml file
142+
# This allows us to have some dependencies for M1 that are not the default for CellProfiler (eg wxPython)
143+
git clone https://github.com/CellProfiler/CellProfiler
147144
148-
In the terminal with your environment activate, enter:
145+
pip install --no-deps cellprofiler
149146
```
150-
conda install -c apple tensorflow-deps
151-
python -m pip install tensorflow-macos
152-
pip install stardist csbdeep --no-deps
153-
```
154-
155-
17. **Open CellProfiler**
156-
157-
Execute this command from within the downloaded CellProfiler repo (get there with `cd CellProfiler`)
158147
148+
16. **Open CellProfiler**
159149
```
160150
pythonw -m cellprofiler
161151
```
162152
163-
18. **Connect CellProfiler with the plugins folder**
164-
165-
With your environment active, type pythonw -m cellprofiler in terminal to open CellProfiler if it is not open already.
153+
17. **Connect CellProfiler with the plugins folder**
166154
167-
*In CellProfiler, go to File then Preferences...
168-
*Scroll down and look for "CellProfiler Plugins Directory" on the left.
169-
*Select the Browse button and choose the folder where you extracted the CellProfiler plugins files. It is probably called "CellProfiler-plugins-master" unless you have renamed it.
170-
*Select Save at the bottom of the Preferences window
171-
*Close CellProfiler and reopen it by typing pythonw -m cellprofiler on the command line
155+
1. In CellProfiler, go to `File` then `Preferences...`
156+
2. Scroll down and look for `CellProfiler Plugins Directory` on the left.
157+
3. Select the Browse button and choose the folder where you extracted the CellProfiler plugins files. It is probably called `CellProfiler-plugins` unless you have renamed it.
158+
4. Select Save at the bottom of the Preferences window
159+
5. Close CellProfiler and reopen it by typing `pythonw -m cellprofiler` in the command line
172160
173161
174-
### Resolving dependencies conflits
162+
### Resolving dependencies conflicts
175163
176-
In the terminal with your environment activate, enter:
164+
There can be some strange dependency conflicts that can arise with python-javabridge. In the terminal with your environment activate, enter:
177165
```
178166
pip uninstall -y centrosome python-javabridge
179167
pip install --no-cache-dir --no-deps --no-build-isolation python-javabridge centrosome
@@ -183,6 +171,8 @@ Installation instructions for CellProfiler, CellProfiler plugins, CellPose and S
183171
pip install mahotas
184172
```
185173
174+
The latest version of CellProfiler available on github removes the python-javabridge requirement and instead uses ScyJava.
175+
186176
### Test your installation
187177
188178
Add a module to your pipeline by hitting the **+** button in the pipeline panel (bottom left)

0 commit comments

Comments
 (0)