git clone https://github.com/MetaCell/cyroet-neuroglancer
cd cyroet-neuroglancer
pip install cyro-et-neuroglancer
cryoet-converter --help
See 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-segmentation
andencode-annotation
are used here. - The second part of the package is designed to view the converted dataset in neuroglancer. The commands
create_image
,create_segmentation
, andcreate_annotation
are 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-json
command. - 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-state
andcreate-url
are used here.
git clone https://github.com/MetaCell/cyroet-neuroglancer
cd cyroet-neuroglancer
pip install -e ".[dev]"
pre-commit install
To run all pre-commit hooks on all files run:
pre-commit run --all-files
This will lint via ruff
, format via ruff
(essentially black
), and check mypy types with the arguments specified in .pre-commit-config.yaml
.
pytest
Manual type checking with mypy:
mypy .