Skip to main content

List, preview, and open data from the CZII CryoET Data Portal

Project description

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_026

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/6ccbd314-fd2b-40aa-abeb-dd1afe2a61e2

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

Connect button and editable URI to the portal

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari-cryoet-data-portal-0.1.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

napari_cryoet_data_portal-0.1.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file napari-cryoet-data-portal-0.1.0.tar.gz.

File metadata

File hashes

Hashes for napari-cryoet-data-portal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae3755e5c3a4636f994d3071eec1f27addf73dbb4e24cd936b5f8ba84f5f9df8
MD5 3a00c0b9c4b2d9c8f39b3de1ddbcde3f
BLAKE2b-256 c76460fc4522e8c6d2164b8875d197c808d932a39a1b5903dd25c0a22c2ffe49

See more details on using hashes here.

File details

Details for the file napari_cryoet_data_portal-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_cryoet_data_portal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0be1de707159e4b447fd4d455988927da061925b06bd7bdc911b15e06381d0cf
MD5 6575e262eff229803b1bf640777f3ae8
BLAKE2b-256 32be86f03ea8ed19a8ded841014996c0ab4daf729cb5dbc71ff2bd39a1c33db5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page