Closed WilliamFCB closed 2 months ago
As it is only reproin
heuristic which uses it, indeed we could just lower this from WARNING to INFO so you should be safely to ignore this warning. Or do you observe some unexpected/incorrect functionin?
It is strange that you only started to get this warning only now since looking at git diff v0.10.0.. -- heu*/parser.py
warning was already there.
FWIW, since longitudinal study -- I would have recommended to use exactly the same container (heudiconv, dcm2niix, etc) as before, or reconvert all the data, since you do not want to add any kind of variability across subjects due to possibly differences in how we layout data etc. Why did you switch from 0.10.0?
Hi Yaroslav,
Many thanks for the quick response. I do not intend to change to 1.2.0. I wanted to test it with some "known data". Anyway, it spits out a lot of:
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-noGDC_run-01_UNIT1 (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-GDC_run-01_UNIT1 (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
But no output is generated.
Using 0.10.0: indeed, the warning is there too. As the output is now generated, I guess something else is amiss. Might I have used some settings that have been deprecated in newer versions?
0.10.0 output: WARNING: Heuristic is missing an infotoids
method, assigning empty method and using provided subject id viakaninen003. Provide session
and locator
fields for best results.
INFO: Study session for StudySessionInfo(locator=None, session='03DRCMRprisma', subject='viakaninen003')
INFO: Need to process 1 study sessions
INFO: PROCESSING STARTS: {'subject': 'viakaninen003', 'outdir': '/mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/', 'session': '03DRCMRprisma'}
INFO: Processing 25 pre-sorted seqinfo entries
INFO: Reloading existing filegroup.json because /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/.heudiconv/viakaninen003/ses-03DRCMRprisma/info/viakaninen003_ses-03DRCMRprisma.edit.txt exists
INFO: Doing conversion using dcm2niix
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-noGDC_run-01_UNIT1 (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: ('nii.gz',)
240912-08:23:24,706 nipype.workflow INFO:
[Node] Setting-up "convert" in "/tmp/dcm2niix3ep8l27u/convert".
INFO: [Node] Setting-up "convert" in "/tmp/dcm2niix3ep8l27u/convert".
240912-08:23:24,769 nipype.workflow INFO:
[Node] Executing "convert"
Many thanks in advance William
do you have -c dcm2niix
? please post full invocation
Yes, see uder summary above
:facepalm:
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-GDC_run-01_UNIT1 (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
but you are saying it produces no files under /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat
correct?
Indeed, no output is generated. Here is the log:
INFO: Running heudiconv version 1.2.0 latest 1.2.0
INFO: Analyzing 1737 dicoms
INFO: Generated sequence info with 1 entries
WARNING: Heuristic is missing an infotoids
method, assigning empty method and using provided subject id viakaninen003. Provide session
and locator
fields for best results.
INFO: Study session for StudySessionInfo(locator=None, session='03DRCMRprisma', subject='viakaninen003')
INFO: Need to process 1 study sessions
INFO: PROCESSING STARTS: {'subject': 'viakaninen003', 'outdir': '/mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/', 'session': '03DRCMRprisma'}
INFO: Processing 25 pre-sorted seqinfo entries
INFO: Doing conversion using dcm2niix
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-t23d_run-01_T2w (224 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-noGDC_run-01_UNIT1 (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-GDC_run-01_UNIT1 (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-noGDC_run-01_inv-1_MP2RAGE (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-GDC_run-01_inv-1_MP2RAGE (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-noGDC_run-01_inv-2_MP2RAGE (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-GDC_run-01_inv-2_MP2RAGE (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/dwi/sub-viakaninen003_ses-03DRCMRprisma_acq-dki_run-01_dwi (43 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/dwi . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/dwi/sub-viakaninen003_ses-03DRCMRprisma_acq-hardi_run-01_dwi (94 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/dwi . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-dki_dir-PA_run-01_epi (24 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-hardi_dir-PA_run-01_epi (6 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-flanker_dir-PA_run-01_part-mag_epi (5 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-at_dir-PA_run-01_part-mag_epi (5 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-reward_dir-PA_run-01_part-mag_epi (5 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-reward_dir-PA_run-01_part-phase_epi (5 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/func/sub-viakaninen003_ses-03DRCMRprisma_task-flanker_run-01_sbref (2 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/func . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/func/sub-viakaninen003_ses-03DRCMRprisma_task-at_run-01_sbref (2 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/func . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/func/sub-viakaninen003_ses-03DRCMRprisma_task-reward_run-01_sbref (2 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/func . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-reward_dir-PA_run-01_sbref (2 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-flanker_dir-PA_run-01_part-mag_sbref (1 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap/sub-viakaninen003_ses-03DRCMRprisma_acq-at_dir-PA_run-01_part-mag_sbref (1 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/fmap . Converter: dcm2niix . Output types: nii.gz
INFO: Populating template files under /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/
Traceback (most recent call last):
File "/opt/miniconda-py39_4.12.0/bin/heudiconv", line 8, in
echo /dki_epi.bval* > ${RAWBIDSDIR}/.bidsignore echo */dkiepi.bvec >> ${RAWBIDS_DIR}/.bidsignore echo /partepi.* >> ${RAWBIDS_DIR}/.bidsignore
PS: I have no idea what's behind the error following: INFO: Populating template files under /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/ . Anyway, I deal with the events files later in my scripts.
this is the output when using heudiconv 0.10.0:
INFO: Running heudiconv version 0.10.0 latest 1.2.0
INFO: Analyzing 1737 dicoms
INFO: Generated sequence info with 1 entries
WARNING: Heuristic is missing an infotoids
method, assigning empty method and using provided subject id viakaninen003. Provide session
and locator
fields for best results.
INFO: Study session for StudySessionInfo(locator=None, session='03DRCMRprisma', subject='viakaninen003')
INFO: Need to process 1 study sessions
INFO: PROCESSING STARTS: {'subject': 'viakaninen003', 'outdir': '/mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/', 'session': '03DRCMRprisma'}
INFO: Processing 25 pre-sorted seqinfo entries
INFO: Reloading existing filegroup.json because /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/.heudiconv/viakaninen003/ses-03DRCMRprisma/info/viakaninen003_ses-03DRCMRprisma.edit.txt exists
INFO: Doing conversion using dcm2niix
INFO: Converting /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat/sub-viakaninen003_ses-03DRCMRprisma_acq-mp2rage_rec-noGDC_run-01_UNIT1 (192 DICOMs) -> /mnt/projects/VIA_BIDS/BIDS_MRI_DRCMR/rawdata/sub-viakaninen003/ses-03DRCMRprisma/anat . Converter: dcm2niix . Output types: ('nii.gz',)
240917-07:18:25,996 nipype.utils WARNING:
A newer version (1.8.4) of nipy/nipype is available. You are using 1.7.1
WARNING: A newer version (1.8.4) of nipy/nipype is available. You are using 1.7.1
240917-07:18:26,2 nipype.workflow INFO:
[Node] Setting-up "convert" in "/tmp/dcm2niixj17qg781/convert".
INFO: [Node] Setting-up "convert" in "/tmp/dcm2niixj17qg781/convert".
240917-07:18:26,66 nipype.workflow INFO:
[Node] Executing "convert"
echo /dki_epi.bval* > ${RAWBIDSDIR}/.bidsignore echo */dkiepi.bvec >> ${RAWBIDS_DIR}/.bidsignore echo /partepi.* >> ${RAWBIDS_DIR}/.bidsignore
:rocket: Issue was released in v1.3.0
:rocket:
:rocket: Issue was released in v1.3.0
:rocket:
Summary
Using Heudiconv 1.2.0 (but also 1.1.6) I get the error:" WARNING: Heuristic is missing an
infotoids
method, assigning empty method and using provided subject id viakaninen003. Providesession
andlocator
fields for best results." when bidsyfying dicom data.I have no problems bidsifying data when using 0.10.0 ( I used this version until now because the data is part of a longitudinal study)
Heuiconv command:
singularity exec --cleanenv --contain \ -B /mnt/projects \ ${heudiconv_sif} heudiconv \ --files ${DICOM_FILES} \ -s ${sourceid} \ -ss ${session} \ -f ${heuristic} \ -c dcm2niix \ -b \ -g all \ -o ${RAWBIDS_DIR} \ --overwrite \ --minmeta
As far as I can tell, the heudiconv setup did not change, but I might have missed it. Any ideas?
-->
Platform details:
Choose one: