Coder Social home page Coder Social logo

don-tpanic / brain_data Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 3.96 MB

Source code for brain data processing and analysis in paper <A controller-peripheral architecture and costly energy principle for learning>

Home Page: https://www.biorxiv.org/content/10.1101/2023.01.16.524194v1

Python 89.54% Dockerfile 10.46%
decoding-algorithm fmri-data-analysis glm

brain_data's Introduction

A controller-peripheral architecture and costly energy principle for learning

Description

This is a complementary repo to which focuses on fMRI BOLD data processing and analysis in this research paper.

Structure and main components

This repo can be roughly divided into two parts: fMRI data processing and fMRI data analysis.
For fMRI data processing,

  1. bids.py organises raw fMRI datasets into the standard Brain Imaging Data Structure (BIDS).
  2. glm.py fits Generalised Linear Models (GLMs) on preprocessed fMRI BOLD data and extracts beta weights for actual analysis.

For fMRI data analysis,

  1. roi_rsa.py runs a similar representational similarity analysis in Mack et al., 2016
  2. pca.py runs a similar analysis in Mack et al., 2020
  3. pca_3runs.py runs a similar analysis in Ahlheim et al., 2018
  4. decoding.py runs a similar neural decoding analysis in Braunlich & Love, 2019

Environment setup

  1. Create a docker file using neurodocker
neurodocker generate docker \
--pkg-manager apt \
--base-image neurodebian:stretch-non-free \
--arg DEBIAN_FRONTEND=noninteractive \
--install convert3d fsl ants gcc g++ graphviz tree \
        git-annex-standalone vim emacs-nox nano less ncdu \
        tig git-annex-remote-rclone octave netbase \
--spm12 version=r7771 \
--miniconda \
version=latest \
conda_install="python=3.8 pytest jupyter jupyterlab jupyter_contrib_nbextensions
                traits pandas matplotlib scikit-learn scikit-image seaborn nbformat
                nb_conda" \
pip_install="https://github.com/nipy/nipype/tarball/master
                https://github.com/INCF/pybids/tarball/master
                nilearn nipy duecredit nbval" \
> nipype.Dockerfile
  1. Build an image based on the dockerfile (make sure the directory where the Dockerfile is is empty). . means using the current directory.
docker build --tag nipype .
  1. Start an iterative session inside the image, changes will be removed after exiting.
docker run -it --rm nipype
  1. Mount a local directory inside the above container’s diretory. Changes made inside the container will change the local container.
docker run -it --rm -v /home/ken/projects/brain_data/:/home/ken/projects/brain_data/ nipype

Attribution

@article {Luo2023.01.16.524194,
    author = {Xiaoliang Luo and Robert M. Mok and Brett D. Roads and Bradley C. Love},
    title = {A controller-peripheral architecture and costly energy principle for learning},
    elocation-id = {2023.01.16.524194},
    year = {2023},
    doi = {10.1101/2023.01.16.524194},
    publisher = {Cold Spring Harbor Laboratory},
}

brain_data's People

Contributors

don-tpanic avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.