SwedishNational7TMRI / 7T_BIDS_organiser

Tools to organise 7T data into BIDS structure
MIT License
0 stars 0 forks source link

Include session-level #8

Open finnlennartsson opened 1 year ago

finnlennartsson commented 1 year ago

This is the line/s where a session-level can go in https://github.com/SwedishNational7TMRI/7T_BIDS_organiser/blob/9772f8f58871df78ff14deac2e354d87e803a917/shell/7Tbids_dicom2bids.sh#L103

I.e. change to something of the lines in https://github.com/SwedishNational7TMRI/7T_BIDS_organiser/blob/9772f8f58871df78ff14deac2e354d87e803a917/shell/7Tbids_dicom2bids.sh


sID=
ssID=

if [  -n $ssID ]; then #the length of ssID  is nonzero = we have a session-level
  heudi_opt="-s ${sID} -ss ${ssID}-c none -b  --overwrite "
else #ssID is empty = we do not have a session-level 
  heudi_opt="-s ${sID} -c none -b  --overwrite "
fi