-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bids2nda error message #14
Comments
Does your input dataset pass the validator?
https://github.com/INCF/bids-validator
…On Fri, May 11, 2018 at 7:31 AM Neggin ***@***.***> wrote:
Hello,
I am getting the following error:
pni-17c02tw0zmg8wl:desktop neggink$ bids2nda ~/desktop/openneuro/conreact/
~/desktop/openneuro/GUID_mapping ~/desktop/openneuro/conreact_NDA
Traceback (most recent call last):
File "/Users/neggink/anaconda/bin/bids2nda", line 11, in
load_entry_point('BIDS2NDA==0.1.0', 'console_scripts', 'bids2nda')()
File
"/Users/neggink/anaconda/lib/python3.6/site-packages/bids2nda/main.py",
line 316, in main
run(args)
File
"/Users/neggink/anaconda/lib/python3.6/site-packages/bids2nda/main.py",
line 207, in run
image_unit4 = units_dict[nii.header.get_xyzt_units()[1]]
KeyError: 'unknown'
Thanks,
Neggin
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOkp0lABmeTUNBEC4ZyIVKVXzAeve9sks5txaCigaJpZM4T7jdz>
.
|
Yes, it did |
It seem that you have 4D files in your dataset that do not have the units for the fourth dimension defined. This is unexpected. Usually only _bold files are 4D and should define (in the nifti header) what is the unit of the 4th dimension (seconds or milliseconds). |
I have come across this problem too. I think it can be avoided by using dcm2niix for conversion from dicom to nifti. If that is not possible you'll have to modify the nifti header. The xyzt_units encodes both spatial and time dimensions as described here: https://brainder.org/2012/09/23/the-nifti-file-format/ So for a scan using mm (2) and seconds (8) the xyzt would be 2 +8 =10 In python:
If something so fundamental is broken in the nifti you should strongly consider converting to nifti with dcm2niix though. If that doesn't solve the issue it should be fixed there. |
Hello, Traceback (most recent call last): |
The NDA has added FLASH files to the 'scan_type' column of their Image03 specification: (https://ndar.nih.gov/data_structure.html?short_name=image03) as "MR structural (FLASH)". Can the converter be modified to include this? Thanks! |
I don't have time to perform this modification myself, but if you send a pull request I would be happy to merge it |
I can help if you want @neggink . I've done that before |
That would be great @leej3 ! Thank you!! |
Ok I've edited the code. so in an environment that doesn't already contains bids2nda install my code:
Then try running it on your data and report back. If it works I'll submit it as a pull request. |
It works! Thank you |
Great. Happy uploading.
…On Tue, Jul 24, 2018 at 3:09 PM, Neggin ***@***.***> wrote:
It works! Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFKsqI2BLNF3eWeYKqI437NcN-Lu7UpYks5uJ3DMgaJpZM4T7jdz>
.
|
Hello, I'm getting the following error: from ._conv import register_converters as _register_converters But I'm unsure why this error is occurring. Thanks! |
Hello,
I am getting the following error:
pni-17c02tw0zmg8wl:desktop neggink$ bids2nda ~/desktop/openneuro/conreact/ ~/desktop/openneuro/GUID_mapping ~/desktop/openneuro/conreact_NDA
Traceback (most recent call last):
File "/Users/neggink/anaconda/bin/bids2nda", line 11, in
load_entry_point('BIDS2NDA==0.1.0', 'console_scripts', 'bids2nda')()
File "/Users/neggink/anaconda/lib/python3.6/site-packages/bids2nda/main.py", line 316, in main
run(args)
File "/Users/neggink/anaconda/lib/python3.6/site-packages/bids2nda/main.py", line 207, in run
image_unit4 = units_dict[nii.header.get_xyzt_units()[1]]
KeyError: 'unknown'
Thanks,
Neggin
The text was updated successfully, but these errors were encountered: