This repository is very out of date, and only really the examples should be given any heed. The code instead now lives at https://github.com/chanzuckerberg/cryoet-data-portal-neuroglancer.
git clone https://github.com/MetaCell/cyroet-neuroglancer
cd cyroet-neuroglancer
pip install cyro-et-neuroglancercryoet-converter --helpSee the examples folder for bash scripts that create all the necessary files for a neuroglancer viewer from a cryo-ET dataset.
./examples/convert_and_view_image_and_annotations.sh
./examples/convert_and_view_image_and_segmentation.sh
./examples/convert_and_view_oriented_points.sh
There are three parts to this package:
- The first part of the package is designed to convert a cryo-ET dataset into a format that can be viewed in neuroglancer. The commands
encode-segmentationandencode-annotationare used here. - The second part of the package is designed to view the converted dataset in neuroglancer. The commands
create_image,create_segmentation, andcreate_annotationare used here. Each of these produce a JSON file that represents a neuroglancer layer. The layers can then be combined into a single neuroglancer viewer state via thecombine-jsoncommand. - The final part of this package is designed to help quickly grab the JSON state or URL of a locally running neuroglancer instance, or setup a local viewer with a state. The commands
load-stateandcreate-urlare used here.
git clone https://github.com/MetaCell/cyroet-neuroglancer
cd cyroet-neuroglancer
pip install -e ".[dev]"
pre-commit installTo run all pre-commit hooks on all files run:
pre-commit run --all-filesThis will lint via ruff, format via ruff (essentially black), and check mypy types with the arguments specified in .pre-commit-config.yaml.
pytestManual type checking with mypy:
mypy .

