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
I am converting my raw data to BIDS format. I’m encountering an issue withHeuDiConvduring the conversion of field maps, and I suspect it has to do with how the tool groups sequences into the CSV file during the conversion process.
I am using dcm2niix withinHeuDiConvto convert raw DICOM files into BIDS format. The dataset includes dual-echo GRE field mapping sequences with two echo times. dcm2niix correctly generates the nifti files and associated JSON sidecars, with accurate metadata:
If I check the echo times in JSON files it correctly shows 0.01 sec, 0.01246 sec and 0.01246 sec respectively for _e1, _e2 and _e2_ph files.
However, when HeuDiConv generates theTSV filethat groups the sequences, it seems to misinterpret or incorrectly group the echoes, resulting in misleading or duplicated entries for the field map sequences. Here is the part of the TSV file:
<style>
</style>
dim1
dim2
dim3
dim4
TR
TE
protocol_name
64
64
128
1
1.02
12.46
gre_field_mapping_1acq_rl
64
64
64
1
1.02
12.46
gre_field_mapping_1acq_rl
As you can see there is definitely a problem: there is only two field_mapping protocols with the same TE (there should be three and two of them with different TE).
I am running HeuDiConv using docker on our lab server:
I plan to use theheuristic.pyfile later to organise the data in BIDS-valid format, but if the grouping is done wrong at the first step it seems hard to find a solution.
I am wondering if:
Has anyone encountered similar issues with HeuDiConv misgrouping multi-echo field map sequences?
Are there known bugs or limitations in HeuDiConv’s handling of dual-echo field maps?
Is there a recommended workaround or fix (e.g., manually adjusting the heuristic file, editing the TSV)?
Any help or insights would be greatly appreciated! I’d be happy to provide more details if needed.
Thanks in advance!
Platform details:
Choose one:
Local environment
Container
Heudiconv version: 1.3.0
Dcm2niix version: v1.0.20220720
The text was updated successfully, but these errors were encountered:
Is there a sample of DICOM files you might be willing to share?
I plan to use the heuristic.py file later to organise the data in BIDS-valid format,
checkout this ReproNim/reproin#18 (comment) -- may be you could just remap into reproin, and if we fix this fieldmap issue -- should might be the easiest way.
When one DICOM is treated as the same as the other one based on is_same_series() method. Probably the TE isn't taken into account when two DICOMs are compared.
Summary
I am converting my raw data to BIDS format. I’m encountering an issue with HeuDiConv during the conversion of field maps, and I suspect it has to do with how the tool groups sequences into the CSV file during the conversion process.
I am using dcm2niix within HeuDiConv to convert raw DICOM files into BIDS format. The dataset includes dual-echo GRE field mapping sequences with two echo times. dcm2niix correctly generates the nifti files and associated JSON sidecars, with accurate metadata:
If I check the echo times in JSON files it correctly shows 0.01 sec, 0.01246 sec and 0.01246 sec respectively for _e1, _e2 and _e2_ph files.
However, when HeuDiConv generates the TSV file that groups the sequences, it seems to misinterpret or incorrectly group the echoes, resulting in misleading or duplicated entries for the field map sequences. Here is the part of the TSV file:
<style> </style>As you can see there is definitely a problem: there is only two field_mapping protocols with the same TE (there should be three and two of them with different TE).
I am running HeuDiConv using docker on our lab server:
I plan to use the heuristic.py file later to organise the data in BIDS-valid format, but if the grouping is done wrong at the first step it seems hard to find a solution.
I am wondering if:
Any help or insights would be greatly appreciated! I’d be happy to provide more details if needed.
Thanks in advance!
Platform details:
Choose one:
The text was updated successfully, but these errors were encountered: