Skip to main content

napari-cryoet-data-portal

MIT License Python package index Supported Python versions Test status Code coverage napari hub

List and open tomograms from the CZ Imaging Institute's CryoET Data Portal in napari.

Plugin showing tomogram TS_043

Installation

You can install the latest stable version using pip:

pip install napari-cryoet-data-portal

You will also need to install napari separately as a Python package in the same environment. One way to do that with Qt included is to run:

pip install "napari[all]"

but more generally you should follow the latest napari installation instructions.

Usage

See the following video for a demonstration of basic usage of the plugin.

https://github.com/chanzuckerberg/napari-cryoet-data-portal/assets/2608297/51207e08-68af-446a-87bb-3de9c6756d35

Click the Connect button to establish a connection to the data portal.

Connect button and URL to the portal

You can optionally query a subset of datasets, runs, voxel spacings, or tomograms using their corresponding IDs. This can speed up the listing process as the portal grows. To do so, select an ID type in the associated drop-down box from this panel, then enter the IDs of interest separated by commas in the text box next to it. For example, if you only want to list datasets 10000 and 10001, select Dataset IDs from the drop-down box and enter the text 10000,10001 in the text box. By default, all datasets are listed.

After connecting to the portal, datasets are added below as they are found.

Datasets and tomograms in the portal shown as an interactive tree

Datasets and tomograms can be filtered by specifying a regular expression pattern.

Datasets and tomograms filtered by the text 26, so that only two are shown

Selecting a dataset displays its metadata, which can be similarly explored and filtered.

Metadata of dataset 10000 shown as an interactive tree of keys and values

Selecting a tomogram displays its metadata and also opens the lowest resolution tomogram and all of its associated point annotations in the napari viewer.

Metadata of tomogram TS_026 shown as an interactive tree of keys and values

Higher resolution tomograms can be loaded instead by selecting a different resolution and clicking the Open button.

Open button and resolution selector showing high resolution

In this case, napari only loads the data that needs to be displayed in the canvas. While this can reduce the amount of data loaded, it may also cause performance problems when initially opening and exploring the data. By default, opening a new tomogram clears all the existing layers in napari. If instead you want to keep those layers, uncheck the associated check-box in this panel.

In general, finding and fetching data from the portal can take a long time. All plugin operations that fetch data from the portal try to run concurrently in order to keep interaction with napari and the plugin as responsive as possible. These operations can also be cancelled by clicking the Cancel button.

Progress bar with loading status and cancel button

Contributing

This is still in early development, but contributions and ideas are welcome! Don't hesitate to open an issue or open a pull request to help improve this plugin.

To setup a development environment, fork this repository, clone your fork, change into its top level directory and run:

pip install -e ".[testing]"

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to opensource@chanzuckerberg.com.

Security

If you believe you have found a security issue, please see our security policy on how to report it.

License

Distributed under the terms of the MIT license, "napari-cryoet-data-portal" is free and open source software. See the license file for more details.

Acknowledgements

This plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Metadata

Release files for napari-cryoet-data-portal 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-cryoet-data-portal 0.5.0
File Size Uploaded
napari_cryoet_data_portal-0.5.0.tar.gz 29.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-cryoet-data-portal 0.5.0
File Interpreter ABI Platform
napari_cryoet_data_portal-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 61.2 kB

Release files / napari_cryoet_data_portal-0.5.0.tar.gz

Download URL napari_cryoet_data_portal-0.5.0.tar.gz
Size 29.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c979fb37759693c083dde5abc6645ddd4c3840cb90d389d2b7ee7fbb19d2c731
BLAKE2b-256 checksum
How to use checksums
93327812f0f21385041a8f4a153d179afda8b3e5998134e6401b3c014cc12a19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / napari_cryoet_data_portal-0.5.0-py3-none-any.whl

Download URL napari_cryoet_data_portal-0.5.0-py3-none-any.whl
Size 32.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77a84c83d0d2620eac11da5486050d5cd467be2aa21aaeecd1fa0c16ba0fb89a
BLAKE2b-256 checksum
How to use checksums
d6583fcb06175c0682de98cfa09e2f2864b26aa0c02f830d277dee076f9e56cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page