McLean Scans Process

To Download McLean Scans from Eris to Box

  1. Connect to McLean Eris VPN (Tutorial)
  2. On your local computer, in the terminal, (NOT connected via ssh): run this command:
#Copy over mclean mri and phone data: 
rsync -avzP kj110@eristwo.partners.org:'/data/sbdp/PHOENIX/GENERAL/PCX/PC*' '/Users/demo/Library/CloudStorage/Box-Box/(Restricted)_PCR/PCX/mindlamp_mri_data/data'

To Download

On the desktop next to the scanner computer, not scanner computer

  1. Log into box drive on the browser
  2. Navigate to /Restricted_(PCR)/PCX/mindlamp_mri_data/data
  3. Press ‘size’ to see who has a scan— the people with scans will have 15,000+ files
  4. Download the mclean scan folder from box drive online — navigate into the folder that’s formatted PCM2xx_MMDDYYYY

    Screenshot 2025-10-28 at 4.00.49 PM.png

    1. takes ~4hrs per folder (i think? Tbd?), can queue multiple at once
    2. if you can select the location to download to:

      select /Z:/inline/mclean_scans & select ‘All Files’ on the lower right

      fdsfe.png

  5. Open matlab & command line (Look for ‘»’ to find the command line)
    1. Type into ‘»’ the word ‘addFlywheelString’

       >> addFlywheelString
      
    2. Press enter
    3. The gui should pop up
    4. Select the folder with .dcm s (PCM2xx_MMDDYYYY) where 2xx is subject ID
    5. write this flywheel string: fw://022/PCX/PCM2xx/001 where 2xx is subject ID

      Screenshot from 2025-10-28 16-09-25.png

    6. press ‘Start Processing DICOMs’
    7. should take about 45mins
  6. Check log file to make sure the addFlywheelData script has completed
    1. Go to the folder, sort by ‘Modified’ or ‘Name’ and click that and there should be a file called flywheelStringLog.txt which has the log of the process

      Screenshot 2025-10-28 at 4.30.15 PM.png

    2. Open log and make sure the end of the file looks like this

      Screenshot 2025-10-28 at 4.29.46 PM.png

    3. then DELETE the log file before importing to the scanner computer (below)

On scanner computer

  1. Go to “import” (right next to “Export” on the patient browser)
  2. Select “Z” / “inline” folder
  3. Select the PCM2xx_MMDDYYYY folder you want
  4. Press “Import”
    1. takes ~5mins

→ Once ‘imported’, now you need to Export to flywheel

  1. Press “export”
  2. Select participant
  3. Select “Network” tab
  4. Check box for “Flywheel”
  5. Press “export”
    1. takes ~45mins