Skip to main content

A tool to download specified image data from the Human Protein Atlas website using CSV file or to copy data from CM4AI dataset

Project description

Cell Maps ImmunoFluorescent Image Downloader

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

https://img.shields.io/pypi/v/cellmaps_imagedownloader.svg https://app.travis-ci.com/idekerlab/cellmaps_imagedownloader.svg?branch=main Documentation Status Zenodo DOI badge

Downloads ImmunoFluorescent image data from Human Protein Atlas

Dependencies

Compatibility

  • Python 3.8+

Installation

pip install cellmaps_imagedownloader

Or directly from source:

git clone https://github.com/idekerlab/cellmaps_imagedownloader
cd cellmaps_imagedownloader
make dist
pip install dist/cellmaps_imagedownloader*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.

Needed files

  • samples file: CSV file with list of IF images to download (see sample samples file in examples folder)

  • unique file: CSV file of unique samples (see sample unique file in examples folder)

  • provenance: file containing provenance information about input files in JSON format (see sample provenance file in examples folder)

Usage

For information invoke cellmaps_imagedownloadercmd.py -h

Example usage

cellmaps_imagedownloadercmd.py ./cellmaps_imagedownloader_outdir  --samples examples/samples.csv --unique examples/unique.csv --provenance examples/provenance.json

Via Docker

Example usage

Coming soon...

Credits

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

History

0.2.1 (2025-03-18)

  • Add version bounds for required packages.

0.2.0 (2024-11-22)

  • Added –protein_list and –cell_line flags that will fetch images from HPA for specific proteins and/or cell line.

  • Bug fixes in fairscape registration.

0.1.1 (2024-08-26)

  • Bug fix in adding gene node attributes. The bug was resulting in duplicate entries and missing gene names, related to ambiguous antibodies.

0.1.0 (2024-01-01)

  • First release on PyPI.

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

cellmaps_imagedownloader-0.2.1.tar.gz (116.7 kB view details)

Uploaded Source

Built Distribution

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

cellmaps_imagedownloader-0.2.1-py2.py3-none-any.whl (33.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cellmaps_imagedownloader-0.2.1.tar.gz.

File metadata

  • Download URL: cellmaps_imagedownloader-0.2.1.tar.gz
  • Upload date:
  • Size: 116.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for cellmaps_imagedownloader-0.2.1.tar.gz
Algorithm Hash digest
SHA256 17100dd6347ff25d9c977ba15bef3b6a68b6610719744447179bba26e746af24
MD5 9ff8283a339f34beb3325f043274defa
BLAKE2b-256 165c486bcf19f9e750ff9507e9090abbf589f1b51584ae4e0fcdb395ca4a45cd

See more details on using hashes here.

File details

Details for the file cellmaps_imagedownloader-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cellmaps_imagedownloader-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f48a6ecb7a5892b11f6dae0d6ad35d732858445699ddd1e2dffa181e040bfcf7
MD5 b90d773dad3fde46fb0d37464b068f60
BLAKE2b-256 873429e157892a16cf7fd3d106f388ad8aadc2a11e69410488950909d2dfbb05

See more details on using hashes here.

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