RADAR Data Pulls¶
Shared with the CNT
This procedure runs on infrastructure the lab and the CNT operate together. The CNT manual keeps its own copy; changes to the shared steps are agreed with the CNT.
What this page tells you
Request RADAR imaging pulls via redcap.link/RADAR (PI fills out), then on MJ0HKNDA map \isilon-cardiology\mim_anon, rsync to BSC /project/davis_group_1, fix chown/chmod, run dcm2niix/BIDS, and move dicoms to Borel/Sauce.
Submitting data requests¶
The PI submits the RADAR application to request a RADAR data pull: https://redcap.link/RADAR. RADAR then sends a welcome email. The points it covers are:
- RADAR no longer transfers studies containing PHI. The metadata and pixel data in the request are fully de-identified. If the IRB has permitted it, RADAR can provide a linking table (a CSV file or similar) that connects the PHI (an MRN or accession number) with the study ID.
- The folder structure of de-identified studies is described in the RADAR FAQ: FAQ | RADAR | Perelman School of Medicine at the University of Pennsylvania (upenn.edu)
- RADAR does not store or operate on the data. The cost of image storage and compute is the lab's responsibility. RADAR can help plan or estimate these costs.
- For an industry-sponsored research project, Penn must sign off on the transfer of imaging data off site before the transfer begins, for example through a data use agreement.
- RADAR quotes an anticipated cost based on the number of imaging studies in the application. The true cost depends on the number of studies transferred, which can be lower if some studies are not in the VNA, or higher if there are more new studies than anticipated. Approximate numbers are acceptable for budgeting a grant proposal.
Steps to transfer data from UPHS fileshare to CNT¶
- Log in to the Hayden Hall kitchen UPHS Windows 10 computer MJ0HKNDA.
- You can log in in person or remotely (through https://pennmedaccess.uphs.upenn.edu/my.policy) using your UPHS/PennMed account (not your PMACS account).
- This assumes you have a PennMed account.
- Open File Explorer and map the
\\isilon-cardiology\mim_anonnetwork drive.- This is the folder that RADAR uploads the CNT's data pulls to.
- Right-click "This PC", then click "Map network drive".
- Select the "Y:" drive, then for Folder enter
\\isilon-cardiology\mim_anon. - The data pull is usually stored in a subfolder named after the requestor, e.g.
\\isilon-cardiology\mim_anon\<your-folder>. - RADAR must first grant your PennMed account access to the network drive.
- Open a Cygwin Terminal window and create a new destination folder in the PMACS BSC Cluster.
- Open Cygwin Terminal.
ssh pennkey@bscsub.pmacs.upenn.eduand enter your PMACS password.cd /project/davis_group_1/insert_project_foldermkdir new_destination_folder
- Open a second Cygwin Terminal window and run
rsyncto copy the data pull to BSC.- Open a new Cygwin Terminal window.
- Every new window opens in your
/home/UPHS_usernamefolder.
- Every new window opens in your
- Run
rsync -avPhi --stats /cygdrive/y/<your-folder>/ pennkey@bscsub.pmacs.upenn.edu:/project/davis_group_1/insert_project_folder/new_destination_folder/ > rsync_log_RADAR_2000-01-01.txt- The source data is in
/cygdrive/y/<your-folder>/, because\\isilon-cardiology\mim_anonis mapped to the "Y:" drive and the data is stored in\\isilon-cardiology\mim_anon\<your-folder>. - The destination folder is
/project/davis_group_1/insert_project_folder/new_destination_folder/in BSC. - This command saves the output of
rsync -avPhi --statsto a log file calledrsync_log_RADAR_2000-01-01.txt. Unless you change the file path, the log file is stored locally on the UPHS computer in your/home/UPHS_usernamefolder.
- The source data is in
- Open a new Cygwin Terminal window.
- Depending on the size of the data pull,
rsynctakes many hours to run. You can close the computer, but leave the Cygwin Terminal window open. Do not exit out of it. - Once
rsyncis finished, log in to the BSC Cluster from your own computer and fix the file permissions as needed.- Usually you need to recursively change the group ownership of every file and folder in the data pull so that the
davisgroupgroup has access. In BSC, runchown -R :davisgroup /project/davis_group_1/insert_project_folder/new_destination_folder - You may also need to change the
rwxpermissions of the files and folders. If needed, runchmod -R 750 /project/davis_group_1/insert_project_folder/new_destination_folderto giverwxaccess to the user,r-xaccess to the group, and no access to others.- This reference explains
chmodandrwxaccess: https://quickref.me/chmod
- This reference explains
- Usually you need to recursively change the group ownership of every file and folder in the data pull so that the
- Run
dcm2niixand/or BIDS on the imaging data. - Once the
niftiandjsonfiles are generated, theniftifiles stay on BSC and the originaldicomfiles are saved to the CETS Sauce storage server.- Run
rsyncto copy thedicomfiles to the Borel compute server (files stored on Borel are physically stored on Sauce):rsync -ah --stats /project/davis_group_1/insert_project_folder/new_destination_folder/nifti pennkey@borel.seas.upenn.edu:/data/Human_Data/insert_project_folder/- The source folder is
/project/davis_group_1/insert_project_folder/new_destination_folder/niftiin BSC. - The destination folder is
/data/Human_Data/insert_project_folder/in Borel/Sauce.
- The source folder is
- Once you have confirmed that the
dicomfiles have been transferred to Sauce/Borel, delete thedicomfiles from BSC:rm -r /project/davis_group_1/insert_project_folder/new_destination_folder/dicom
- Run