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.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4baf1d3d016cf453d6f6e6bfcbad6af55159e7c1f3f3b7f2ebcd2f20e63d509 |
|
MD5 | ab477e14ac9df8a3e3e70734d99214cf |
|
BLAKE2b-256 | 992747ff9df665f4d5204f1be3225a24e4e3f1ff63d1a4299e7aec8cd64a8c78 |