Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
315f5a2
Create index.rst
Majpuc Oct 5, 2021
c68354b
Create conf.py
Majpuc Oct 5, 2021
b2fd0f8
Update conf.py
Majpuc Oct 5, 2021
e938497
Merge branch 'Tevemadar:master' into master
Tevemadar Oct 5, 2021
b5b2690
Create Introduction.rst
Majpuc Oct 5, 2021
1d90ea9
Add files via upload
Majpuc Oct 5, 2021
166abea
Update Introduction.rst
Majpuc Oct 5, 2021
1d89b7e
Update Introduction.rst
Majpuc Oct 5, 2021
93ae531
Create Installation
Majpuc Oct 5, 2021
f3247ed
Delete Installation
Majpuc Oct 5, 2021
24f1afb
Create Installation.rst
Majpuc Oct 5, 2021
613d662
Update Installation.rst
Majpuc Oct 5, 2021
b8293ca
Update index.rst
Majpuc Oct 6, 2021
b077574
Add files via upload
Majpuc Oct 6, 2021
a4b0ce5
Delete image1.png
Majpuc Oct 6, 2021
b0cb852
Update Introduction.rst
Majpuc Oct 6, 2021
8206ec4
Update Introduction.rst
Majpuc Oct 6, 2021
f230e2f
Update Introduction.rst
Majpuc Oct 6, 2021
2063b9c
Update Introduction.rst
Majpuc Oct 6, 2021
335928c
Update Introduction.rst
Majpuc Oct 6, 2021
a394add
Update Introduction.rst
Majpuc Oct 6, 2021
f41fd69
Update Introduction.rst
Majpuc Oct 6, 2021
df21d95
Update Introduction.rst
Majpuc Oct 6, 2021
7628126
Update Installation.rst
Majpuc Oct 6, 2021
ad70f24
Update Installation.rst
Majpuc Oct 6, 2021
9e92c4f
Update conf.py
Majpuc Oct 6, 2021
c342b6c
Update Introduction.rst
Majpuc Oct 6, 2021
cff205b
Update Introduction.rst
Majpuc Oct 6, 2021
da37cc8
Update Introduction.rst
Majpuc Oct 6, 2021
c2ec44f
Update Installation.rst
Majpuc Oct 6, 2021
102d9e1
Update Installation.rst
Majpuc Oct 6, 2021
89db5e6
Create imageprepro
Majpuc Oct 6, 2021
a738a23
Delete imageprepro
Majpuc Oct 6, 2021
383ba6e
Create ~imageprepro.rst
Majpuc Oct 6, 2021
96389bf
Delete ~imageprepro.rst
Majpuc Oct 6, 2021
97d7b6b
Create imageprepro.rst
Majpuc Oct 6, 2021
f2b99e3
Update imageprepro.rst
Majpuc Oct 6, 2021
b06e2da
Update index.rst
Majpuc Oct 6, 2021
0f8344c
Update imageprepro.rst
Majpuc Oct 6, 2021
0e690ab
Create anchoring.rst
Majpuc Oct 6, 2021
6203d62
Update anchoring.rst
Majpuc Oct 6, 2021
1168863
Update anchoring.rst
Majpuc Oct 6, 2021
8048264
Update index.rst
Majpuc Oct 6, 2021
ac3ec0f
Update anchoring.rst
Majpuc Oct 6, 2021
616f5bf
Update index.rst
Majpuc Oct 6, 2021
ebcbd3f
Update index.rst
Majpuc Oct 6, 2021
32bb0e9
Update index.rst
Majpuc Oct 6, 2021
472997a
Create support.rst
Majpuc Oct 6, 2021
9007fae
Update anchoring.rst
Majpuc Oct 6, 2021
ab0144e
Update anchoring.rst
Majpuc Oct 6, 2021
7f17b17
Update anchoring.rst
Majpuc Oct 6, 2021
a8bd26d
Update anchoring.rst
Majpuc Oct 7, 2021
4f19b9f
Create landmarks.rst
Majpuc Oct 7, 2021
0cc213d
Update anchoring.rst
Majpuc Oct 7, 2021
c2a6e89
Update index.rst
Majpuc Oct 7, 2021
2458437
Update landmarks.rst
Majpuc Oct 7, 2021
2d01eef
Update landmarks.rst
Majpuc Oct 7, 2021
a417fb9
Update anchoring.rst
Majpuc Oct 7, 2021
2dae92e
Update landmarks.rst
Majpuc Oct 7, 2021
fb64883
Update landmarks.rst
Majpuc Oct 7, 2021
8e7b9bc
Create angles.rst
Majpuc Oct 7, 2021
0889128
Update index.rst
Majpuc Oct 7, 2021
b575c1b
Update angles.rst
Majpuc Oct 7, 2021
0ce55dc
Update angles.rst
Majpuc Oct 7, 2021
2e1ae45
Update angles.rst
Majpuc Oct 7, 2021
3ca376d
Update angles.rst
Majpuc Oct 7, 2021
af5eadb
Update angles.rst
Majpuc Oct 7, 2021
c527811
Create adjust
Majpuc Oct 7, 2021
80298b0
Rename adjust to adjust.rst
Majpuc Oct 7, 2021
214ab64
Update adjust.rst
Majpuc Oct 7, 2021
a8a8b7f
Create saving.rst
Majpuc Oct 7, 2021
1566afd
Update index.rst
Majpuc Oct 7, 2021
01bd3b2
Create export.rst
Majpuc Oct 7, 2021
ec78abe
Update export.rst
Majpuc Oct 7, 2021
86f6f17
Create publications.rst
Majpuc Oct 7, 2021
9e4eeba
Update index.rst
Majpuc Oct 7, 2021
04d1f7a
Update index.rst
Majpuc Oct 7, 2021
b2a4db9
Update publications.rst
Majpuc Oct 7, 2021
77dba04
Update publications.rst
Majpuc Oct 7, 2021
6157850
Update export.rst
Majpuc Oct 11, 2021
245fee4
Update export.rst
Majpuc Oct 11, 2021
9698744
Update support.rst
Majpuc Oct 11, 2021
9e3a463
Update support.rst
Majpuc Oct 11, 2021
d8875ed
Create ebrains.yml
Tevemadar Oct 27, 2021
fda2167
Update anchoring.rst
Majpuc Nov 1, 2021
bdbb40c
Update anchoring.rst
Majpuc Nov 1, 2021
5262ad1
Update imageprepro.rst
Majpuc Nov 15, 2021
ec5b134
Update anchoring.rst
Majpuc Nov 16, 2021
cdeaa94
Update anchoring.rst
Majpuc Nov 16, 2021
777b961
Update publications.rst
Majpuc Feb 3, 2022
719ea46
Update publications.rst
Majpuc Feb 3, 2022
1f78ffe
Update publications.rst
Majpuc Feb 3, 2022
4036dc2
Update publications.rst
Majpuc Feb 3, 2022
ed66abe
eung Wook
Majpuc Feb 4, 2022
e189de0
Update publications.rst
Majpuc Feb 4, 2022
d2ccb70
Update publications.rst
Majpuc Feb 7, 2022
15d7ffa
Update publications.rst
Majpuc Feb 7, 2022
fc20b96
Update publications.rst
Majpuc Feb 7, 2022
419f5f0
Create README.md
Majpuc Feb 17, 2022
bb761da
Update Introduction.rst
sharoncy Feb 26, 2022
040f453
Update publications.rst
sharoncy Feb 26, 2022
6c7d282
Update Introduction.rst
sharoncy Feb 26, 2022
074f8c5
Update Introduction.rst
sharoncy Feb 26, 2022
3c2b2b0
Update Introduction.rst
sharoncy Feb 26, 2022
2a6f4c8
Update publications.rst
Majpuc May 2, 2022
56c9def
Create FAQ.rst
Majpuc May 2, 2022
d46c558
Update index.rst
Majpuc May 2, 2022
bb86af7
Update FAQ.rst
Majpuc May 4, 2022
1796726
Update anchoring.rst
Majpuc May 4, 2022
ad44bf9
Update saving.rst
Majpuc May 4, 2022
f6066af
Update saving.rst
Majpuc May 4, 2022
2c3958c
Create coordinates.rst
Majpuc May 4, 2022
181ce1a
Update index.rst
Majpuc May 4, 2022
a40c1a4
Update FAQ.rst
Majpuc May 4, 2022
a767448
Update coordinates.rst
Majpuc May 4, 2022
e7e1fa1
Update coordinates.rst
Majpuc May 4, 2022
8da1659
Update FAQ.rst
Majpuc May 4, 2022
b0f0793
Update coordinates.rst
Majpuc May 19, 2022
76e2ce6
Update coordinates.rst
Majpuc May 19, 2022
710e93b
Update coordinates.rst
Majpuc May 19, 2022
ced9c63
Update coordinates.rst
Majpuc May 19, 2022
457a55a
Update publications.rst
Majpuc Jul 1, 2022
824d9b2
Update Introduction.rst
Majpuc Sep 21, 2022
eb60b95
Update Introduction.rst
Majpuc Sep 21, 2022
a5e651f
Update Introduction.rst
Majpuc Sep 21, 2022
97e731d
Update Introduction.rst
Majpuc Sep 21, 2022
235e725
Update Introduction.rst
Majpuc Sep 21, 2022
318bb2a
Update Introduction.rst
Majpuc Sep 21, 2022
93f2c3c
Update Introduction.rst
Majpuc Sep 21, 2022
cbd1980
Update adjust.rst
Majpuc Sep 21, 2022
fa340da
Update adjust.rst
Majpuc Sep 21, 2022
db26b6b
Update saving.rst
Majpuc Sep 21, 2022
3f3e65e
Update export.rst
Majpuc Sep 21, 2022
3f97d3b
Update saving.rst
Majpuc Sep 21, 2022
984dad0
Update FAQ.rst
Majpuc Sep 21, 2022
6a38d69
Update saving.rst
Majpuc Sep 21, 2022
6902b15
Update README.md
Majpuc Nov 21, 2022
80dfbac
Update support.rst
Majpuc Dec 7, 2022
a46ed6b
Update FAQ.rst
Majpuc Feb 3, 2023
a7a4659
Update support.rst
Majpuc Feb 16, 2023
3f55ad5
Create issue_auto.yml
Tevemadar Feb 20, 2023
d4716df
Update ebrains.yml
Tevemadar Mar 13, 2023
2c05503
Update imageprepro.rst
Majpuc May 12, 2023
b4e1816
Update FAQ.rst
Majpuc May 12, 2023
26cce4d
Update FAQ.rst
Majpuc May 12, 2023
8cbeae4
Update export.rst
Majpuc Jun 12, 2023
7a4c6e1
Add files via upload
Majpuc Jun 12, 2023
248b7ca
Update export.rst
Majpuc Jun 12, 2023
969dafe
Update export.rst
Majpuc Jun 12, 2023
cd624b5
Update export.rst
Majpuc Jun 12, 2023
a44da05
Create .readthedocs.yaml
sharoncy Sep 28, 2023
0827bf9
Update .readthedocs.yaml
sharoncy Sep 28, 2023
425a655
Update .readthedocs.yaml
sharoncy Oct 13, 2023
b038a58
Update conf.py
sharoncy Oct 13, 2023
4a8c1b1
Create requirements.txt
sharoncy Oct 13, 2023
f7cfd38
Update .readthedocs.yaml
sharoncy Oct 13, 2023
1061ca1
Update conf.py
sharoncy Dec 21, 2023
a1ad3e0
Add files via upload
sharoncy Dec 21, 2023
99fc43a
Update ebrains.yml
Tevemadar Feb 20, 2024
8413abc
Update Installation.rst
sharoncy May 6, 2024
e656ac5
Update Installation.rst
sharoncy May 6, 2024
f5cf06a
Update Installation.rst
sharoncy May 6, 2024
586136d
Update Installation.rst
sharoncy May 6, 2024
f46fcd3
Add files via upload
sharoncy May 27, 2024
43a5a36
Rename Logos_BlackWhite_QuickNII_slices.png to QuickNII_logo.png
sharoncy May 27, 2024
69f42ee
Update conf.py
sharoncy May 27, 2024
8e86d20
Update Installation.rst
sharoncy Dec 23, 2024
008cf7c
Update FAQ.rst
Majpuc Jan 14, 2025
d287df4
Create codemeta.json
Tevemadar Mar 19, 2025
dbeb34c
Update Introduction.rst
Majpuc Mar 24, 2025
7bb9076
Update Installation.rst
Majpuc Mar 24, 2025
c95fdba
Update Installation.rst
Majpuc Mar 25, 2025
49b2e58
Update angles.rst
Majpuc Mar 25, 2025
b251d12
Update adjust.rst
Majpuc Mar 25, 2025
0ec8f12
Update adjust.rst
Majpuc Mar 25, 2025
aebf7dc
Update adjust.rst
Majpuc Mar 25, 2025
4da459e
Update adjust.rst
Majpuc Mar 25, 2025
89b2a25
Update adjust.rst
Majpuc Mar 25, 2025
d611c14
Update adjust.rst
Majpuc Mar 25, 2025
96ed7dd
Update adjust.rst
Majpuc Mar 25, 2025
66ef0de
Update imageprepro.rst
Majpuc Mar 25, 2025
b497ec8
Update imageprepro.rst
Majpuc Mar 25, 2025
1937710
Update imageprepro.rst
Majpuc Mar 25, 2025
d2370fd
Update imageprepro.rst
Majpuc Mar 25, 2025
f97dae4
Update README.md
Majpuc Apr 15, 2025
06f6986
Update Introduction.rst
Majpuc Apr 15, 2025
c480bea
Update Installation.rst
Majpuc Apr 15, 2025
3cb2116
Update Installation.rst
Majpuc Apr 15, 2025
6e8bfbf
Update adjust.rst
Majpuc Apr 15, 2025
ed4371c
Update codemeta.json
Majpuc May 7, 2025
aad516a
Update landmarks.rst
Majpuc Aug 20, 2025
acc4f04
Update README.md
Majpuc Oct 21, 2025
cfbacd4
Update README.md
Majpuc Oct 21, 2025
57c630d
Update README.md
Majpuc Nov 4, 2025
13b95ab
Update README.md
Majpuc Nov 4, 2025
ee7fd84
Update README.md
Majpuc Nov 4, 2025
0859329
Update README.md
Majpuc Nov 4, 2025
682b296
Update Introduction.rst
Majpuc Nov 11, 2025
6fa60bf
Update Introduction.rst
Majpuc Nov 11, 2025
337238c
Update Introduction.rst
Majpuc Nov 11, 2025
99ed8c9
Update Introduction.rst
Majpuc Nov 11, 2025
2de0a22
Update Introduction.rst
Majpuc Nov 11, 2025
f683db7
Update Installation.rst
Majpuc Nov 12, 2025
c11e3a9
Update Introduction.rst
Majpuc Nov 12, 2025
230341e
Update Installation.rst
Majpuc Nov 12, 2025
01db37f
Update index.rst
Majpuc Nov 12, 2025
0a3f709
Update Introduction.rst
Majpuc Nov 12, 2025
af8962d
Create Acknowledgements.rst
Majpuc Nov 12, 2025
af50719
Update index.rst
Majpuc Nov 12, 2025
c32ff00
Update support.rst
Majpuc Nov 12, 2025
10738a0
Update index.rst
Majpuc Nov 12, 2025
92fe573
Update FAQ.rst
Majpuc Nov 12, 2025
a43f017
Update adjust.rst
Majpuc Nov 12, 2025
9e98990
Update Installation.rst
Majpuc Nov 12, 2025
7e133d2
Update Acknowledgements.rst
Majpuc Nov 12, 2025
366ee91
Update publications.rst
Majpuc Nov 12, 2025
48027c2
Update codemeta.json
Majpuc Feb 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ebrains.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Mirror to Ebrains

on:
push:
branches: [ master ]

jobs:
to_ebrains:
runs-on: ubuntu-latest
steps:
- name: sync_master
uses: wei/git-sync@v3
with:
source_repo: "Neural-Systems-at-UIO/QuickNII"
source_branch: "master"
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB }}@gitlab.ebrains.eu/ri/tech-hub/apps/nesys/quicknii.git"
destination_branch: "master"
21 changes: 21 additions & 0 deletions .github/workflows/issue_auto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Issue management

on:
issues:
types: [opened]

jobs:
do-things:
runs-on: ubuntu-latest
steps:
- name: Auto-assign issue
uses: pozil/auto-assign-issue@v1.5.0
with:
assignees: Tevemadar
numOfAssignee: 1
allowSelfAssign: true
- name: Add issue to project
uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/Neural-Systems-at-UIO/projects/2
github-token: ${{ secrets.AUTOMATION_TOKEN }}
35 changes: 35 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: Docs/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: Docs/requirements.txt
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions Docs/Acknowledgements.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**Acknowledgements**
====================
QuickNII is developed at the Neural Systems Laboratory, Institute of
Basic Medical Sciences,University of Oslo (Norway), with funding from the European Union’s
Horizon 2020 Framework Programme for Research and Innovation under the
Framework Partnership Agreement No. 650003 (HBP FPA) and the European Union’s Horizon Europe Programme for Research Infrastructures Grant Agreement No. 101147319 (EBRAINS 2.0).
Binary file added Docs/EBRAINS_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions Docs/FAQ.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
**FAQ**
--------------------------------

(1) I am using QuickNII to register my 2D coronal brain images with retrograde tracing. I completed all required steps through the filebuilder, but when I input my file to be registered the images does not appear, only the reference you have appears. Can you help me with this?

--> Please place the xml file in the same folder as the jpeg images, this usually solves this issue.
You can read about it here: https://quicknii.readthedocs.io/en/latest/imageprepro.html#generate-a-xml-descriptor-file

(2) I have an error with the QuickNII filebuilder that just shows a black screen and shuts down.

--> This can happen if you have spaces in the path where the QuickNII software is located. For Windows 10 users, the filebuilder can be modified and it is described here: https://www.nitrc.org/plugins/mwiki/index.php/quicknii:MainPage

(3) QuickNII filebuilder does not list my images although the size is ok.

--> The filename pattern should be consistent and the section numbers should have the same number of digits (see naming convention).

(4) How can I refine my QuickNII registration?

--> Please us VisuAlign https://visualign.readthedocs.io/en/latest/.

(5) Where can I find information about the coordinates of my images?

--> Information can be found in this guide under "Coordinates"

(6) How can I try QuickNII with my own atlas?

--> Documentation of the cutlas file format is available here: https://www.nitrc.org/plugins/mwiki/index.php?title=quicknii:Cutlas_file_format
62 changes: 62 additions & 0 deletions Docs/Installation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

**Installation**
-----------------------------
**System requirements**
~~~~~~~~~~~~~~~~~~~~~~~~
Microsoft Windows: 64-bit operating system, Windows 7 or later

Apple macOS: OS X 10.9 (Mavericks) or later

3 gigabytes RAM

Display resolution minimum 1440 pixels wide and minimum 650 pixels high.

**Technical information**

QuickNII consists of two co-located executable components implemented in
two programming languages for historical reasons. The GUI component is
implemented in MXML+ActionScript (runs on Adobe Integrated Runtime,
which is bundled as "captive runtime", requiring no installation). A
slicer service running in the background is implemented in Java (and has
a bundled JRE requiring no installation). The two components communicate
via standard output and local TCP connections (using the loopback
interface).

**Conditions of use**
~~~~~~~~~~~~~~~~~~~~~~

**Licence:**

Creative Commons Attribution-NonCommercial-ShareAlike 4.0
International for the main component. Source code: MIT License.


**Citation of the tool:**

-RRID on SciCrunch: (QuickNII, RRID:SCR_016854)

-Puchades MA, Csucs G, Ledergerber D, Leergaard TB, Bjaalie JG (2019)
Spatial registration of serial microscopic brain images to
three-dimensional reference atlases with the QuickNII tool. PLOS ONE
14(5): e0216796. https://doi.org/10.1371/journal.pone.0216796

**Download**
~~~~~~~~~~~~~
Download of the software is from Nitrc.org
Link: https://www.nitrc.org/projects/quicknii/

Unzipp the QuickNII folder at your desired location.


**Versions and release notes**

* Version 2.2 (2019-05-28) This release includes several reference atlases.
Linux support was added in July 2020.

* Version 2.2preview (2019-04-02) Series descriptor builder recognizes multiple numbering variants in filenames (numbers at fixed character position from either end of names, and sequence indicator \_s prefixanywhere)
Coordinate transformation to/from Allen CCFv3 added to Mouse package.

* Version 2.1 (2018-12-05) First stable version



55 changes: 55 additions & 0 deletions Docs/Introduction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
**What is QuickNII?**
=======================
QuickNII is one of several tools developed by the NeSys laboratory at University of Oslo with the aim of facilitating brain atlas-based analysis and
integration of experimental data and knowledge about the human and rodent brain.

QuickNII is a stand-alone application for user-guided affine
spatial registration (anchoring) of section images, typically high
resolution histological images, to 3D reference atlas space. A key
feature of the tool is its ability to generate user-defined cut planes
through the atlas templates that match the orientation of the cutting
plane of the 2D experimental images (atlas maps). The reference atlas is
transformed to match anatomical landmarks in the corresponding
experimental images. In this way, the spatial relationship between the
experimental image and the atlas is defined, without introducing
transformations in the original experimental images. Following anchoring
of a limited number of sections containing key landmarks,
transformations are propagated across the entire series of images. These
propagations must be validated and saved by the user for each section,
with application of fine positional adjustments as required. We
recommend the use of `VisuAlign <https://visualign.readthedocs.io/en/latest/>`_ to perform nonlinear adjustments after
the QuickNII registration for an optimal fit.

.. image:: 6bef45ee36424df69f030c687f030605/media/image1.png
:width: 6.3in
:height: 4.04916in


.. image:: 6bef45ee36424df69f030c687f030605/media/image2.png
:width: 6.30139in
:height: 2.48678in

.. tip::
**QuickNII and VisuAlign are part of the QUINT workflow**
Visit `EBRAINS <https://ebrains.eu/service/quint/>`_ for more information about the QUINT workflow. Find full user documentation `here <https://quint-workflow.readthedocs.io>`_.

**Which atlases are supported?**
-----------------------------
1. Allen Mouse Brain Atlas Common Coordinate Framework version 3 (2015 and 2017) (CCFv3) (Wang et al. 2020. Cell, https://doi.org/10.1016/j.cell.2020.04.007. Epub 2020 May 7; RRID:JCR_020999 and RRID:JRC_021000)
2. Waxholm Atlas of the Sprague Dawley rat, version 3 and 4 (WHS rat brain atlas) (Osen et al. 2019. NeuroImage, https:doi.org/10.1016/j.neuroimage.2019.05.016; Kleven et al. Nat Methods, 2020. https://doi.org/10.1038/s41592-023-02034-3; RRID:SCR_017124)
3. Kim-UnifiedMouse-v1 (Chon et al. 2019, Nature Communications 10:5067. https://doi.org/10.1038/s41467-019-13057-w)
4. Developmental Mouse Brain Atlas, version 2 (DeMBA) (Carey et al. 2024. Nat Comm. https://doi.org/10.1038/s41467-025-63177-9; RRID:SCR_025324).

We encourage researchers who use DeMBA to cite both the dataset and publication presenting DeMBA, and to specify the age of any template(s) used and the version of any segmentation(s) used.

-Allen CCFv3 segmentations: Wang et al. (2020). The Allen Mouse Brain Common Coordinate Framework: A 3D Reference Atlas. Cell. https://doi.org/10.1016/j.cell.2020.04.007.

-KimLabDev segmentations: Kronman et al. (2024). Developmental mouse brain common coordinate framework. Nature Communications. https://doi.org/10.1038/s41467-024-53254-w

**What is the output of QuickNII?**
---------------------------------

-A registration file (XML or JSON format) containing the coordinates of your regisered section images in atlas space.
Use the JSON format for continuing registration in VisuALign.

-Export of atlas maps (png format)
Binary file added Docs/QuickNII_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions Docs/adjust.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
**Final adjustments of in plane position**
---------------------------------------------

Go to another image located at the end of the series and repeat the
anchoring procedure. Once the second image is stored, QuickNII will
automatically calculate the anteroposterior positions of the images, as
well as propagating the registered angles and scaling to the sections
between the anchored sections. This accelerates the anchoring procedure,
and ensures the section spacing and serial order are respected. However,
there might be cases where the automatically propagated parameters do
not fit the section, for example if a section has been tilted during the
mounting procedure. It is therefore essential to validate the positions
by visual inspection, and to correct any mismatch by fine adjustment of
the anteroposterior position, and scaling and rotation of the atlas maps
to match the position of the sections.

.. tip::
**Once defined, apply the same angles to all the sections in the series and review each section!**

The “export propagation” button allows you to validate all the sections
at once. However, caution is recommended in the use of this feature, as
some sections might not have the correct position. We strongly recommend
reviewing all the sections in order to validate the anchoring. Perform
in plane rotations using buttons in the main window. Rotations in the
small coronal window will result in a rotation around the
anteroposterior axis.

.. image:: 6bef45ee36424df69f030c687f030605/media/image16.png
:width: 5.43472in
:height: 3.32172in

.. tip::
**Adjustments made with QuickNII are linear. If considerable mismatch remains between the atlas maps and the sections, despite fine linear adjustments, further nonlinear adjustments can be applied using VisuAlign https://visualign.readthedocs.io/en/latest/**
91 changes: 91 additions & 0 deletions Docs/anchoring.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
**Start the anchoring**
-----------------------

**1. Open QuickNII and load the data**

Open the QuickNII program by clicking on the .exe file.
Once the program opens, click the **Manage data button**.

.. image:: 6bef45ee36424df69f030c687f030605/media/image5.png
:width: 6.30139in
:height: 3.54662in

A second window, the data management window, will open. Here you can
load your data by clicking the **Load button** and choosing the
**xml** (or JSON) file related to your images, choose the “orig file” the first time.


.. image:: 6bef45ee36424df69f030c687f030605/media/image6.png
:width: 5.42361in
:height: 4.06771in

.. image:: 6bef45ee36424df69f030c687f030605/media/image7.png
:width: 4.8125in
:height: 3.46793in

Navigate between the two windows by clicking the Manage data button.
Select sections to work on by using double-clicking the section
number in the data management window.

**2. Use landmarks in the images to find their approximate anteroposterior position**

Select your main working plane, i.e. coronal, sagittal or horizontal by going to "values and controls"**(5)**

The first step in a successful anchoring is to find the approximate
anteroposterior position of the slices (Y position for coronal
sections). Do this first for the first and last section of the series
(or first and last sections with clear landmarks).
Select sections to work on by using the arrows in the upper right panel or by
double-clicking the section number in the data management window.


.. image:: 6bef45ee36424df69f030c687f030605/media/image8.png
:width: 6.3in
:height: 4.88989in

Choose your orientation: By clicking on the “Values and control” **(5)** button
in the bottom left corner, choose the section
orientation (coronal, sagittal or horizontal).

Adjustment of the anteroposterior position
The anteroposterior position is adjusted by clicking and sliding
the red circle in the sagittal navigation window **(1)**. After finding
the approximate position of your section, determine whether the
midline of the section is completely vertical. If not, the rotation
of the template can be adjusted using the rotate left/right-buttons
**(2)**.
The atlas proportions might need adjustment to fit the section.
This is done separately for the horizontal and vertical
direction by using the scaling buttons **(3)**. In order to scale your
atlas, press the space bar while holding the mouse pointer over the
place you want the reference point for scaling. A small cross will
appear. Usually it is easier to choose a side and not place the
cross in the middle of the section.
Then, click on the scaling button: a double arrow will appear.
Place your mouse pointer at the opposite side of the double cross,
and press the left button of your mouse. While keeping the left
button of the mouse pressed you can now gently drag the atlas in
the direction indicated by the double arrow. To drag in the other direction, choose the other arrow.

The transparency slider **(4)**
it can be used at any time, in order to determine how
well the atlas fits the section.

The “outline” button **(5)**
This will allows you to shift between an outline view and a color view of the
atlas segmentations.

Contrast adjustments **(5)**
Both the experimental image and the template can be adjusted with sliders. Making the MRI template darker or lighter can be helpful sometimes.

Save the anchoring **(6)**
Save by clicking the Store button in the upper left panel: a green exclamation mark
appears in the upper right panel.

.. image:: 6bef45ee36424df69f030c687f030605/media/image9.png
:width: 1.11944in
:height: 0.21563in




40 changes: 40 additions & 0 deletions Docs/angles.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
**Determine the sectioning angles**
-----------------------------------
Next, adjust the angles of the atlas slice to match the angles of
sectioning. Even the best sectioning routines can induce small
deviations from the vertical and horizontal planes.
Furthermore, those angles can vary in a whole series, especially if
the tissue was cut into two separate blocks. The cutting angles of
the atlas should be adjusted to match the mediolateral and
dorsoventral angles of the sections. This is done in the horizontal
and sagittal navigation windows, respectively. Use either the
rotation buttons (1) or rotation handles (2) to tilt the MRI
template in the direction needed. Adjust the anteroposterior
position to compensate for the rotation.

.. image:: 6bef45ee36424df69f030c687f030605/media/image14.png
:width: 4.15694in
:height: 2.79387in

.. image:: 6bef45ee36424df69f030c687f030605/media/image15.png
:width: 4.52083in
:height: 0.70425in

The angles of the current atlas slice relative to the default atlas
plane can be read out in the boxes shown above, corresponding to the
sagittal (1) and horizontal (2) navigation windows.

In coronal sections, the dorsoventral angle can be determined by
examining the relationship between landmarks in dorsal and ventral parts
of a section, e.g. between the corpus callosum and anterior commissure,
between the dorsal and ventral hippocampus, or between the pons and
inferior colliculus. The mediolateral angle can be determined by
comparing landmark structures across hemispheres. It is most easily
found by examining the development of the corpus callosum, anterior
striatum, anterior commissure, anterior hippocampus, or size differences
of the cortex in the posterior part of the brain.

**Note**: the results might look similar with angles that deviate 180
degrees (corresponding to looking at the animal from the back or from
the front).

Loading