Comments (6)
Hello-
Can you provide the command line call and the full output of my software that generates this error - I can not replicate this on either a MacOS or Linux system. For example, on my computer:
$ ./dcm2niix -z y ~/test_t1
Chris Rorden's dcm2niiX version 1Nov2016 (64-bit Linux)
Found 192 DICOM image(s)
Convert 192 DICOM as /Users/rorden/tst_t1/T1_mprage_ns_sag_p2_iso_1.0mm__1_0004 (256x256x192x1)
compress: "/usr/local/bin/pigz" -n -f "/Users/rorden/tst_t1/T1_mprage_ns_sag_p2_iso_1.0mm__1_0004.nii"
Conversion required 0.358249 seconds.
pigz_mricron is included with the MRIcroGL/dcm2niix distribution from
https://www.nitrc.org/frs/?group_id=889
However, it is not required - my software should fall back to its internal compressor if it can not find the external programs "pigz" (e.g. /usr/local/bin/pigz) or "pigz_mricron". That is why I can not explain your error.
"pigz_mricron" is just a generic compile of pigz, so it might be a touch slower than a copy of pigz compiled just for your hardware.
from dcm2niix.
One explanation for your problem is that the file pigz_mricron exists on your path, but you do not have the execute permissions set. For example, with the output I gave above (compress: "/usr/local/bin/pigz" ...) one can check for executable permissions ('x') with the command
$ ls -l /usr/local/bin/pigz
-rwxr-xr-x 1 rorden staff 240344 Mar 4 2014 /usr/local/bin/pigz
from dcm2niix.
Hi Chris,
thanks for getting back. Yes, the permissions were one of the first things we checked. They're good.
We downloaded and unzipped the package, then from the unzip directory we ran the dcm2niix command. Could it be a path-related issue?
This is the command and output we get:
[maamen@proc001 mricrogl_lx]$ ./dcm2niix /data/dart/evaluation/108-007/DICOM/
Chris Rorden's dcm2niiX version 10oct2016 (64-bit Linux)
Found 6659 DICOM image(s)
slices not stacked: orientation varies (localizer?) [0 1 0 0 0 -1] != [1 0 0 0 0 -1]
Convert 7 DICOM as /data/dart/evaluation/108-007/DICOM/DICOM_localizer_20161017143403_1f (512x512x7x1)
sh: ./pigz_mricron: cannot execute binary file
compress: "./pigz_mricron" -n -f "/data/dart/evaluation/108-007/DICOM/DICOM_localizer_20161017143403_1f.nii"
from dcm2niix.
Hi Chris,
looking a bit more into it, it looks like the dicom to nii conversion worked, and that it is simply the gzip compression that fails. Can we be certain that the dicom to nii conversion worked as intended, and that no information was lost before we crash at the compression step?
from dcm2niix.
the output of dcm2nii are the .nii files, it then calls the external program pigz if you requested compression (and did not use the built-in compressor). So the nit files are fine, you just have to work out why pigz failed. My guess is that you need to install a version of pigz that is compatible with your operating system (I am not familiar with CentOS 7, but perhaps "yum install pigz"). So technically this is not a fault of my software, though in future I will test my pro-compiled tools to make sure they run on CentOS 6 or later (e.g. perhaps pigz_mricron was compiled on a more recent Linux that is not backward compatible.
from dcm2niix.
Thanks for the feedback Chris! Installing pigz seemed to have done the trick!
from dcm2niix.
Related Issues (20)
- v1.0.20230411 removes legitimate b=0 volumes in GE DWI scan after flagging them as "ADC or trace images" HOT 5
- "PhaseEncodingDirectionDisplayed" for GE HOT 2
- Sometimes "FrameTimesStart" missing from BIDS JSON format sidecar HOT 5
- Estimated Gantry Tilt -nan(ind), but Gantry Tilt field is 0 HOT 5
- Please provide instructions HOT 1
- Unable to find any DICOM images if the absolute path of input folder too long HOT 3
- Extract kVp into the json file from DICOM header HOT 1
- Series split into multiple NIfTI volumes unexpectedly HOT 7
- setBidsGE fails to recognize Gradient Echo EPI HOT 4
- Slice timing missing in the json file HOT 2
- Q about where json gets written HOT 6
- Filename oddity in 20240202 for Philips DWI HOT 10
- GE UHP/7T Diffusion SliceTiming HOT 5
- Possible incorrect SliceTiming HOT 16
- Siemens conversion problems (Magnetom Altea) HOT 2
- error dcm2niix using dcm2bids HOT 1
- PET json information HOT 12
- Inquiry on DICOM to NIfTi HOT 4
- Siemens 2D epi TR is incorrect HOT 2
- dcm2niix is incorrectly attempting to use a JPEG:Lossless transfer syntax that was set inside an Original Attributes Sequence HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcm2niix.