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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c1739cf7adb427d55f05b526ab7a4ffb42b6f6baae5003bdd847fcabb0a623d |
|
MD5 | f4760b5e04087624d1e2c30d81b9a1df |
|
BLAKE2b-256 | 78a89a2dc5a64252f149dafc03fa139f3dd06c0982cc6f33532bb293fba6e644 |