Skip to content

Web guided ReproIn MR scan sequence namer and name->nifti pipeline checker

License

Notifications You must be signed in to change notification settings

WillForan/reproin-namer

 
 

Repository files navigation

Namer

entity_ux/ contains a web app to guide naming sequences as an alternative to this repo's ReproIn Creator Spreadsheet and includes entity and suffix requirments and description pulled from bidsschematools.

It's live on https://NPACore.github.io/reproin-namer (via github pages w/ doc/ symlink)

web app screenshot with tooltips

Resources

Pipeline

  1. 00_dcm-rewrite-from-xlsx.py rewrites (0018, 1030) Protocol Name using ReproIn conforming names in 7T-LunaSPA_ReproIn-SeqName.xlsx (see sheet w/equations on onedrive)
  2. 01_dcm-bids.sh makes
bids/MRRC/SPA_Luna/20231103lunapilotspa2/sub-20231103lunapilotspa2/{anat,dwi,fmap,func}

with contents like

sub-20231103lunapilotspa2_acq-b0pfc_magnitude_dicom/
sub-20231103lunapilotspa2_acq-b0pfc_magnitude_heudiconv323_e1.nii.gz
sub-20231103lunapilotspa2_acq-b0pfc_magnitude_heudiconv323_e2.nii.gz
sub-20231103lunapilotspa2_acq-b0pfc_magnitude_heudiconv323_e3.nii.gz
sub-20231103lunapilotspa2_acq-b0pfc_magnitude_heudiconv323_e4.nii.gz
sub-20231103lunapilotspa2_acq-b0pfc_magnitude_heudiconv323_e5.nii.gz

See output-filelist.txt for full list.

Outputs

Makefile builds files in txt/

file desc
input-orig.txt original dicom headers per folder
input-repoin.txt edited dicom headers using 7T-LunaSPA_ReproIn-SeqName.xlsx (00_dcm-rewrite-from-xlsx.py)
output-filelist.txt heudiconv output: BIDS filelist
validate.txt bids-validator output, using .bidsignore

Issues

  • path SPA_Luna/20231103lunapilotspa2/sub-20231103lunapilotspa2 has redundant ID folder. Should be SPA_Luna/sub-20231103lunapilotspa2?
  • Does not pass bids validation. see validate.txt.
    • multiple echos as e.g. _heudiconv323_e5 instead of _echo-5
    • no .json files!? (see missing in output-filelist.txt)
  • how to encode session? only need in one sequence name?
  • _dicom/ directoires are unwanted (but not a problem for Flywheel?). Ignored with .bidsignore

Dicom Notes

  • 00_dcm-rewrite-from-xlsx.py edits Protocol Name and outputs to folders using Series Number.
  • Study Description sets output folder using heudiconv --files: MRRC^SPA_Luna becomes bids/MRRC/SPA_Luna/
dicom header example value
(0008, 1030) Study Description LO: 'MRRC^SPA_Luna'
(0010, 0010) PAT Patient Name LO: '20231103Luna_PilotSPA2'
(0010, 0020) Patient ID LO: '20231103Luna_PilotSPA2
(0018, 1030) Protocol Name LO: 'mtgre_noMT'
(0020, 0011) Series Number IS: '48'

About

Web guided ReproIn MR scan sequence namer and name->nifti pipeline checker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.0%
  • Python 34.1%
  • Makefile 7.4%
  • Shell 4.9%
  • R 1.6%