All the tools used by the Towbin Lab !
Project description
towbintools!
This is the package containing all the important functions used by the Towbin Lab of the University of Bern. Most of the code is a python translation of our old Matlab pipeline.
Documentation : https://towbintools.readthedocs.io/en/latest/towbintools.html
Deep learning
This package uses the pretrained-microscopy-models package (available here : https://github.com/nasa/pretrained-microscopy-models/tree/main) which is not available as a pip dependency. If you want to use the deep learning part, you will have to install it using:
pip install git+https://github.com/nasa/pretrained-microscopy-models
Setting up a Virtual Environment
Using a virtual environment isolates your package dependencies and settings from your system Python. Here's how you can set one up:
-
First, create a folder where the venv will be stored:
mkdir ~/env_directory
-
Create the venv:
python3 -m venv ~/env_directory/towbintools
-
To activate the venv:
source ~/env_directory/towbintools/bin/activate
-
Whenever you are done working, you can deactivate it with:
deactivate
How to add a python venv to Jupyter
-
First, make sure Jupyter and related packages are installed:
pip3 install jupyter ipykernel
-
Add your venv to Jupyter:
python3 -m ipykernel install --user --name=towbintools
-
If you're using VSCode, reload VSCode and you should be able to find the kernel.
Install the package using pip
Simply run the following command:
pip3 install towbintools
Build the package and install it
-
First, make sure build is installed:
pip3 install build
-
Go to the package directory, eg:
cd ~/towbintools
-
Build the package:
python3 -m build
-
Install the package you just built:
pip3 install dist/*.whl
You're now all set!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for towbintools-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd825f8309df53342542c0bac3a6553f44dee7e095a4dce4aa4fb727fc47690 |
|
MD5 | 144632f735e0ed22d79af1a45bfbc2a9 |
|
BLAKE2b-256 | b039751e26acc2aad3f93b50752e20ca732182d95515e2322efb5e968285285d |