You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/custom-heuristic.rst
-1
Original file line number
Diff line number
Diff line change
@@ -316,4 +316,3 @@ Suppose you want to use the values in the field ``image_type``? It is not a num
316
316
Note that this differs from testing for a string because you cannot test for any substring (e.g., 'TEST' would not work). String tests will not work on a tuple datatype.
317
317
318
318
.. Note:: *image_type* is described in the `DICOM specification <https://dicom.innolitics.com/ciods/mr-image/general-image/00080008>`_
Copy file name to clipboardExpand all lines: docs/quickstart.rst
+13-13
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@ Quickstart
3
3
4
4
This tutorial is based on `Dianne Patterson's University of Arizona tutorials <https://neuroimaging-core-docs.readthedocs.io/en/latest/pages/heudiconv.html#lesson-3-reproin-py>`_
5
5
6
-
This guide assumes you have already :ref:`installed heudiconv and dcm2niix <install_local>` and
6
+
This guide assumes you have already :ref:`installed heudiconv and dcm2niix <install_local>` and
7
7
demonstrates how to use the heudiconv tool with a provided `heuristic.py` to convert DICOMS into the BIDS data structure.
8
8
9
9
.. _prepare_dataset:
10
10
11
11
Prepare Dataset
12
12
***************
13
13
14
-
Download and unzip `sub-219_dicom.zip <https://datasets.datalad.org/?dir=/repronim/heudiconv-tutorial-example/>`_.
14
+
Download and unzip `sub-219_dicom.zip <https://datasets.datalad.org/?dir=/repronim/heudiconv-tutorial-example/>`_.
15
15
16
16
We will be working from a directory called MRIS. Under the MRIS directory is the *dicom* subdirectory: Under the subject number *219* the session *itbs* is nested. Each dicom sequence folder is nested under the session::
17
17
@@ -29,7 +29,7 @@ We will be working from a directory called MRIS. Under the MRIS directory is the
29
29
├── field_mapping_21
30
30
└── restingstate_18
31
31
Nifti
32
-
└── code
32
+
└── code
33
33
└── heuristic1.py
34
34
35
35
Basic Conversion
@@ -57,36 +57,36 @@ Run the following command::
57
57
58
58
Output
59
59
******
60
-
60
+
61
61
The *Nifti* directory will contain a bids-compliant subject directory::
62
-
63
-
62
+
63
+
64
64
└── sub-219
65
65
└── ses-itbs
66
66
├── anat
67
67
├── dwi
68
68
├── fmap
69
69
└── func
70
-
70
+
71
71
The following required BIDS text files are also created in the Nifti directory. Details for filling in these skeleton text files can be found under `tabular files <https://bids-specification.readthedocs.io/en/stable/02-common-principles.html#tabular-files>`_ in the BIDS specification::
72
-
72
+
73
73
CHANGES
74
74
README
75
75
dataset_description.json
76
76
participants.json
77
77
participants.tsv
78
78
task-rest_bold.json
79
-
79
+
80
80
Validation
81
81
**********
82
82
83
-
Ensure that everything is according to spec by using `bids validator <https://bids-standard.github.io/bids-validator/>`_
83
+
Ensure that everything is according to spec by using `bids validator <https://bids-standard.github.io/bids-validator/>`_
84
84
85
85
Click `Choose File` and then select the *Nifti* directory. There should be no errors (though there are a couple of warnings).
86
-
86
+
87
87
.. Note:: Your files are not uploaded to the BIDS validator, so there are no privacy concerns!
88
-
89
-
Next
88
+
89
+
Next
90
90
****
91
91
92
92
In the following sections, you will modify *heuristic.py* yourself so you can test different options and understand how to work with your own data.
0 commit comments