Skip to content

Commit 9928c71

Browse files
authored
Merge branch 'CellProfiler:master' into master
2 parents 08d1aff + ec2ce8f commit 9928c71

15 files changed

Lines changed: 666 additions & 89 deletions

Instructions/Install_environment_instructions_mac.md

Lines changed: 66 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,106 @@
11
# How to install CellProfiler from source with all plugins on Mac OS
22

3-
1. Install Java 11 [here](https://adoptopenjdk.net/)
3+
1. **Download and install [Java JDK 11](https://adoptium.net/temurin/releases/?version=11)**
4+
5+
<img src="https://user-images.githubusercontent.com/28116530/184950214-ca9d8d07-ab66-45f2-9a18-fb220bd0a8ec.png" width=500px/>
6+
7+
&nbsp;
8+
9+
**NOTE**: For M1/M2 Macs, which use the ARM 64-bit architecture, use [this link](https://www.azul.com/downloads/?version=java-11-lts&os=macos&architecture=arm-64-bit&package=jdk) to get Java 11.
10+
11+
<img src = "https://user-images.githubusercontent.com/28116530/184956441-26ded1ac-0f8f-4bc2-93d9-e6c8554a0018.png" width=500px/>
412

5-
2. Install or update conda
613

7-
* Note: you can get the command to update conda by typing `conda update` on your command line. The command will generally look like:
14+
After you download the file, open the installer and proceed through the steps to install Java 11.
15+
16+
&nbsp;
817

9-
`conda update --prefix /Users/USERNAME/opt/anaconda3 anaconda`
1018

11-
For beginners, we recommend you use Anaconda Navigator since it is more beginner-friendly. Download Anaconda from the website [here](https://www.anaconda.com/products/distribution), then open Anaconda Navigator
19+
2. **Download and install or update conda**
20+
21+
For beginners, we recommend you use Anaconda Navigator since it is more beginner-friendly, but you can also use miniconda. [Download Anaconda](https://www.anaconda.com/products/distribution) from the website and install.
1222

13-
3. Download the environment file
23+
**NOTE**: if you already have conda, you can get the command to update conda by typing `conda update` on your command line. The command will generally look like:
1424

15-
You can download the whole repo by cloning it with git or simply clicking the green **Code** button on [the repo page](https://github.com/CellProfiler/CellProfiler-plugins.git) and selecting **Download ZIP** (see below) and then extract the ZIP folder contents.
25+
`conda update --prefix /Users/USERNAME/opt/anaconda3 anaconda`
1626

17-
Alternatively, you can copy and paste the contents of the .yml file into a text editor like Notepad. If you do this, make sure you save it as "CellProfiler_plugins_windows.yml" and as type "All Files" and **NOT** "Text file".
27+
&nbsp;
28+
29+
3. **Clone the CellProfiler-plugins Repo**
1830

19-
![](images/Install_environment_instructions_windows/2022-06-02T21-39-05.png)
31+
Download a copy of (aka "clone") the CellProfiler-plugins repo from [here](https://github.com/CellProfiler/CellProfiler-plugins.git). You can download the whole repo by cloning it with git or simply clicking the green **Code** button on [the repo page](https://github.com/CellProfiler/CellProfiler-plugins.git) and selecting **Download ZIP** (see below).
2032

21-
4. Try to create a new environment from the included .yml file
33+
<img src="images/Install_environment_instructions_windows/2022-06-02T21-39-05.png" width="500"/>
34+
35+
You can also use git or GitHub Desktop to clone the repo if you prefer.
36+
37+
&nbsp;
2238

23-
**Warning, this step may take a while**
39+
4. **Create the environment from the .yml file**
2440

2541
Open Anaconda Navigator and select the **Environments** tab on the left. We recommend you create the environment from the command line. To do this, Select the play button next to your base (root) environment and select **Open Terminal**:
2642

27-
![](images/Install_environment_instructions_windows/2022-06-02T21-11-49.png)
43+
<img src="images/Install_environment_instructions_windows/2022-06-02T21-11-49.png" width="500"/>
44+
45+
A black box should pop up with a blinking cursor. This is your terminal. You now need to navigate to where the **cellprofiler_plugins_mac.yml** file is inside of the CellProfiler-plugins folder you downloaded in the last step. This file is in the `Instructions` subfolder. Here is how we recommend you do this:
46+
1) In Finder, open the folder you downloaded in the previous step (usually called "CellProfiler-plugins-master")
47+
2) There should be a folder called **Instructions**. Right click or ctrl+click that folder. Then hold down the option key (or Alt) on your keyboard. An option to **Copy "Instructions" as Pathname** should appear. Select this option. (see below)
2848

29-
In the terminal, navigate to where your environment file is located with `cd PATH_TO_FOLDER` where `PATH_TO_FOLDER` is the path to the directory containing your yml file (e.g., `/Users/USER/Desktop`).
49+
<img width="509" alt="image" src="https://user-images.githubusercontent.com/28116530/184949743-901ada5e-dbe5-40d6-99c2-ad0877bddc31.png">
50+
3051

31-
Then in the terminal window that pops up, enter the following command:
52+
3) Go back to your terminal and type `cd PATH_TO_FOLDER` where `PATH_TO_FOLDER` is the address you copied in the previous step. Press Enter.
53+
54+
&nbsp;
55+
56+
Now that you're in the right place, copy and paste this command into the terminal and press Enter.
3257
```
3358
conda env create -f CellProfiler_plugins_mac.yml
3459
```
35-
5. Activate your environment
60+
&nbsp;
61+
3662

37-
In your terminal, enter `conda activate Cellprofiler_plugins` to activate your environment
63+
5. **Activate your environment**
64+
65+
In your terminal, enter `conda activate CellProfiler_plugins` to activate your environment
66+
67+
&nbsp;
3868

39-
6. Verify that cellprofiler is installed correctly by running it from the command line.
69+
70+
6. **Verify that cellprofiler is installed correctly by running it from the command line.**
4071

4172
In your terminal, type in `pythonw -m cellprofiler` and hit Enter. this will open CellProfiler or will give you an error message.
73+
74+
&nbsp;
4275

43-
7. Install other packages for other plugins (just for RunStarDist)
76+
7. **Install other packages for other plugins**
4477

45-
In terminal with your environment activated, enter:
78+
Certain packages cannot easily installed when importing the environment.
79+
80+
For StarDist: In terminal with your environment activated, enter:
4681
```
4782
pip install stardist csbdeep --no-deps
4883
```
4984
5085
51-
52-
If you would like to use the omnipose models in cellpose, ensure you have cellpose 1.0.2 (you should by default if you've used our environment yml) and enter on the command line (in your activated environment):
86+
If you would like to use the omnipose models in cellpose, ensure you have cellpose 1.0.2 (you should by default if you've used the CellProfiler_plugins_mac.yml file to generate the environment) and enter on the command line (in your activated environment):
5387
5488
```
5589
pip install omnipose
5690
```
91+
92+
&nbsp;
5793
58-
8. Clone the CellProfiler-plugins Repo
59-
60-
If you have not already downloaded the repo, download it from [here](https://github.com/CellProfiler/CellProfiler-plugins.git).
61-
62-
You can also use git or GitHub Desktop to clone the repo if you prefer.
6394
64-
9. Connect CellProfiler and the plugins repo
95+
8. **Connect CellProfiler and the plugins repo**
6596
6697
With your environment active, type `pythonw -m cellprofiler` in terminal to open CellProfiler if it is not open already.
6798
68-
* In CellProfiler, go to **File** then **Preferences...**
69-
* Scroll down and look for "CellProfiler Plugins Directory" on the left.
70-
* 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.
71-
* Select **Save** at the bottom of the Preferences window
72-
* Close CellProfiler and reopen it by typing `pythonw -m cellprofiler` on the command line
99+
* In CellProfiler, go to **File** then **Preferences...**
100+
* Scroll down and look for "CellProfiler Plugins Directory" on the left.
101+
* 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.
102+
* Select **Save** at the bottom of the Preferences window
103+
* Close CellProfiler and reopen it by typing `pythonw -m cellprofiler` on the command line
73104
74105
75106
**NOTE**: You might get a warning like this:
@@ -79,7 +110,9 @@
79110
```
80111
If you don't have a GPU, this is not a problem. If you do, your configuration is incorrect and you need to try reinstalling drivers and the correct version of CUDA for your system.
81112
82-
10. Verify that the installation worked
113+
&nbsp;
114+
115+
9. **Verify that the installation worked**
83116
84117
Add a module to your pipeline by hitting the **+** button in the pipeline panel (bottom left)
85118

Instructions/Install_environment_instructions_windows.md

Lines changed: 64 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# How to install CellProfiler from source with all plugins on Windows
22

3-
Some of these download steps can take a while. The first 3 steps (as well as downloading Anaconda) can all be done simultaneously to save you time.
3+
Outlined here is the manual process for installing CellProfiler and plugins from source. Please close all open programs and save your work before starting this, as your computer may require a restart. Note that some of these download steps can take a while; the first 3 steps (as well as downloading Anaconda) can all be done simultaneously to save you time. Also note that for steps like changing the system-level environment variables, you may need admin permissions on your computer.
44

5-
1. **Download and install [Microsoft Visual Studio C++ build tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)**
5+
**NEW:** We now have an automated install available for this workflow (requires administrator permissions on your computer) that will perform these steps for you. To get the necessary files and see instructions for the automatic install, look [here](https://github.com/CellProfiler/CellProfiler-plugins/tree/master/Instructions/Windows_batch_file).
66

7+
1. **Download and install [Microsoft Visual Studio C++ build tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)**
8+
9+
<img src="https://user-images.githubusercontent.com/28116530/183429716-8ddfd8d7-5845-42d2-91b4-d8ed4933be60.png" width="600"/>
10+
711
**NOTE**: Make sure to check 'Desktop development with C++' under Desktop and Mobile in the installer:
812

913
<img src="images/Install_environment_instructions_windows/2022-06-02T21-05-30.png" width="600"/>
14+
15+
&nbsp;
1016

1117
2. **Download and install [Microsoft Visual C++ Redistributable 2015-2022]( https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)**
1218

@@ -16,25 +22,42 @@ Some of these download steps can take a while. The first 3 steps (as well as dow
1622

1723
<img src="images/Install_environment_instructions_windows/Control_panel.png" width=600>
1824

25+
&nbsp;
1926

20-
3. **Download and install [Java JDK 11](https://adoptopenjdk.net/)**
27+
28+
3. **Download and install [Java JDK 11](https://adoptium.net/temurin/releases/?version=11)**
29+
30+
Make sure you select the right version for your processor and operating system (see previous step). You can filter by operating system and processor Architecture.
2131

32+
<img src="https://user-images.githubusercontent.com/28116530/183430452-52aff4b2-a56d-4187-9db9-05e5711b07ac.png" width=600>
33+
2234
You can alternatively install from [oracle.com](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) if you'd like, though you will need to make an Oracle account.
35+
36+
&nbsp;
37+
2338

2439
4. **Update your Windows Environment Variables for Java**
2540

26-
Go to **Control Panel** then search for **System**, then click on **Advanced System Settings**
41+
Go to **Control Panel** then search for **System**, then click on **Advanced System Settings**. Alternatively, for some versions of Windows, you can use the search bar to search for "Environment" and "Edit the system environment variables" will come up as an option.
42+
2743
<img src="images/Install_environment_instructions_windows/Control_panel_ev.png" width="500"/>
2844

2945
From the System Properties window that pops up, select **Environment Variables...** Then add a new System variable by selecting **New...** under 'System Variables':
3046

3147
<img src="images/Install_environment_instructions_windows/2022-06-02T20-56-38.png" width="400"/>
3248

33-
Add (or if you already have it, modify) two system variables: `JAVA_HOME` and `JDK_HOME`. For each new variable, set its value to the location of your JDK installation (i.e., the location of the folder beginning with 'jdk11'). You can do this by clicking the **Browse Directory...** button. Usually this is in your 'Program Files' in a folder called 'Java'. Here is an example path:
49+
Add (or if you already have it, modify) two system variables: `JAVA_HOME` and `JDK_HOME`. For each new variable, set its value to the location of your JDK installation (i.e., the location of the folder beginning with 'jdk11'). You can do this by clicking the **Browse Directory...** button. Usually this is in your 'Program Files' in a folder called 'Java'. Here is an example path for `JAVA_HOME`:
3450

51+
<img width="500" alt="image" src="https://user-images.githubusercontent.com/28116530/183437395-1e81f6ba-366a-4f31-a23e-b05b2122552f.png">
52+
53+
Repeat the same for `JDK_HOME`:
54+
3555
<img src="images/Install_environment_instructions_windows/2022-06-02T21-00-53.png" width="500"/>
3656

3757

58+
59+
&nbsp;
60+
3861
5. **Download and install or update conda**
3962

4063
For beginners, we recommend you use Anaconda Navigator since it is more beginner-friendly, but you can also use miniconda. [Download Anaconda](https://www.anaconda.com/products/distribution) from the website and install.
@@ -43,36 +66,58 @@ Some of these download steps can take a while. The first 3 steps (as well as dow
4366

4467
`conda update --prefix /Users/USERNAME/opt/anaconda3 anaconda`
4568

69+
&nbsp;
4670

47-
6. **Download the environment file [CellProfiler_plugins_windows.yml](https://github.com/CellProfiler/CellProfiler-plugins/blob/master/Instructions/cellprofiler_plugins_windows.yml)**
48-
49-
You can download the whole repo by cloning it with git or simply clicking the green **Code** button on [the repo page](https://github.com/CellProfiler/CellProfiler-plugins.git) and selecting **Download ZIP** (see below) and then extract the ZIP folder contents. The environment file is in the `Instructions` subfolder.
71+
72+
6. **Clone the CellProfiler-plugins Repo**
5073

51-
Alternatively, you can copy and paste the contents of the .yml file into a text editor like Notepad. If you do this, make sure you save it as "CellProfiler_plugins_windows.yml" and as type "All Files" and **NOT** "Text file".
74+
Download a copy of (aka "clone") the CellProfiler-plugins repo from [here](https://github.com/CellProfiler/CellProfiler-plugins.git). You can download the whole repo by cloning it with git or simply clicking the green **Code** button on [the repo page](https://github.com/CellProfiler/CellProfiler-plugins.git) and selecting **Download ZIP** (see below).
5275

5376
<img src="images/Install_environment_instructions_windows/2022-06-02T21-39-05.png" width="500"/>
77+
78+
If you download the ZIP file, be sure to extract the file contents by selecting **Extract All** in File Explorer:
79+
80+
<img src="images/Install_environment_instructions_windows/2022-06-02T21-30-10.png" width="500"/>
81+
82+
You can also use git or GitHub Desktop to clone the repo if you prefer.
83+
84+
&nbsp;
5485

5586
7. **Create the environment from the .yml file**
5687

5788
Open Anaconda Navigator and select the **Environments** tab on the left. We recommend you create the environment from the command line. To do this, Select the play button next to your base (root) environment and select **Open Terminal**:
5889

5990
<img src="images/Install_environment_instructions_windows/2022-06-02T21-11-49.png" width="500"/>
6091

61-
In the terminal, navigate to where your environment file is located with `cd PATH_TO_FOLDER` where `PATH_TO_FOLDER` is the path to the directory containing your yml file (e.g., `C:/Users/USER/Desktop`).
62-
63-
Then in the terminal window that pops up, enter the following command:
92+
A black box should pop up with a blinking cursor. This is your terminal. You now need to navigate to where the **cellprofiler_plugins_windows.yml** file is inside of the CellProfiler-plugins folder you downloaded in the last step. This file is in the `Instructions` subfolder. Here is how we recommend you do this:
93+
94+
1) In File Explorer, open the folder you downloaded in the previous step (usually called "CellProfiler-plugins-master") and then open the **Instructions** subfolder).
95+
2) Click in the address bar area and this should highlight an address to where the folder is on your computer. **Copy this address**:
96+
97+
<img src="https://user-images.githubusercontent.com/28116530/183435503-f8f28349-50bb-4e3e-8640-713dbd138d19.png" width="500"/>
98+
99+
3) Go back to your terminal and type `cd PATH_TO_FOLDER` where `PATH_TO_FOLDER` is the address you copied in the previous step. Press Enter.
100+
101+
&nbsp;
102+
103+
Now that you're in the right place, copy and paste this command into the terminal and press Enter.
64104
```
65105
conda env create -f CellProfiler_plugins_windows.yml
66106
```
107+
&nbsp;
67108

68109
8. **Activate your environment**
69110

70-
In your terminal, enter `conda activate Cellprofiler_plugins` to activate your environment
111+
In your terminal, enter `conda activate CP_plugins` to activate your environment
112+
113+
&nbsp;
71114

72115
9. **Verify that cellprofiler is installed correctly by running it from the command line.**
73116

74117
In your terminal, type in `cellprofiler` and hit Enter. this will open CellProfiler or will give you an error message.
75118

119+
&nbsp;
120+
76121
10. **Install other packages for other plugins (just for RunStarDist)**
77122

78123
In terminal with your environment activated, enter:
@@ -84,15 +129,11 @@ Some of these download steps can take a while. The first 3 steps (as well as dow
84129
pip install omnipose
85130
```
86131
87-
11. **Clone the CellProfiler-plugins Repo**
88-
89-
If you have not already downloaded the repo, download it from [here](https://github.com/CellProfiler/CellProfiler-plugins.git). If you download the ZIP file, be sure to extract the file contents by selecting **Extract All** in File Explorer:
132+
&nbsp;
90133
91-
<img src="images/Install_environment_instructions_windows/2022-06-02T21-30-10.png" width="500"/>
92134
93-
You can also use git or GitHub Desktop to clone the repo if you prefer.
94135
95-
12. **Connect CellProfiler and the plugins repo**
136+
12. **Connect CellProfiler and the plugins folder**
96137
97138
With your environment active, type `cellprofiler` in terminal to open CellProfiler if it is not open already.
98139
@@ -110,6 +151,8 @@ Some of these download steps can take a while. The first 3 steps (as well as dow
110151
```
111152
If you don't have a GPU, this is not a problem. If you do, your configuration is incorrect and you need to try reinstalling drivers and the correct version of CUDA for your system.
112153
154+
&nbsp;
155+
113156
13. **Verify that the installation worked**
114157
115158
Add a module to your pipeline by hitting the **+** button in the pipeline panel (bottom left)
@@ -118,6 +161,8 @@ Some of these download steps can take a while. The first 3 steps (as well as dow
118161
119162
<img src="images/Install_environment_instructions_windows/2022-06-02T21-43-56.png" width="600"/>
120163
164+
&nbsp;
165+
121166
---
122167
123168
## Common errors
-3.45 MB
Binary file not shown.

0 commit comments

Comments
 (0)