Skip to content
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

Does dicomifier support spectroscopy data? #60

Open
Microdeep-ZL opened this issue Oct 18, 2024 · 1 comment
Open

Does dicomifier support spectroscopy data? #60

Microdeep-ZL opened this issue Oct 18, 2024 · 1 comment

Comments

@Microdeep-ZL
Copy link

Hi,

I want to convert Bruker spectroscopy data to DICOM. I tried dicomifier list and dicomifier to-dicom, both threw an error but I'm not sure whether it's because I didn't use dicomifier properly.

(dicomifier) nmr@IMC-SPD-2203281:~/Projects/FSLMRS_test/20240926_145454_mrmd13C_RapidRatAbd_ev02_1_2/7/pdata/1$ ls
2dseq  id  methreco  outd  proc  proc2  proc2s  procs  reco  visu_pars
(dicomifier) nmr@IMC-SPD-2203281:~/Projects/FSLMRS_test/20240926_145454_mrmd13C_RapidRatAbd_ev02_1_2/7/pdata/1$ dicomifier list .
usage: dicomifier list [-h] [--json] [--verbosity {warning,info,debug}] source [source ...]
dicomifier list: error: 'utf-8' codec can't decode byte 0x9c in position 22: invalid start byte
(dicomifier) nmr@IMC-SPD-2203281:~/Projects/FSLMRS_test/20240926_145454_mrmd13C_RapidRatAbd_ev02_1_2/7/pdata/1$ dicomifier to-dicom . ~/Projects/FSLMRS_test/
WARNING - dicomifier: /home/nmr/Projects/FSLMRS_test is not empty
ERROR - dicomifier: . - Could not convert: 'VisuCoreOrientation'
(dicomifier) nmr@IMC-SPD-2203281:~/Projects/FSLMRS_test/20240926_145454_mrmd13C_RapidRatAbd_ev02_1_2/7/pdata/1$ cd ../..
(dicomifier) nmr@IMC-SPD-2203281:~/Projects/FSLMRS_test/20240926_145454_mrmd13C_RapidRatAbd_ev02_1_2/7$ dicomifier list .
usage: dicomifier list [-h] [--json] [--verbosity {warning,info,debug}] source [source ...]
dicomifier list: error: 'utf-8' codec can't decode byte 0xc1 in position 21: invalid start byte
(dicomifier) nmr@IMC-SPD-2203281:~/Projects/FSLMRS_test/20240926_145454_mrmd13C_RapidRatAbd_ev02_1_2/7$ dicomifier to-dicom . ~/Projects/FSLMRS_test/
WARNING - dicomifier: /home/nmr/Projects/FSLMRS_test is not empty
ERROR - dicomifier: pdata/1 - Could not convert: 'VisuCoreOrientation'

And it'll be great if there can be this feature. Thanks!

@lamyj
Copy link
Owner

lamyj commented Oct 22, 2024

There are two different issues here:

  1. dicomifier list should work regardless of the data being listed, so, given the error, there is probably an unexpected encoding in one of the text fields
  2. Conversion of non-image fails since the transform from the gradient coordinate system to the subject coordinate system (stored in the Bruker field VisuCoreOrientation) is missing

Could you

  • post the results of your tests in debug mode: dicomifier list -v debug . and dicomifier to-dicom . ~/Projects/FSLMRS_test/
  • share the data set which is failing (if this is confidential data, any spectroscopy data set would probably do for now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants