Skip to main content

mievformer

mievformer is a Python package for learning cellular microenvironments from spatial transcriptomics. Its standard workflow uses reference-probability correspondence analysis (CA) for niche clustering and UMAP, with sample-conditional CA for joint analysis of multiple spatial slices.

Installation

pip install mievformer

Documentation

For detailed usage instructions, tutorials, and API reference, please visit the documentation:

https://kojikoji.github.io/mievformer_package/index.html

Quick start

import mievformer as mf

# Single slice: ordinary reference-probability CA.
adata = mf.optimize_nicheformer(adata, model_path="model.pth")

# Multiple slices: batch-conditioned training and sample-conditional CA.
adata = mf.optimize_nicheformer(
    adata,
    model_path="multibatch_model.pth",
    batch_key="sample",
)

License

MIT License

Download files

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

Source Distribution

mievformer-0.3.0.tar.gz (56.2 kB view details)

Uploaded Source

Built Distribution

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

mievformer-0.3.0-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

Details for the file mievformer-0.3.0.tar.gz.

File metadata

  • Download URL: mievformer-0.3.0.tar.gz
  • Upload date:
  • Size: 56.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mievformer-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fb20f90401b1ca3ae7296e75758eb1a8b9c60e48d1d423669087dc2b884aef36
MD5 356506d820493a83aef45c317f4047b7
BLAKE2b-256 09a2fb567fa018a237672b5ab83f120e3cd2b9989fc303145c7286e2db4be1a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mievformer-0.3.0.tar.gz:

Publisher: publish.yml on kojikoji/mievformer_package

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

File details

Details for the file mievformer-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mievformer-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 56.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mievformer-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1ec31a2d0a64f9eb129bf742fbc8b80fc6a37fc863d95a3d815c5e0a5d7e419
MD5 943dd10e729a7966043e1d2fb76dca11
BLAKE2b-256 233ef0636b4bc6d4efa34462541edf2b9e83126511da49968c69e29746301cfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mievformer-0.3.0-py3-none-any.whl:

Publisher: publish.yml on kojikoji/mievformer_package

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 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