Comments (8)
The error occurs when fmriprep tries to load the header of /mnt/BIACnfs/duhsnas-pri.dhe.duke.edu/morey_biac/Lab/Tours/rawdata/sub-COPTSDT09/func/sub-COPTSDT09_task-rest_bold.nii.gz
to determine the number of volumes.
Could you try opening the file to see if it is a valid NIfTI image?
from halfpipe.
If it indeed is an invalid NIfTI image, then we may want to add code to HALFpipe to a) show a warning and then b) exclude the file from analysis.
from halfpipe.
I do open a few of the niftis and they seem fine in fslview. Is it saying a specific nifti is corrupt, or all of them?
from halfpipe.
The error refers to the file I mentioned above, so that would be the one to look at :-)
from halfpipe.
I checked all niftis and they look fine. I think I see where the issue is. Can subject names not have an underscore in them? The subjects are labeled like COPTSD_T01.nii.gz. In some of the error log, it is correct. But in the participant list, the underscore is dropped and the program is looking for "COPTSDT01." For this subject set, I do anat/{subject}.nii.gz. It seems like there is an error if an underscore is in the subject variable. I will try it as COPTSD_{subject}.nii.gz but that doesn't always work for other sites.
The subjects are all labeled as COPTSD_T**, but the list looks like this:
Running fMRIPREP version 20.2.1+halfpipe.2:
│ * BIDS dataset path: /ext/mnt/BIACnfs/duhsnas-pri.dhe.duke.edu/morey_biac/Lab/Tours/rawdata.
│ * Participant list: ['COPTSDT01', 'COPTSDT02', 'COPTSDT03', 'COPTSDT04', 'COPTSDT05', 'COPTSDT06', 'COPTSDT07', 'COPTSDT08', 'COPTSDT09', 'COPTSDT10', 'COPTSDT11', 'COPTSDT12', 'COPTSDT13', 'COPTSDT14', 'COPTSDT15', 'COPTSDT16', 'COPTSDT17', 'COPTSDT18', 'COPTSDT19', 'COPTSDT20', 'COPTSDV01', 'COPTSDV02', 'COPTSDV03', 'COPTSDV05', 'COPTSDV06', 'COPTSDV07', 'COPTSDV10', 'COPTSDV11', 'COPTSDV12', 'COPTSDV14', 'COPTSDV15', 'COPTSDV16', 'COPTSDV17', 'COPTSDV18', 'COPTSDV19', 'COPTSDV20', 'COPTSDV22', 'COPTSDV23', 'COPTSDV24', 'COPTSDV25', 'COPTSDV26', 'COPTSDV27'].
from halfpipe.
I don't think it's about the file names. The error comes from a low-level function for decompressing the .nii.gz
and loading it into memory.
I think the next thing to try would be to unzip the input files, i.e. to run something like for i in *.gz; do gunzip $i; done
in the folder with the image files.
from halfpipe.
Ok, I did some more digging. It seems like this is an issue with an older version of indexed_gzip
(see pauldmccarthy/indexed_gzip#46). The most recent latest
version has upgraded that library, so it should fix this issue. If you have time, it would be great if you could try again with the new version :-)
from halfpipe.
Will close this for now. Please re-open the issue if it turns out that the new release does not solve the issue :-)
from halfpipe.
Related Issues (20)
- Refactor `halfpipe.model` into Pydantic schemas
- Include atlases from <https://github.com/HALFpipe/Atlases> in the container and make them accessible through the user interface
- Use shared memory for `halfpipe.stats.fit`
- There's no file "execgraph.{n_chunks}_chunks.{uuid}.pickle.xz" generated, and there's an error message saying that "halfpipe: error: argument --only-chunk-index: expected one argument". HOT 2
- Node extractfromresultdict failed to run on host HOT 5
- Use SBRef for reports image (if available)
- Move user interface to Textual
- Replace `patsy` with `formulaic`
- Documentation website (Sphinx/ReadTheDocs)
- Separate workflows and interfaces into a Python package to make them re-usable by other projects
- Make code graph and check organization
- Contact FreeSurfer developers about potentially including a license file with the container
- Allow other templates
- Add skull stripping as an UI option
- Replace methods with `nilearn` wherever possible
- Add tutorial for development environent to docs
- Update documentation for task-based features with SPM HOT 2
- Inconsistent naming of get_resource
- Update ANTs version
- Update README
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 halfpipe.