Skip to main content

Extract metadata from microscopy images and provide mosaic information in feabas-ready format.

Project description

stitchmeta

License: MIT Build Documentation Status codecov PyPI Python

Extract metadata from microscopy image tiles and write FEABAS-compatible coordinate files for stitching pipelines.

Installing stitchmeta

The preferred way of installing stitchmeta is using pip.

Installing the release version using pip

stitchmeta can be installed using pip to obtain the current release:

python -m pip install stitchmeta

Installation from source

Clone this repository and install from the local source tree:

git clone https://github.com/thomasisensee/stitchmeta.git
cd stitchmeta
python -m pip install .

Development installation

For development, it is recommended to use an editable install:

python -m pip install --editable .[tests]

Having done so, the test suite can be run using pytest:

python -m pytest

Quick start

Expected input layout:

dataset_root/
  001/
    tile_a.tif
    tile_b.tif
  002/
    ...

Run extraction:

stitchmeta extract \
  -i dataset_root \
  -o feabas_coords

The command writes one FEABAS text file per section (001.txt, 002.txt, ...).

Python API

from stitchmeta import extract

summary = extract(
    input_root="dataset_root",
    output_dir="feabas_coords",
    reader_name="fibics_tiff",
    invert_y=True,
    error_policy="partial",
)

Extending to other datasets

Register a new reader class implementing the TileReader interface and use it through reader_name in the API or CLI.

Acknowledgments

This repository was set up using the SSC Cookiecutter for Python Packages.

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

stitchmeta-0.1.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

stitchmeta-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file stitchmeta-0.1.0.tar.gz.

File metadata

  • Download URL: stitchmeta-0.1.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stitchmeta-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eadd61ad1c2f188f14c656eca7bfdc38a2e27e64899ac2c4cf3123ab0337fb54
MD5 e30563ae88074281c8e38e6ad443958a
BLAKE2b-256 c161a6ed41db9f36e49e3f5982780bd7861cf6e702996049fb3c54a784f9e9be

See more details on using hashes here.

Provenance

The following attestation bundles were made for stitchmeta-0.1.0.tar.gz:

Publisher: release.yml on thomasisensee/stitchmeta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stitchmeta-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stitchmeta-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stitchmeta-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 492cb49e9e55af29581da106145a546557a5efe7a178d47af84c7cc1d4f1d4d1
MD5 6b3ee535c9f3a73438603ef415f7c542
BLAKE2b-256 2c0e3933c1a451e9dfc41281489540b027873110466c2de71a34f81c6539fbe4

See more details on using hashes here.

Provenance

The following attestation bundles were made for stitchmeta-0.1.0-py3-none-any.whl:

Publisher: release.yml on thomasisensee/stitchmeta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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