This repository contains code related to our SRNDNA grant [Subaward of NIH R24-AG054355 (PI Samanez-Larkin)]. All hypotheses and analysis plans were pre-registered on AsPredicted on 7/26/2018 and data collection commenced on 7/31/2018. We will share all of the resulting imaging data via OpenNeuro at the conclusion of our study (projected for summer 2019). More details about code can be found on the wiki associated with this repository.
Some of the contents of this repository are not tracked (.gitignore) because the files are large. These files/folders specifically include our dicom images, converted images in bids format, fsl output, and derivatives from bids (e.g., mriqc and fmriprep). All scripts will reference these directories, which are only visible on our the primary linux workstation in Smith Lab.
The psychopy folder contains all of the code for stimulus delivery. Input files for psychopy were generated with Matlab (e.g., gen*.m files). We covert the output from psychopy to BIDS events format using Matlab (e.g., convert*BIDS.m)..
Here are the basic steps for transferring and processing data. Note that when you see $sub
, it should be replaced with your subject number (e.g., 102). Remember, always check your input and output for each step. If the input/output isn't clear, look through the scripts and talk to someone.
- Transfer data from XNAT to dicoms folder (e.g., /data/projects/srndna/dicoms/SMITH-AgingDM-102)
- Run heudiconv to convert dicoms to BIDS using
bash run_heudiconv.sh $sub
. - Run PyDeface to remove the face from the anats. This is done using
bash run_pydeface.sh $sub
. This updates permissions. - Run convert*BIDS.m scripts to place events files in bids folder. Note, this is a Matlab script.
- Run mriqc and fmriprep using
bash run_mriqc.sh $sub
andbash run_fmriprep.sh $sub
, respectively. - Convert
*_events.tsv
files to 3-column files (compatible with FSL) using Tom Nichols' BIDSto3col.sh script. This script is wrapped into our pipeline usingbash gen_3col_files.sh $sub
- Run analyses in FSL. Analyses in FSL consist of two stages, which we call "Level 1" (L1) and "Level 2" (L2). The basic analysis scripts follow the same logic as above but also include a run number for L1 analyses:
bash L1_task-trust_model-01.sh $sub $run