Skip to main content

jump-image-datasets

Tests PyPI version Publish to PyPI

jump-image-datasets provides packaged JUMP pilot metadata and utilities for downloading image files from metadata tables.

Install

Install from PyPI

pip install jump-image-datasets

Install from PyPI for stable, versioned releases.

Local development with uv

uv venv
uv sync --group test

Editable install

uv pip install -e .

Install from the GitHub repo with pip

pip install "git+https://github.com/WayScience/jump_image_data_downloader.git"

Install from GitHub if you want the latest unreleased changes.

Usage

from jump_image_datasets.jump_pilot import image_downloader, image_metadata

# Load packaged metadata parquet as a DataFrame.
metadata_df = image_metadata.load_metadata()

# Download a small subset.
summary = image_downloader.download_images_with_metadata(
    df=metadata_df.head(10),
    url_column="Metadata_FileUrl",
    default_output_dir="downloaded_jump_pilot_images",
    parallel=True,
    workers=8,
)
print(summary)
from jump_image_datasets.cpg0016 import CPG0016LoadDataWithIllumDownloader

downloader = CPG0016LoadDataWithIllumDownloader(
    csv_download_dir="downloaded_cpg0016_csvs",
)

metadata_df = downloader.get_dataframe()

filtered_df = metadata_df.iloc[:10].copy()
filtered_df["OutputDir"] = (
    filtered_df["Metadata_Plate"].astype(str).radd("downloaded_cpg0016_images/")
)

downloader.download_illumination_files(
    dataframe=filtered_df,
    output_dir_column="OutputDir",
)

downloader.download_files_from_column(
    dataframe=filtered_df,
    column_name="URL_OrigDNA",
    output_dir_column="OutputDir",
)

For a full runnable example, see docs/download_images_examples.ipynb and docs/download_cpg0016_examples.ipynb.

Packaged metadata provenance

This repository ships a packaged metadata table at:

  • src/jump_image_datasets/jump_pilot/data/2020_11_04_CPJUMP1_all_plates.parquet

Why this file exists

The file is included so users can immediately load a stable JUMP pilot metadata table (via jump_image_datasets.jump_pilot.image_metadata) without requiring a separate data-fetch or preprocessing step.

How it was created

This parquet was generated from the JUMP Cell Painting Gallery using:

Upstream source pattern used by that notebook:

  • s3://cellpainting-gallery/cpg0000-jump-pilot/source_4/workspace/load_data_csv/2020_11_04_CPJUMP1/*/load_data.csv

Transform summary

The generation workflow in 2.download_image_metadata.ipynb:

  • Lists all per-plate load_data.csv files for run 2020_11_04_CPJUMP1 (51 files in the captured run) from public S3 (anon=True).
  • Reads each plate CSV, appends provenance columns:
    • source_plate (plate ID parsed from path)
    • source_s3_path (full S3 CSV path)
  • Concatenates all plate tables into one DataFrame.
  • Reshapes channel URL columns from wide to long using melt:
    • URL columns become Metadata_ChannelURLName
    • URL values become Metadata_FileUrl
  • Adds normalized channel/stain annotations by mapping URL column names:
    • Metadata_ChannelName: ER, AGP, Mito, DNA, RNA, BF, HZ_BF, LZ_BF
    • Metadata_StainName: corresponding stain labels (or NA for brightfield channels)
  • Derives Metadata_Filename from the final path component of Metadata_FileUrl.
  • Writes parquet with index=False as data/2020_11_04_CPJUMP1_all_plates.parquet (captured shape: (1495400, 32)).

Download files

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

Source Distribution

jump_image_datasets-0.2.0.tar.gz (14.4 MB view details)

Uploaded Source

Built Distribution

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

jump_image_datasets-0.2.0-py3-none-any.whl (14.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jump_image_datasets-0.2.0.tar.gz
  • Upload date:
  • Size: 14.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for jump_image_datasets-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ac02fca22524db2f961e6f00b44e26ff7e205cee696a1e4e17de7498d797bd4a
MD5 c630096d9164944e28b4faf2f95193bd
BLAKE2b-256 ce9459f686f1882f1ee66c4fb5d90123852593e1cb56aec610d8ece6f34f908f

See more details on using hashes here.

Provenance

The following attestation bundles were made for jump_image_datasets-0.2.0.tar.gz:

Publisher: publish.yml on WayScience/jump_image_data_downloader

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

File details

Details for the file jump_image_datasets-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jump_image_datasets-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0a0d10e6a065b127915a103f237a72cbc4224997031b45ecb9d2608be36a968
MD5 7d676197c1c19ce16436da5ccf59d7d7
BLAKE2b-256 d94f0d6d7962af2f83c5d79e01b55fe719a46f3fb7a3397d5cb8e303e0cf7cc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for jump_image_datasets-0.2.0-py3-none-any.whl:

Publisher: publish.yml on WayScience/jump_image_data_downloader

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 Sentry Error logging StatusPage Status page