Comments (7)
It looks like the JSON sidecar associated with the T1w you are trying to process does not have a 'DwellTime' field. The DwellTime value is required for correcting distortion in the anatomicals. The best solution would be to identify this value and add the field to your JSON file, which you get from DICOM field (0019,1018) / 1e-6. For Siemens, 1/(PixelBandwidth * BaseResolution* ParallelReductionFactorInPlane) might give you right value, if you happen to have those fields in the JSON.
If you are running the pipeline in --processing_mode legacy
, without distortion correction, this value isn't needed. I'll update the code to handle this case more gracefully, but an immediate workaround would be to add something like "DwellTime": 0
to your JSON (taking care not to share your BIDS data with this invalid field!)
from hcppipelines.
@rhancockn Add error handling around t1_spacing = layout.get_metadata(t1ws[0])["DwellTime"]
(and maybe t2_spacing = layout.get_metadata(t2ws[0])["DwellTime"]
). If distortion correction is to be done, throw a descriptive error message about why this field is required. Otherwise, set t1_spacing = 'NONE'
.
from hcppipelines.
Thank you @rhancockn. So if I want to run --processing-mode hcp
I'd always need the DwellTime value? Is --processing-mode hcp
the default?
from hcppipelines.
from hcppipelines.
Hiya! I've been trying to run this BIDs/HCP app (https://hub.docker.com/r/bids/hcppipelines) using the dataset from this tutorial (https://bids-apps.neuroimaging.io/tutorial/), and have run into the same error. However, I don't have any access to a JSON file similar to what you've described, despite downloading the tutorial dataset. Is there something I can do to work around this, or am I missing something?
from hcppipelines.
It looks like the JSON sidecar associated with the T1w you are trying to process does not have a 'DwellTime' field. The DwellTime value is required for correcting distortion in the anatomicals. The best solution would be to identify this value and add the field to your JSON file, which you get from DICOM field (0019,1018) / 1e-6. For Siemens, 1/(PixelBandwidth * BaseResolution* ParallelReductionFactorInPlane) might give you right value, if you happen to have those fields in the JSON.
If you are running the pipeline in
--processing_mode legacy
, without distortion correction, this value isn't needed. I'll update the code to handle this case more gracefully, but an immediate workaround would be to add something like"DwellTime": 0
to your JSON (taking care not to share your BIDS data with this invalid field!)
I tried that but run.py
is still complaining about the missing key....
from hcppipelines.
This is still an issue in docker://bids/hcppipelines:v4.3.0-3 , even with --processing_mode legacy
. Setting DwellTime to 0 does serve as a workaround.
from hcppipelines.
Related Issues (20)
- Implement LegacyStyleData HOT 1
- No T2w files found for sub-{subject_label}. Consider --procesing_mode [legacy | auto ]. HOT 6
- BIDs validation fails inside container on previously validated dataset
- BIDs validation fails on previously validated dataset HOT 3
- Validate stage options
- Check file existence
- Reduce the size of the Docker image
- Python type error HOT 1
- BIDs issue- 'BIDS root does not exist' HOT 4
- BIDS App wrapper for HCP Pipelines v4.3.0
- ERROR: crypt() returned null with 4-line file HOT 6
- wb_command not installed in container
- PostFreeSurferPipeline.sh: ERROR: unrecognized option: '--printcom'
- fieldmap for BOLD file not found even though it is present HOT 4
- ICA-FIX implementation for BIDS
- PostFreeSurferPipeline error
- Running FAST segmentation Exception: Not enough classes detected to init KMeans HOT 8
- fail to run latest image in CI
- test data failing HOT 2
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 hcppipelines.