@@ -28,10 +28,24 @@ Conversion outputs are defined as keys, a `tuple` consisting of three elements:
28
28
- `None ` - a historical artifact (corresponds to some notion of
29
29
``annotation_class `` no living human is aware about)
30
30
31
+ The following details of the sequences could also be used as a ``{detail} `` in the conversion keys:
32
+
33
+ - ``item ``: an index of seqinfo (e.g., ``1 ``),
34
+ - ``subject ``: a subject label (e.g., ``qa ``)
35
+ - ``seqitem ``: sequence item, index with a sequence/protocol name (e.g., ``3-anat-scout_ses-{date} ``)
36
+ - ``subindex ``: an index within the ``seqinfo `` (e.g., ``1 ``),
37
+ - ``session ``: empty (no session) or a session entity (along with ``ses- ``, e.g., ``ses-20191216 ``),
38
+ - ``bids_subject_session_prefix ``: shortcut for BIDS file name prefix combining subject and optional session (e.g., ``sub-qa_ses-20191216 ``),
39
+ - ``bids_subject_session_dir ``: shortcut for BIDS file path combining subject and optional session (e.g., ``sub-qa/ses-20191216 ``).
40
+
31
41
.. note :: An example conversion key
32
42
33
43
``('sub-{subject}/func/sub-{subject}_task-test_run-{item}_bold', ('nii.gz', 'dicom'), None) ``
34
44
45
+ or equivalent in `--bids ` mode which would work also if there is a specified session
46
+
47
+ ``('{bids_subject_session_dir}/func/{bids_subject_session_prefix}_task-test_run-{item}_bold', ('nii.gz', 'dicom'), None) ``
48
+
35
49
The ``seqinfos `` parameter is a list of namedtuples which serves as a grouped and
36
50
stacked record of the DICOMs passed in. Each item in `seqinfo ` contains DICOM
37
51
metadata that can be used to isolate the series, and assign it to a conversion
@@ -49,6 +63,7 @@ A dictionary of {``conversion key``: ``series_id``} is returned, where
49
63
---------------------------------
50
64
51
65
A common helper function used to create the conversion key in ``infotodict ``.
66
+ But it is not used directly by HeuDiConv.
52
67
53
68
--------------------
54
69
``filter_files(fl) ``
0 commit comments