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

Issue during conversion when localizer dicoms missing #40

Closed
dlevitas opened this issue Feb 26, 2019 · 1 comment
Closed

Issue during conversion when localizer dicoms missing #40

dlevitas opened this issue Feb 26, 2019 · 1 comment

Comments

@dlevitas
Copy link

dlevitas commented Feb 26, 2019

Hello,

I've been getting some data off our scanner (Siemens MAGNETOM PRISMA), and have been using dcm2bids and dcm2niix (v1.0.20181125) to properly get it into BIDS format. I just ran into an issue with one participant where the conversion is offset by one sidecar.

Sidecars matching:
MATCH           002_sub-001_T1w_MPR_20180928130637.json
MATCH           003_sub-001_T1w_MPR_20180928130637.json
MATCH           004_sub-001_SpinEchoFi..PA_20180928130637.json
MATCH           005_sub-001_SpinEchoFi..AP_20180928130637.json
MATCH           006_sub-001_cmrr_mbep2..OL_20180928130637.json
MATCH           007_sub-001_cmrr_mbep2..OL_20180928130637.json
MATCH           008_sub-001_cmrr_mbep2..OL_20180928130637.json
MATCH           009_sub-001_cmrr_mbep2..OL_20180928130637.json
MATCH           010_sub-001_cmrr_mbep2..OL_20180928130637.json
MATCH           011_sub-001_cmrr_mbep2..OL_20180928130637.json
MATCH           012_sub-001_cmrr_mbep2..OL_20180928130637.json
MATCH           013_sub-001_cmrr_mbep2..OL_20180928130637.json
NO MATCH        014_sub-001_T2w_SPC_20180928130637.json

Unlike other data in this dataset, there are no localizer dicoms for this subject. Normally the sidecar filenames are:

001*=localizer
002*=non-normalized T1w
003*=normalized T1w

However, for this subject, it's:

001*=non-normalized T1w
002*=normalized T1w

This is the only discrepancy I've found that may be causing my issue, but I'm unsure why, and wanted to see if anyone has any guidance regarding this?

For reference, this is the config file for this subject:

{
   "descriptions": [
      {
         "dataType": "anat", 
         "modalityLabel": "T1w", 
         "criteria": {
            "SidecarFilename": "002*"
         }
      }, 
      {
         "dataType": "fmap", 
         "modalityLabel": "epi", 
         "criteria": {
            "SidecarFilename": "003*"
         }
      }, 
      {
         "dataType": "fmap", 
         "modalityLabel": "epi", 
         "criteria": {
            "SidecarFilename": "004*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "005*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "006*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "007*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "008*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "009*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "010*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "011*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "012*"
         }
      }, 
      {
         "dataType": "anat", 
         "modalityLabel": "T2w", 
         "criteria": {
            "SidecarFilename": "013*"
         }
      }
   ]
}

Thank you for the assistance.

Dan

@dlevitas
Copy link
Author

Update:
Adjusting the SidecarFilename values fixes the issue, but I'm still curious as to why.

{
   "descriptions": [
      {
         "dataType": "anat", 
         "modalityLabel": "T1w", 
         "criteria": {
            "SidecarFilename": "003*"
         }
      }, 
      {
         "dataType": "fmap", 
         "modalityLabel": "epi", 
         "criteria": {
            "SidecarFilename": "004*"
         }
      }, 
      {
         "dataType": "fmap", 
         "modalityLabel": "epi", 
         "criteria": {
            "SidecarFilename": "005*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "006*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "007*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "008*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "009*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "010*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "011*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "012*"
         }
      }, 
      {
         "dataType": "func", 
         "modalityLabel": "bold", 
         "customLabels": "task-std", 
         "criteria": {
            "SidecarFilename": "013*"
         }
      }, 
      {
         "dataType": "anat", 
         "modalityLabel": "T2w", 
         "criteria": {
            "SidecarFilename": "014*"
         }
      }
   ]
}

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

1 participant