Skip to main content

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:

  1. First, create a folder where the venv will be stored:

    mkdir ~/env_directory
    
  2. Create the venv:

    python3 -m venv ~/env_directory/towbintools
    
  3. To activate the venv:

    source ~/env_directory/towbintools/bin/activate
    
  4. Whenever you are done working, you can deactivate it with:

    deactivate
    

How to add a python venv to Jupyter

  1. First, make sure Jupyter and related packages are installed:

    pip3 install jupyter ipykernel
    
  2. Add your venv to Jupyter:

    python3 -m ipykernel install --user --name=towbintools
    
  3. 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

  1. First, make sure build is installed:

    pip3 install build
    
  2. Go to the package directory, eg:

    cd ~/towbintools
    
  3. Build the package:

    python3 -m build
    
  4. Install the package you just built:

    pip3 install dist/*.whl
    

You're now all set!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

towbintools-0.2.8.tar.gz (58.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

towbintools-0.2.8-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

Details for the file towbintools-0.2.8.tar.gz.

File metadata

  • Download URL: towbintools-0.2.8.tar.gz
  • Upload date:
  • Size: 58.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for towbintools-0.2.8.tar.gz
Algorithm Hash digest
SHA256 6d5ee6eb3d521e22cfb558617a61c2f3fa258d8281e271a3f3f2d0909ca5457a
MD5 988332d64d5f90a08459e368e5eb65b7
BLAKE2b-256 bfcfc9f2745a6f501054e3ca15e6025b182deba56a33d9744104aee9ea2a20b7

See more details on using hashes here.

File details

Details for the file towbintools-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: towbintools-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 67.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for towbintools-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 63c4dbf6da88b4f80a5ae7797d3c4d3fe6edca6e263de36dda71c4ab3199915f
MD5 5ef31fdd0a19fafb1aa48a353010ec34
BLAKE2b-256 7161ccd114c1f6ac4a827eb9d571e4ddae3d9cb296cbae7a5bf908cec920de59

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page