Code Monkey home page Code Monkey logo

srndna-trustgame's Introduction

SRNDNA: Trust Game Data and Analyses

This repository contains code related to our manuscript, titled "Age-Related Differences in Ventral Striatal and Default Mode Network Function During Reciprocated Trust" (preprint: https://www.biorxiv.org/content/10.1101/2021.07.29.454071v1.abstract). All hypotheses and analysis plans were pre-registered on AsPredicted on 7/26/2018 and data collection commenced on 7/31/2018. Imaging data will be shared via OpenNeuro when the manuscript is posted on bioRxiv.

A few prerequisites and recommendations

  • Understand BIDS and be comfortable navigating Linux
  • Install FSL
  • Install miniconda or anaconda
  • Install PyDeface: pip install pydeface
  • Make singularity containers for heudiconv (version: 0.5.4), mriqc (version: 0.15.1), and fmriprep (version: 20.1.0).

Notes on repository organization and files

  • Raw DICOMS (an input to heudiconv) are private and only accessible locally (Smith Lab Linux: /data/sourcedata)
  • Some of the contents of this repository are not tracked (.gitignore) because the files are large and we do not yet have a nice workflow for datalad. These folders include /data/sourcedata (dicoms) and parts of bids and derivatives.
  • Tracked folders and their contents:
    • code: analysis code
    • templates: fsf template files used for FSL analyses
    • masks: images used as masks, networks, and seed regions in analyses
    • stimuli: psychopy scripts and matlab scripts for delivering stimuli and organizing output
    • bids: bids data (only text files since images need to be obtained from OpenNeuro, as described below)
    • derivatives: derivatives from analysis scripts, but only text files (re-run script to regenerate larger outputs)

Basic commands to reproduce our analyses

# get code and data (two options for data)
git clone https://github.com/DVS-Lab/srndna-trustgame
cd srndna-trustgame
rm -rf bids # remove bids subdirectory since it will be replaced below

# option 1 for data -- if outside of lab and reproducing/extending:
datalad clone https://github.com/OpenNeuroDatasets/ds003745.git bids
# the bids folder is a datalad dataset
# you can get all of the data with the command below:
datalad get sub-*

# option 2 for data -- if inside of lab and testing/training:
bash code/run_prepdata.sh
# this creates the bids data, but restrict to a few subjects to save diskspace

# run preprocessing and generate confounds and timing files for analyses
bash code/run_fmriprep.sh
python code/MakeConfounds.py --fmriprepDir="derivatives/fmriprep"
bash code/run_gen3colfiles.sh

# run statistics
bash code/run_L1stats.sh
bash code/run_L2stats.sh
bash code/run_L3stats.sh

Acknowledgments

This work was supported, in part, by grants from the National Institutes of Health (R21-MH113917 and R03-DA046733 to DVS and R15-MH122927 to DSF) and a Pilot Grant from the Scientific Research Network on Decision Neuroscience and Aging [to DVS; Subaward of NIH R24-AG054355 (PI Gregory Samanez-Larkin)]. We thank Elizabeth Beard for assistance with task coding, Dennis Desalme, Ben Muzekari, Isaac Levy, Gemma Goldstein, and Srikar Katta for assistance with participant recruitment and data collection, and Jeffrey Dennison for assistance with data processing. DVS was a Research Fellow of the Public Policy Lab at Temple University during the preparation of the manuscript (2019-2020 academic year).

srndna-trustgame's People

Contributors

dfareri avatar dvsneuro avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ruimin-kochi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.