Skip to main content

Cell Maps ImmunoFluorescent Image Embedder

The Cell Maps Image Embedder is part of the Cell Mapping Toolkit

a b Documentation Status Zenodo DOI badge

Generate embeddings from ImmunoFluorescent image data from Human Protein Atlas

Dependencies

Compatibility

  • Python 3.8+

Installation

git clone https://github.com/idekerlab/cellmaps_image_embedding
cd cellmaps_image_embedding
make dist
pip install dist/cellmaps_image_embedding*whl

Run make command with no arguments to see other build/deploy options including creation of Docker image

make

Output:

clean                remove all build, test, coverage and Python artifacts
clean-build          remove build artifacts
clean-pyc            remove Python file artifacts
clean-test           remove test and coverage artifacts
lint                 check style with flake8
test                 run tests quickly with the default Python
test-all             run tests on every Python version with tox
coverage             check code coverage quickly with the default Python
docs                 generate Sphinx HTML documentation, including API docs
servedocs            compile the docs watching for changes
testrelease          package and upload a TEST release
release              package and upload a release
dist                 builds source and wheel package
install              install the package to the active Python's site-packages
dockerbuild          build docker image and store in local repository
dockerpush           push image to dockerhub

Before running tests, please install: pip install -r requirements_dev.txt.

For developers

To deploy development versions of this package

Below are steps to make changes to this code base, deploy, and then run against those changes.

  1. Make changes

    Modify code in this repo as desired

  2. Build and deploy

# From base directory of this repo cellmaps_image_embedding
pip uninstall cellmaps_image_embedding -y ; make clean dist; pip install dist/cellmaps_image_embedding*whl

Needed files

The output directory for the image downloads is required (see Cell Maps Image Downloader). Optionally, a path to the image embedding model can be provided.

Usage

For information invoke cellmaps_image_embeddingcmd.py -h

Example usage

cellmaps_image_embeddingcmd.py ./cellmaps_image_embedding_outdir --inputdir ./cellmaps_imagedownloader_outdir

Via Docker

Example usage

Coming soon...

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.3.1 (2025-03-18)

  • Add version bounds for required packages.

  • Bug fix for change in pytorch 2.6.

0.3.0 (2024-12-02)

  • Added README generation.

  • Refactor code.

0.2.1 (2024-09-06)

  • Bug fix in --inputdir argument.

0.2.0 (2024-08-29)

  • Added --provenance flag to pass a path to json file with provenance information. This removes the necessity of input directory to be an RO-Crate.

  • Bug fixes
    • Resolved an issue in embedding generation process where images associated with multiple genes were not correctly handled (ambiguous antibodies).

0.1.0 (2024-02-01)

  • First release on PyPI.

Metadata

Release files for cellmaps-image-embedding 0.3.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 cellmaps-image-embedding 0.3.1
File Size Uploaded
cellmaps_image_embedding-0.3.1.tar.gz 36.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cellmaps-image-embedding 0.3.1
File Interpreter ABI Platform
cellmaps_image_embedding-0.3.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 59.1 kB

Release files / cellmaps_image_embedding-0.3.1.tar.gz

Download URL cellmaps_image_embedding-0.3.1.tar.gz
Size 36.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d7e3208c34ca71151bacd2db15e56514cd399012802a70cb87555a19fa6d4f3d
BLAKE2b-256 checksum
How to use checksums
6b2dcf06a091123ac0e944743dc6b9e044c6677c6f3bc0b6a228545c59346852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / cellmaps_image_embedding-0.3.1-py2.py3-none-any.whl

Download URL cellmaps_image_embedding-0.3.1-py2.py3-none-any.whl
Size 22.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5737a7d489bb458d39ffb48ea5118893971635efa8b93f8a3432aecbdad7d124
BLAKE2b-256 checksum
How to use checksums
ba8972733e95875e62d96b3fa7a86dff74ff3fafd98c6f1dd906bca452753ed7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11
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