Skip to content

Installation

PGAlign targets Python ≥ 3.9.

From PyPI

pip install pgalign

From source

git clone https://github.com/StaGill/PGAlign.git
cd PGAlign
pip install -e .

The installed package's importable name is pgalign:

import pgalign as pg
print(pg.__version__)

Dependencies

PGAlign depends on the standard scientific-Python stack plus scanpy / anndata for MALDI data containers:

  • numpy >= 1.20
  • scipy >= 1.7
  • pandas >= 1.3
  • scanpy >= 1.9.2
  • anndata >= 0.8
  • tqdm

Reading imzML files with pg.read_imzml needs one optional package, pyimzML >= 1.5, installed with the imzml extra:

pip install -e ".[imzml]"

For development (running the test suite):

pip install -e ".[test,imzml]"
pytest -q

Building the docs locally

The documentation site is built with MkDocs Material and mkdocstrings:

pip install mkdocs-material mkdocstrings[python]
mkdocs serve

Then open http://127.0.0.1:8000.