Giter Club home page Giter Club logo

resting-state-fmri's Introduction

Node embeddings: resting-state-fMRI

Setup

Data

Download clinical.csv and FC/ from Open Access: The Effect of Neurorehabilitation on Multiple Sclerosis โ€“ Unlocking the Resting-State fMRI Data and add it to the root folder.

GCN

For this repository to run, Python 3.7 is required. I specifically used Python 3.7.9 and created a virtualenvironment in a env/ folder with

python -m venv env
source env/bin/activate

Install all required libraries with pip via

pip install -r requirements.txt

and clone GCN into this repository.

git clone https://github.com/tkipf/gcn .

Copy the load_data.patch and the train.patch into the cloned repository and apply the changes with

git apply load_data.patch
git apply train.patch

This modifies the load function in order to work with our data and adds a section to the train script which saves the hidden layer outputs as numpy arrays to files in gcn/gcn/embeddings.

Then install the module with

python setup.py install

The version number in requirements file of this repo should work with the versions in the gcn implementation. For training with our dataset and parameters for a single patients treatment, use:

python train.py --dataset p001_1 --learning_rate 0.01 --epochs 10 --early_stopping 10 --hidden1 10

Creating the Node embeddings

Run the preprocessing.ipynb notebook and follow the commands. You need to execute ./generate_node_embeddings.sh at some point. Make sure that its executable with

chmod +x generate_node_embeddings.sh

resting-state-fmri's People

Contributors

chrisonntag avatar eliasd99 avatar

Watchers

 avatar  avatar

Forkers

eliasd99

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.