feat(pineapple): add gget pineapple module (#161)#245
Draft
Elarwei001 wants to merge 2 commits into
Draft
Conversation
…data (scverse#161) New module `gget pineapple` lists and downloads the curated bio-imaging datasets (segmentation/benchmark) and pre-trained model weights distributed by Pineapple (https://github.com/tomouellette/pineapple, suggested by Prof. Anne Carpenter). The catalog (names, authors, sizes, licenses, Google Drive IDs) is mirrored from pineapple's pineapple-data crate; resources are downloaded directly from their Google Drive host (with the large-file virus-scan-warning bypass), so no Rust binary is required. Exposed via the Python API and the command line. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
for more information, see https://pre-commit.ci
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #245 +/- ##
==========================================
+ Coverage 56.14% 56.54% +0.40%
==========================================
Files 29 30 +1
Lines 9244 9330 +86
==========================================
+ Hits 5190 5276 +86
Misses 4054 4054 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
gget pineapplemodule to list and download curated bio-imaging data from Pineapple.A point worth being explicit about: Pineapple is a Rust command-line tool for image-based cell profiling — it does not expose a REST/JSON API. What it does provide (via its
pineapple downloadcommand) is a curated, standardized catalog of bio-imaging datasets and pre-trained model weights, hosted on Google Drive (each resource maps to a hardcoded Google Drive file ID in thepineapple-datacrate). This module mirrors that catalog and downloads the resources directly from the same Google Drive host, so users get the data without installing the Rust binary.What it does
segmentation(12 datasets),benchmark(13 datasets), orweights(5 pre-trained model weights). Returns names, authors, sizes (GB), licenses, filenames, and Google Drive IDs.gget.pineapple(...)) and the command line (gget pineapple ...).The catalog includes each dataset's original author and license so users can check usage terms (some datasets are non-commercial only).
Testing
tests/test_pineapple.py, mocked downloads) covering catalog contents/columns, filename conventions, Google Drive virus-scan-warning form parsing, and download routing. No real downloads happen in tests.application/octet-stream,Content-Disposition: attachment; filename="arvidsson-2022.tar.gz"), matching the module's filename convention.docs/src/en/pineapple.md+ SUMMARY entry) and anupdates.mdbullet under Version ≥ 0.30.8.Because Pineapple hardcodes its dataset Google Drive file IDs in its own source (the upstream author notes this isn't ideal and may move them out of the library later), this module's catalog is a point-in-time mirror of those IDs. If upstream Pineapple adds/changes datasets, gget's catalog would need a corresponding refresh. I went with mirroring because there is no programmatic API to query — flagging this wrapper approach for your input in case you'd prefer a different strategy (e.g. fetching the registry from a maintained upstream manifest if/when one exists).
Resolves #161