Giter Club home page Giter Club logo

hcp-behavioral-domains's Introduction

Exploring the Latent Structure of Behavior Using the Human Connectome Project’s Data

This is the repository to store the analysis code for the paper "Exploring the Latent Structure of Behavior Using the Human Connectome Project’s Data".

System Requirements

To install the required packages and run the code, you need to have a working Python installation with Anaconda and Git installed. It should work on any operating system, but has only been tested on Ubuntu 20.04.4 LTS.

Installation

Get the code

Run in a terminal:

git clone https://github.com/connectomicslab/hcp-behavioral-domains.git

Install the Conda Environment

From the folder you installed this repository in, you can run this to install the conda environment from the environment.yml file:

conda env create -f environment.yml

Then activate it via

conda activate hcp-behavioral-domains

Generate Factor Scores

To generate the factor scores and loadings yourself you can use the pipeline.py script. This will call the exploratory factor analysis pipeline as described in the paper, including preprocessing. It will output the factor scores and loadings.

You need to provide the path to the unrestricted and the restricted behavioral data, as well as a list of the subject IDs you want to process and an output directory. You need to call it from the root directory of this repository:

python pipeline.py /path/to/unrestricted/hcp_behavioral.csv /path/to/restricted/hcp_behavioral_RESTRICTED.csv /path/to/subjects/subject_IDs.csv /path/to/output/directory

The script expects the subject IDs to be separated by returns, in one column. The HCP behavioral data can be used as they come when downloaded from ConnectomeDB.

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.