Definitions for a collaborative cryoET annotation tool.
Project description
copick
copick is a cross-platform, storage-agnostic and server-less dataset API for cryoET datasets. Access to the data is provided through an object-oriented API that abstracts away the underlying storage using the fsspec-family of libraries.
Why copick?
- storage-agnostic: Access data on local or shared filesystems, via SSH or on the cloud with the same API. No need for your own boilerplate!
- cloud-ready: Access image data quickly and in parallel thanks to multiscale OME-Zarr!
- server-less: No need for a dedicated server or database to access your data, just point copick to your data and go!
- cross-platform: copick works on any platform that supports Python. Compute on Linux, visualize on Windows or Mac, all with the same dataset API!
- ecosystem: Using the copick API allows visualizing and curating data in ChimeraX and Napari right away!
Documentation
For more information, see the documentation.
Installation
copick can be installed using pip. Using the all
extra installs necessary requirements for all tested filesystem
implementations from the fsspec family (local
, s3fs
, smb
, sshfs
). Separate s3
, smb
, and ssh
extras are available.
pip install "copick[all]"
Example dataset
An example dataset can be obtained from Zenodo.
To test with the example dataset:
-
Download and unpack the example dataset
-
Add the location of the
sample_project
-directory in the unpacked dataset tofilesystem_overlay_only.json
{ "name": "test", "description": "A test project.", "version": "1.0.0", "pickable_objects": [ { "name": "proteasome", "is_particle": true, "pdb_id": "3J9I", "label": 1, "color": [255, 0, 0, 255], "radius": 60, "map_threshold": 0.0418 }, { "name": "ribosome", "is_particle": true, "pdb_id": "7P6Z", "label": 2, "color": [0, 255, 0, 255], "radius": 150, "map_threshold": 0.037 }, { "name": "membrane", "is_particle": false, "label": 3, "color": [0, 0, 0, 255] } ], // Change this path to the location of sample_project "overlay_root": "local:///PATH/TO/EXTRACTED/PROJECT/", "overlay_fs_args": { "auto_mkdir": true } }
-
Start copick with the configuration file
from copick.impl.filesystem import CopickRootFSSpec root = CopickRootFSSpec.from_file('path/to/filesystem_overlay_only.json')
-
Access the data using the copick API
import zarr from copick.impl.filesystem import CopickRootFSSpec root = CopickRootFSSpec.from_file('path/to/filesystem_overlay_only.json') # Get a run by name run = root.get_run("TS_001") # Get a tomogram by name tomogram = run.get_voxel_spacing(10).get_tomogram("wbp") # Access the data group = zarr.open(tomogram.zarr()) arrays = list(group.arrays()) _, array = arrays[0]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file copick-0.5.6.tar.gz
.
File metadata
- Download URL: copick-0.5.6.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ea2894b77981a10dde0605e72fc9c5632721a853d03becd6e2104a65986dccb |
|
MD5 | d074640ed3653c91ffd3f1c370ab7180 |
|
BLAKE2b-256 | 1608c521c6951258176cff8151c99b40cfeb995c8620fbf271bde9c14b93d8ee |
File details
Details for the file copick-0.5.6-py3-none-any.whl
.
File metadata
- Download URL: copick-0.5.6-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c99d75ff1c267a40482b7292a6705e70334cc502661a49e4f5f0f400f8f070 |
|
MD5 | d277cd1f6eb86d47a698b7db75e2bf69 |
|
BLAKE2b-256 | 4ad774e9c7d6f80015b1c94edb3f44bf561de3f49db0d0cc00dff33e102b255f |