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
File details
Details for the file towbintools-0.2.4.tar.gz
.
File metadata
- Download URL: towbintools-0.2.4.tar.gz
- Upload date:
- Size: 53.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caa97f207e36996046997eb681bb50be8095c7ca56a201ac1238eeb1ae9945dc |
|
MD5 | 5a606427f582206c2f62584fe4944910 |
|
BLAKE2b-256 | eb2260fc92d039eb8b2e1dc0fe9a162dc718e6ab616fe0c6abde1b6de7ea5668 |
File details
Details for the file towbintools-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: towbintools-0.2.4-py3-none-any.whl
- Upload date:
- Size: 61.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f5c987e39514d5eec7db533ce690ed1f2808d511b95c53f53c5e531458f05bc |
|
MD5 | ee339edef6d7b8009585425931ecd2ed |
|
BLAKE2b-256 | 7ede04febc5a8767174771b556a11c059c54947be5117dd0b047eb231890bfe2 |