McLean Scans Process
To Download McLean Scans from Eris to Box
- Connect to McLean Eris VPN (Tutorial)
- 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
- Log into box drive on the browser
- Navigate to /Restricted_(PCR)/PCX/mindlamp_mri_data/data
- Press ‘size’ to see who has a scan— the people with scans will have 15,000+ files
Download the mclean scan folder from box drive online — navigate into the folder that’s formatted PCM2xx_MMDDYYYY

- takes ~4hrs per folder (i think? Tbd?), can queue multiple at once
if you can select the location to download to:
select /Z:/inline/mclean_scans & select ‘All Files’ on the lower right

- Open matlab & command line (Look for ‘»’ to find the command line)
Type into ‘»’ the word ‘addFlywheelString’
>> addFlywheelString- Press enter
- The gui should pop up
- Select the folder with .dcm s (PCM2xx_MMDDYYYY) where
2xxis subject ID write this flywheel string:
fw://022/PCX/PCM2xx/001where2xxis subject ID
- press ‘Start Processing DICOMs’
- should take about 45mins
- Check log file to make sure the addFlywheelData script has completed
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

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

then DELETE the log file before importing to the scanner computer (below)
On scanner computer
- Go to “import” (right next to “Export” on the patient browser)
- Select “Z” / “inline” folder
- Select the PCM2xx_MMDDYYYY folder you want
- Press “Import”
- takes ~5mins
→ Once ‘imported’, now you need to Export to flywheel
- Press “export”
- Select participant
- Select “Network” tab
- Check box for “Flywheel”
- Press “export”
- takes ~45mins