feat: Add import/export commands and API#170
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
uermel
pushed a commit
that referenced
this pull request
Feb 13, 2026
🤖 I have created a release *beep* *boop* --- ## [1.20.0](copick-v1.19.0...copick-v1.20.0) (2026-02-13) ### ✨ Features * Add import/export commands and API ([#170](#170)) ([eaa2ec6](eaa2ec6)) ### 🐞 Bug Fixes * bump cryptography from 45.0.4 to 46.0.5 ([#195](#195)) ([5311cc3](5311cc3)) * bump pillow from 11.3.0 to 12.1.1 ([#196](#196)) ([0ca3441](0ca3441)) * Fix tests badge in readme. ([#198](#198)) ([4f12036](4f12036)) --- Merging this PR will release copick on PyPI. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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
This PR adds comprehensive import/export functionality for picks, tomograms, and segmentations, enabling interoperability with common cryo-ET software packages including RELION, Dynamo, and TOM/Artiatomi toolbox.
New Features
CLI Commands
Import Commands (
copick add)copick add picks: Import particle picks from external formats--tomolistor--index-mapfor mapping tomogram indices to run namescopick add tomogram: Import tomograms from external formats--tomolistfor Dynamo-style tomogram listscopick add segmentation: Import segmentations from external formatsExport Commands (
copick export)copick export picks: Export particle picks to external formats"ribosome:user1/*")copick export tomogram: Export tomograms to external formatscopick export segmentation: Export segmentations to external formatsFunctional API
New modules provide programmatic access to all import/export functionality:
copick.ops.add: Functions for importing picks, tomograms, and segmentationscopick.ops.export: Functions for exporting picks, tomograms, and segmentationscopick.util.formats: Format-specific I/O utilities and coordinate transformationscopick.util.handlers: Format handlers with capability detection for extensible format supportSupported Format Conventions
Batch Import Features