Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add page documenting output structure #156

Merged
merged 3 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Contents
installation
builtin_workflows
building_workflows
outputs
connectivity_matrices
comparisons
help
Expand Down
122 changes: 122 additions & 0 deletions docs/outputs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
.. include:: links.rst

#####################
Outputs of *QSIRecon*
#####################

*QSIRecon* outputs are organized according to BIDS Derivatives standards.

.. admonition:: A note on BIDS compliance

*QSIRecon* attempts to follow the BIDS specification as closely as possible.
However, many *QSIRecon* derivatives are not currently covered by the specification.
In those instances, we attempt to follow recommendations from existing BIDS Extension Proposals
(BEPs), which are in-progress proposals to add new features to BIDS.
However, we do not guarantee compliance with any BEP,
as they are not yet part of the official BIDS specification.

Three BEPs that are of particular use in *QSIRecon* are
`BEP016: Diffusion weighted imaging derivatives <https://bids-website.readthedocs.io/en/latest/extensions/beps/bep_016.html>`_,
`BEP017: Relationship & connectivity matrix data schema <https://docs.google.com/document/d/1ugBdUF6dhElXdj3u9vw0iWjE6f_Bibsro3ah7sRV0GA/edit?usp=sharing>`_,
and
`BEP038: Atlas Specification <https://docs.google.com/document/d/1RxW4cARr3-EiBEcXjLpSIVidvnUSHE7yJCUY91i5TfM/edit?usp=sharing>`_.

In cases where a derivative type is not covered by an existing BEP,
we have simply attempted to follow the general principles of BIDS.

If you discover a problem with the BIDS compliance of *QSIRecon*'s derivatives,
please open an issue in the *QSIRecon* repository.


********************
Dataset Organization
********************

*QSIRecon* organizes its outputs as self-contained BIDS-Derivative datasets.

In the output directory, you will find a derivative dataset containing anatomical and
subject-space atlas files, along with the `MRtrix3-specific renumbering <https://mrtrix.readthedocs.io/en/3.0.4/quantitative_structural_connectivity/labelconvert_tutorial.html>`_ files ::

qsirecon/
dataset_description.json
logs/
sub-<label>/[ses-<label>/]
dwi/
<source_entities>_seg-<atlas>_dseg.mif.gz
<source_entities>_seg-<atlas>_dseg.nii.gz
<source_entities>_seg-<atlas>_dseg.txt

Within the output directory, you will also find a "derivatives" directory containing
a separate self-contained derivatives dataset for each reconstruction method used by the
reconstruction workflow.

Each dataset will have its own set of HTML reports summarizing the results of the
associated reconstruction method.
Here is an example output structure from a reconstruction workflow with two reconstruction methods:
DKI and TORTOISE::

qsirecon/
derivatives/
qsirecon-DKI/
dataset_description.json
sub-<label>[_ses-<label>].html
logs/
sub-<label>/[ses-<label>/]
figures/
dwi/
<source_entities>_model-dki_param-ad_dwimap.json
<source_entities>_model-dki_param-ad_dwimap.nii.gz
<source_entities>_model-dki_param-ak_dwimap.json
<source_entities>_model-dki_param-ak_dwimap.nii.gz
<source_entities>_model-dki_param-kfa_dwimap.json
<source_entities>_model-dki_param-kfa_dwimap.nii.gz
<source_entities>_model-dki_param-md_dwimap.json
<source_entities>_model-dki_param-md_dwimap.nii.gz
<source_entities>_model-dki_param-mk_dwimap.json
<source_entities>_model-dki_param-mk_dwimap.nii.gz
<source_entities>_model-dki_param-mkt_dwimap.json
<source_entities>_model-dki_param-mkt_dwimap.nii.gz
<source_entities>_model-dki_param-rd_dwimap.json
<source_entities>_model-dki_param-rd_dwimap.nii.gz
<source_entities>_model-dki_param-rk_dwimap.json
<source_entities>_model-dki_param-rk_dwimap.nii.gz
<source_entities>_model-tensor_param-fa_dwimap.json
<source_entities>_model-tensor_param-fa_dwimap.nii.gz

qsirecon-TORTOISE/
dataset_description.json
sub-<label>[_ses-<label>].html
logs/
sub-<label>/[ses-<label>/]
figures/
dwi/
<source_entities>_model-mapmri_param-ng_dwimap.json
<source_entities>_model-mapmri_param-ng_dwimap.nii.gz
<source_entities>_model-mapmri_param-ngpar_dwimap.json
<source_entities>_model-mapmri_param-ngpar_dwimap.nii.gz
<source_entities>_model-mapmri_param-ngperp_dwimap.json
<source_entities>_model-mapmri_param-ngperp_dwimap.nii.gz
<source_entities>_model-mapmri_param-pa_dwimap.json
<source_entities>_model-mapmri_param-pa_dwimap.nii.gz
<source_entities>_model-mapmri_param-path_dwimap.json
<source_entities>_model-mapmri_param-path_dwimap.nii.gz
<source_entities>_model-mapmri_param-rtap_dwimap.json
<source_entities>_model-mapmri_param-rtap_dwimap.nii.gz
<source_entities>_model-mapmri_param-rtop_dwimap.json
<source_entities>_model-mapmri_param-rtop_dwimap.nii.gz
<source_entities>_model-mapmri_param-rtpp_dwimap.json
<source_entities>_model-mapmri_param-rtpp_dwimap.nii.gz
<source_entities>_model-tensor_param-ad_dwimap.json
<source_entities>_model-tensor_param-ad_dwimap.nii.gz
<source_entities>_model-tensor_param-am_dwimap.json
<source_entities>_model-tensor_param-am_dwimap.nii.gz
<source_entities>_model-tensor_param-fa_dwimap.json
<source_entities>_model-tensor_param-fa_dwimap.nii.gz
<source_entities>_model-tensor_param-li_dwimap.json
<source_entities>_model-tensor_param-li_dwimap.nii.gz
<source_entities>_model-tensor_param-rd_dwimap.json
<source_entities>_model-tensor_param-rd_dwimap.nii.gz

If parcellation is enabled,
the output directory will also contain an "atlases" directory containing a BIDS-Atlas dataset.
See :ref:`connectivity_atlases` for more information on this output directory.