-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbrainglobe-registration.json
125 lines (125 loc) · 9.25 KB
/
brainglobe-registration.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "brainglobe-registration",
"display_name": "BrainGlobe Registration",
"visibility": "public",
"icon": "",
"categories": [],
"schema_version": "0.2.1",
"on_activate": null,
"on_deactivate": null,
"contributions": {
"commands": [
{
"id": "brainglobe-registration.make_registration_widget",
"title": "BrainGlobe Registration",
"python_name": "brainglobe_registration.registration_widget:RegistrationWidget",
"short_title": null,
"category": null,
"icon": null,
"enablement": null
},
{
"id": "brainglobe-registration.load_sample",
"title": "Sample Data",
"python_name": "brainglobe_registration.sample_data:load_sample_data",
"short_title": null,
"category": null,
"icon": null,
"enablement": null
}
],
"readers": null,
"writers": null,
"widgets": [
{
"command": "brainglobe-registration.make_registration_widget",
"display_name": "BrainGlobe Registration",
"autogenerate": false
}
],
"sample_data": [
{
"command": "brainglobe-registration.load_sample",
"key": "example",
"display_name": "2D coronal mouse brain section"
}
],
"themes": null,
"menus": {},
"submenus": null,
"keybindings": null,
"configuration": []
},
"package_metadata": {
"metadata_version": "2.2",
"name": "brainglobe-registration",
"version": "0.0.2",
"dynamic": null,
"platform": null,
"supported_platform": null,
"summary": "A napari plugin for registration to a BrainGlobe atlas.",
"description": "# brainglobe-registration\n\n[![License BSD-3](https://img.shields.io/pypi/l/brainglobe-registration.svg?color=green)](https://github.com/brainglobe/brainglobe-registration/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/brainglobe-registration.svg?color=green)](https://pypi.org/project/brainglobe-registration)\n[![Python Version](https://img.shields.io/pypi/pyversions/brainglobe-registration.svg?color=green)](https://python.org)\n[![tests](https://github.com/brainglobe/brainglobe-registration/workflows/tests/badge.svg)](https://github.com/brainglobe/brainglobe-registration/actions)\n[![codecov](https://codecov.io/gh/brainglobe/brainglobe-registration/branch/main/graph/badge.svg)](https://codecov.io/gh/brainglobe/brainglobe-registration)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/brainglobe-registration)](https://napari-hub.org/plugins/brainglobe-registration)\n\nRegistration to a BrainGlobe atlas using Elastix\n\n----------------------------------\n\n> [!WARNING]\n> This tool is in very early development. The interface may change and some features are not yet available.\n\nA [napari] plugin for registering images to a BrainGlobe atlas.\n\n![brainglobe-registration](./imgs/brainglobe_registration_main.png)\n\n## Usage\n\n1. Open `napari`.\n2. [Install the plugin](#Installation).\n3. Open the widget by selecting `Plugins > BrainGlobe Registration` in the napari menu bar near the\ntop left of the window.\n![brainglobe-registration-plugin](./imgs/brainglobe_registration_plugin_window.png)\nThe `BrainGlobe Registration` plugin will appear on the right hand side of the napari window.\n4. Open the image you want to register in napari (a sample 2D image can be found by selecting `File > Open Sample > Sample Brain Slice`).\n5. Select the atlas you want to register to from the dropdown menu.\n![brainglobe-registration-atlas-selection](./imgs/brainglobe_registration_atlas_selection.png)\nThe atlas will appear in the napari viewer. Select the approximate `Z` slice of the atlas that you want to register to,\nusing the slider at the bottom of the napari viewer.\n![brainglobe-registration-atlas-selection](./imgs/brainglobe_registration_atlas_selection_2.png)\n6. Adjust the sample image to roughly match the atlas image.\nYou can do this by adjusting X and Y translation as well as rotating around the centre of the image.\nYou can overlay the two images by toggling `Grid` mode in the napari viewer (Ctrl+G).\nYou can then adjust the color map and opacity of the atlas image to make manual alignment easier.\n![brainglobe-registration-overlay](./imgs/brainglobe_registration_overlay.png)\nThe sample image can be reset to its original position and orientation by clicking `Reset Image` in the `BrainGlobe Registration` plugin window.\n7. Select the transformations you want to use from the dropdown menu. Set the transformation type to empty to remove a step.\nSelect from one of the three provided default parameter sets (elastix, ARA, or IBL). Customise the parameters further in the\n`Parameters` tab.\n8. Click `Run` to register the image. The registered image will appear in the napari viewer.\n![brainglobe-registration-registered](./imgs/brainglobe_registration_registered.png)\n![brainglobe-registration-registered](./imgs/brainglobe_registration_registered_stacked.png)\n\n## Installation\n\nWe strongly recommend to use a virtual environment manager (like `conda` or `venv`). The installation instructions below\nwill not specify the Qt backend for napari, and you will therefore need to install that separately. Please see the\n[`napari` installation instructions](https://napari.org/stable/tutorials/fundamentals/installation.html) for further advice on this.\n\nYou can install `brainglobe-registration` via [pip]:\n\n pip install brainglobe-registration\n\nor [via napari](https://napari.org/stable/plugins/start_using_plugins/finding_and_installing_plugins.html).\n\nTo install the latest development version :\n\n pip install git+https://github.com/brainglobe/brainglobe-registration.git\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"brainglobe-registration\" is free and open source software\n\n## Seeking help or contributing\nWe are always happy to help users of our tools, and welcome any contributions. If you would like to get in contact with us for any reason, please see the [contact page of our website](https://brainglobe.info/contact.html).\n\n\n## Acknowledgements\n\nThis [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.\n\n<!--\nDon't miss the full getting started guide to set up your new package:\nhttps://github.com/napari/cookiecutter-napari-plugin#getting-started\n\nand review the napari docs for plugin developers:\nhttps://napari.org/stable/plugins/index.html\n-->\n\n[napari]: https://github.com/napari/napari\n[Cookiecutter]: https://github.com/audreyr/cookiecutter\n[@napari]: https://github.com/napari\n[MIT]: http://opensource.org/licenses/MIT\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\n[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\n\n[file an issue]: https://github.com/brainglobe/brainglobe-registration/issues\n\n[napari]: https://github.com/napari/napari\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n",
"description_content_type": "text/markdown",
"keywords": null,
"home_page": null,
"download_url": null,
"author": null,
"author_email": "Brainglobe Developers <hello@brainglobe.info>",
"maintainer": null,
"maintainer_email": null,
"license": "BSD-3-Clause",
"classifier": [
"Development Status :: 2 - Pre-Alpha",
"Framework :: napari",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering :: Image Processing"
],
"requires_dist": [
"napari>=0.4.18",
"brainglobe-atlasapi",
"brainglobe-utils>=0.4.3",
"dask",
"dask-image",
"itk-elastix",
"lxml_html_clean",
"numpy",
"pandas",
"pytransform3d",
"qtpy",
"pytest; extra == \"dev\"",
"pytest-cov; extra == \"dev\"",
"pytest-mock; extra == \"dev\"",
"pytest-qt; extra == \"dev\"",
"coverage; extra == \"dev\"",
"tox; extra == \"dev\"",
"black; extra == \"dev\"",
"mypy; extra == \"dev\"",
"pre-commit; extra == \"dev\"",
"ruff; extra == \"dev\"",
"setuptools_scm; extra == \"dev\"",
"pyqt5; extra == \"dev\""
],
"requires_python": ">=3.10",
"requires_external": null,
"project_url": [
"Homepage, https://brainglobe.info",
"Bug Tracker, https://github.com/brainglobe/brainglobe-registration/issues",
"Documentation, https://github.com/brainglobe/brainglobe-registration#README.md",
"Source Code, https://github.com/brainglobe/brainglobe-registration",
"User Support, https://forum.image.sc/tag/brainglobe"
],
"provides_extra": [
"dev"
],
"provides_dist": null,
"obsoletes_dist": null
},
"npe1_shim": false
}