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
clone the repo by opening a terminal and typing git clone https://github.com/nobias-fht/organoid-cell-spots
Enter the folder that is made by typing cd organoid-cell-spots
Make a conda environment from the enviroment file by typing conda create -f env.yaml
For HPC, you will need to downgrade the version of pytorch by typing pip3 install --upgrade torch torchvision --index-url https://download.pytorch.org/whl/cu128
Step 1: Cell Segmentation
Activate the conda enviroment by typing conda activate nobias
Update the config.yaml file, changing the number of channels, the position of the DAPI channel (these are 1-indexed, ie the first channel is channel 1, NOT channel 0), and the paths of the input and output folders
run the segmetation pipeline by typing python hpc_segment.py. NOTE that this will run it locally. On a machine without a GPU, it is highly recommended that you submit a job to the HPC using slurm
Step 2: Quantification
If not already activated, activate the conda environment by typing conda activate nobias
Launch the interatcive viewer by typing python viewer.py
Open an image by clicking the Open Single Image button and selecting the output folder of a single image from the previous step
Select a channel from the dropdown
Test various thresholding mechanisms and multipliers by changing the dropdown and the Threshold Scaling Factor setting and then pressing Threshold Image Using Method
Once you have tested and are happy with a method and threshold on several representative test images, press Threshold Folder (Batch) and select the output folder from step 1.
This will apply the selected segmentation method and scaling factor to each image in the output folder, and generate the output images and csv files.