A software to identify the presence of cell surface markers based on nuclear signal.
This repository was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
If you do not have python installed already, we recommend installing it using the
Anaconda distribution. Installing nuclai
takes ~5 min and
was tested with python 3.12.7
.
If you do not use and IDE that handles virtual environments
for you (e.g. PyCharm) use your command line application (e.g. Terminal
) and
one of the many virtual environment tools (see here). We will
use conda
-
Create new virtual environment
conda create -n nuclai python=3.12.7
-
Activate virtual environment
conda activate nuclai
Recommended if you do not want to develop the nuclai
code base.
-
Install
nuclai
# update pip pip install -U pip==23.2.1 pip install nuclai
-
(Optional)
GPUs
greatly speed up training and inference ofnuclai
and are available forWindows
andLinux
. Check if yourGPU(s)
are CUDA compatible (Windows
,Linux
) and update their drivers if necessary. -
Install
torch
/torchvision
compatible with your system.nuclai
was tested withtorch
version2.4.1
,torchvision
version0.19.1
, andcuda
version12.1.1
. Depending on your OS, yourCPU
orGPU
(andCUDA
version) the installation may change
# Windows/Linux CPU
pip install torch==2.4.1 torchvision==0.19.1 --index-url https://download.pytorch.org/whl/cpu
# Windows/Linux GPU (CUDA 11.3.X)
pip install torch==2.4.1 torchvision==0.19.1 --index-url https://download.pytorch.org/whl/cu121
# macOS CPU
pip install torch==2.4.1 torchvision==0.19.1
- Install
lightning
.nuclai
was tested with version2.4.0
.
pip install lightning==2.4.0
Installation requires a command line application (e.g. Terminal
) with
git
and python installed.
If you operate on Windows
we recommend using
Ubuntu on Windows
.
Alternatively, you can install Anaconda
and
use Anaconda Powershell Prompt
. An introductory tutorial on how to use git
and GitHub can be found
here.
-
(Optional) If you use
Anaconda Powershell Prompt
, installgit
throughconda
conda install -c anaconda git
-
clone the repository (consider
ssh
alternative)# change directory cd /path/to/directory/to/clone/repository/to git clone https://github.com/dsethz/nuclai.git
-
Navigate to the cloned directory
cd nuclai
-
Install
nuclai
# update pip pip install -U pip
-
as a user
pip install .
-
as a developer (in editable mode with development dependencies and pre-commit hooks)
pip install -e ".[testing]" pre-commit install
-
-
(Optional)
GPUs
greatly speed up training and inference ofnuclai
and are available forWindows
andLinux
. Check if yourGPU(s)
are CUDA compatible (Windows
,Linux
) and update their drivers if necessary. -
Install
torch
/torchvision
compatible with your system.nuclai
was tested withtorch
version2.4.1
,torchvision
version0.19.1
, andcuda
version12.1.1
. Depending on your OS, yourCPU
orGPU
(andCUDA
version) the installation may change
# Windows/Linux CPU
pip install torch==2.4.1 torchvision==0.19.1 --index-url https://download.pytorch.org/whl/cpu
# Windows/Linux GPU (CUDA 11.3.X)
pip install torch==2.4.1 torchvision==0.19.1 --index-url https://download.pytorch.org/whl/cu121
# macOS CPU
pip install torch==2.4.1 torchvision==0.19.1
- Install
lightning
.nuclai
was tested with version2.4.0
.
pip install lightning==2.4.0
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
Distributed under the terms of the BSD-3 license, "nuclai" is free and open source software
If you encounter any problems, please file an issue along with a detailed description.