Cell painting gallery data handling and validation
Getting started
Install cpgdata package
pip install cpgdata
Sync pre-generated index files
cpg index sync -o "path to save index files"
Example of using the index for filtering files to download from the Cell painting gallery
from pathlib import Path
from pprint import pprint
import polars as pl
from cpgdata.utils import download_s3_files, parallel
index_dir = Path("path to dir containing index files")
index_files = [file for file in index_dir.glob("*.parquet")]
df = pl.scan_parquet(index_files)
df = (
df
.filter(pl.col("dataset_id").eq("cpg0016-jump"))
.filter(pl.col("source_id").eq("source_4"))
.filter(pl.col("leaf_node").str.contains("Cells.csv"))
.select(pl.col("key"))
.collect()
)
# print first 10 results
pprint(df.to_dicts()[0:10])
# Download filtered files
download_keys = list(df.to_dict()["key"])
parallel(download_keys, download_s3_files, ["cellpainting-gallery", Path("path to save downloaded files")], jobs=20)
Metadata
Release files for cpgdata 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cpgdata-0.6.0.tar.gz | 11.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cpgdata-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.3 kB
Release files / cpgdata-0.6.0.tar.gz
| Download URL | cpgdata-0.6.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49b116e406b816c6c1d1020a3390bf297fa69c057e56be21c0ec7099c2dc49ab
|
|
BLAKE2b-256 checksum How to use checksums |
bb9e2a2321354e05ac62768885b01511ee3c06863d930f6fc7dc69c08ff4590a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.9 Linux/6.6.75
|
Release files / cpgdata-0.6.0-py3-none-any.whl
| Download URL | cpgdata-0.6.0-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0f495206be0794bdb700707c698e4b52e479cbb43f39b8def17ecfa2130ae68
|
|
BLAKE2b-256 checksum How to use checksums |
5f6d7387029145d70b15701d2a37903aabc100629a02facebdbf37985e52f77e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.9 Linux/6.6.75
|
Security for cpgdata 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.