Skip to main content

Alpineer

CI / CD CI Coverage Status
Package PyPI - Version PyPI - Downloads PyPI - Python Version
Meta code style - Black types - Mypy PyPI - License

Toolbox for Multiplexed Imaging. Contains scripts and little tools which are used throughout ark-analysis, mibi-bin-tools, and toffy

Requirements

  • Python Poetry
    • Recommeded to install it with either:
      • Official Installer:
        curl -sSL https://install.python-poetry.org | python3 -
        
      • pipx, (requires pipx)
        • If you are using pipx, run the following installation commands
          brew install pipx
          pipx ensurepath
          
  • pre-commit
    brew isntall pre-commit
    

Setup

  1. Clone the repo: git clone https://github.com/angelolab/alpineer.git

  2. cd into alpineer.

  3. Install the pre-commit hooks with pre-commit install

  4. Set up python-poetry for alpineer

    1. Run poetry install to install alpineer into your virtual environment. (Poetry utilizes Python's Virtual Environments)
    2. Run poetry install --with test: Installs all the dependencies needed for tests (labeled under tool.poetry.group.test.dependencies)
    3. Run poetry install --with dev: Installs all the dependencies needed for development (labeled under tool.poetry.group.dev.dependencies)
    4. You may combine these as well with poetry install --with dev,test. Installing the base dependencies and the two optional groups.
  5. In order to test to see if Poetry is working properly, run poetry show --tree. This will output the dependency tree for the base dependencies (labeled under tool.poetry.dependencies).

    Sample Output:

    matplotlib 3.6.1 Python plotting package
    ├── contourpy >=1.0.1
    │   └── numpy >=1.16
    ├── cycler >=0.10
    ├── fonttools >=4.22.0
    ├── kiwisolver >=1.0.1
    ├── numpy >=1.19
    ├── packaging >=20.0
    │   └── pyparsing >=2.0.2,<3.0.5 || >3.0.5
    ├── pillow >=6.2.0
    ├── pyparsing >=2.2.1
    ├── python-dateutil >=2.7
    │   └── six >=1.5
    └── setuptools-scm >=7
        ├── packaging >=20.0
        │   └── pyparsing >=2.0.2,<3.0.5 || >3.0.5
        ├── setuptools *
        ├── tomli >=1.0.0
        └── typing-extensions *
    natsort 8.2.0 Simple yet flexible natural sorting in Python.
    numpy 1.23.4 NumPy is the fundamental package for array computing with Python.
    pillow 9.1.1 Python Imaging Library (Fork)
    pip 22.3 The PyPA recommended tool for installing Python packages.
    tifffile 2022.10.10 Read and write TIFF files
    └── numpy >=1.19.2
    

Development Notes

  1. I'd highly suggest refering to Poetry's extensive documentation on installing packages, updating packages and more.
  2. Tests can be ran with poetry run pytest. No additional arguments needed, they are all stored in the pyproject.toml file.
    1. As an aside, if you need to execute code in the poetry venv, use prefix your command with poetry run

Updating

  • In order to update alpineer's dependencies we can run:
    • poetry update: for all dependencies
    • poetry update <package>: where <package> can be something like numpy.
  • To update Poetry itself, run poetry self update.

Questions?

Feel free to open an issue on our GitHub page

Metadata

Release files for alpineer 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alpineer 0.2.1
File Size Uploaded
alpineer-0.2.1.tar.gz 22.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alpineer 0.2.1
File Interpreter ABI Platform
alpineer-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 45.5 kB

Release files / alpineer-0.2.1.tar.gz

Download URL alpineer-0.2.1.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
11a57203e73a4b57d5362f8ca7313916333906f24efa3ce88733ebba30988ae8
BLAKE2b-256 checksum
How to use checksums
768cd21c6254dc755255af145fa1ad90e83f737ba366ddab108e7a4659befbf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / alpineer-0.2.1-py3-none-any.whl

Download URL alpineer-0.2.1-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78636b10db0ffe30dfae90b4b4d055b005fb6b3482d47498ce56574a12698128
BLAKE2b-256 checksum
How to use checksums
d7610c152a801485c62d8ef22f36cfe5671ee91eedfc2f3d836ad60c94f386a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.1.13

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page