Skip to main content

Cell Maps ImmunoFluorescent Image Embedder

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.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.

Download files

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

Source Distribution

cellmaps_image_embedding-0.2.0.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

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

cellmaps_image_embedding-0.2.0-py2.py3-none-any.whl (20.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cellmaps_image_embedding-0.2.0.tar.gz.

File metadata

  • Download URL: cellmaps_image_embedding-0.2.0.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for cellmaps_image_embedding-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a02221e7bd82c67d4f3537d53d9d3b859ff140c31f7c66f27ee27e500ee92848
MD5 abac59e0f74a997826216f2a04203d49
BLAKE2b-256 1e4566b03632c83db146ae5cb5e5afd3f072b914a1cdcfe2efa47161bf286489

See more details on using hashes here.

File details

Details for the file cellmaps_image_embedding-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cellmaps_image_embedding-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 686819a4f8e9eb23908421004ba2da97aba33c9dd965dfae91c45380baf412a3
MD5 113b28fe82a58202782c93b606a0b579
BLAKE2b-256 982ac48afc830088e8c4ae59382d14a29fdf683c261c3572eba0c775a200d556

See more details on using hashes here.

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