@yarikoptic @effigies I ran the newly constructed image (downloaded from Docker) and am getting the same error as before. Do I need make updates to Python before running it?
Image pull: singularity pull docker://nipy/heudiconv:1.1.0
This is the command I am running:
singularity run --cleanenv /fs/ess/PAS2302/Subbi/TURBO/TERBO/heudiconv_1.1.0.sif
-d /fs/ess/PAS2302/Subbi/TURBO/TERBO/data/*/DICOM/{subject}/SCANS/*/DICOM/*
-o /fs/ess/PAS2302/Subbi/TURBO/TERBO/Nifti
-f /fs/ess/PAS2302/Subbi/TURBO/TERBO/Scripts/TERBO/YT/Miami-test-heuristic.py
-s YT-7057704E
-ss 01
-c dcm2niix
-b
--overwrite
Even with the flag --minmeta
I get the same error.
Error:
-bash-4.2$ singularity run --cleanenv /fs/ess/PAS2302/Subbi/TURBO/TERBO/heudiconv_1.1.0.sif -d /fs/ess/PAS2302/Subbi/TURBO/TERBO/data/*/DICOM/{subject}/SC
bi/TURBO/TERBO/Nifti -f /fs/ess/PAS2302/Subbi/TURBO/TERBO/Scripts/TERBO/YT/Miami-test-heuristic.py -s YT-7057704E -ss 01 -c dcm2niix -b overwrite
INFO: Running heudiconv version 1.1.0 latest 1.1.0
INFO: Need to process 1 study sessions
INFO: PROCESSING STARTS: {'subject': 'YT-7057704E', 'outdir': '/fs/ess/PAS2302/Subbi/TURBO/TERBO/Nifti/', 'session': '01'}
INFO: Processing 4116 dicoms
WARNING: YT-7057704E' label contained non-alphanumeric character(s), it was cleaned to be 'YT7057704E'
INFO: Analyzing 4116 dicoms
/users/PCON0381/madhavans 16/.local/lib/python3.9/site-packages/nibabel/nicom/dicomwrappers.py: 536: UserWarning: Derived images found and removed
warnings.warn("Derived
Traceback (most recent call last):
File "/opt/miniconda-py39_4.12.0/bin/heudiconv", line 8, in <module>
sys.exit (main())
File "/src/heudiconv/heudiconv/cli/run.py", line 30, in main
File "/src/heudiconv/heudiconv/main.py",
line 479, in workflow
File "/src/heudiconv/heudiconv/convert.py", line 217, in prep_conversion
seqinfo = group_dicoms_into_seqinfos (
File "/src/heudiconv/heudiconv/dicoms.py", line 324, in group_dicoms_into_seqinfos
mwinfo = validate_dicom (filename, dcmfilter)
File "/src/heudiconv/heudiconv/dicoms.py", line 161, in validate_dicom
del mw.series_signature [sig]
File "/users/PCON0381/madhavans16/.local/lib/python3.9/site-packages/nibabel/onetime.py", line 142, in get_
val= self.getter(obj)
File "/users/PCON0381/madhavans 16/.local/lib/python3.9/site-packages/nibabel/nicom/dicomwrappers.py",
signature ['image_shape'] = (self.image_shape, eq)
"/users/PCON0381/madhavans16/.local/lib/python3.9/site-packages/nibabel/onetime.py", line 142, in _get_____
workflow(**kwargs)
prep_conversion (
images found and removed")
File
val= self.getter(obj)
File "/users/PCON0381/madhavans16/.local/lib/python3.9/site-packages/nibabel/nicom/dicomwrappers.py",
frame_indices = np.delete(frame_indices, stackid_dim_idx, axis=1)
-bash-4.2$
line 642, in series_signature
line 557, in image_shape
"/opt/miniconda-py39_4.12.0/lib/python3.9/site-packages/numpy/lib/function_base.py", line 5255, in delete
File
axis = normalize_axis_index (axis, ndim)
numpy.exceptions.AxisError: axis 1 is out of bounds for array of dimension 1
I don’t think its an issue with the actual DICOM files because I can individually convert them to Nifti using dcm2niix.