Git Product home page Git Product logo

rhm_preprocessing's Introduction

RestHoldMove preprocessing

This repository has been made to help searcher to have a quick start on analysing the RestHoldMove dataset available here in openneuro: RestHoldMove dataset.

Introduction

This dataset contains data from externalized DBS patients undergoing simultaneous MEG - STN LFP recordings with (MedOn) and without (MedOn) dopaminergic medication. It has two movement conditions: 1) 5 min of rest followed by static forearm extension (hold) and 2) 5 min of rest followed by self-paced fist-clenching (move). The movement parts contain pauses. Some patients were recorded in resting-state only (rest). The project aimed to understand the neurophysiology of basal ganglia-cortex loops and its modulation by movement and medication. For further information: https://www.nature.com/articles/s41597-024-03768-1

Installation

Use the package manager pip to install every library that are used in the repository.

cd RHM_preprocessing
pip install -r requirements. txt

Usage

Define the root where you downloaded the dataset in the config.py file.

bids_root = '/data/raw/hirsch/RestHoldMove_anon/' #redefine this 

Preprocessing

To perform basic preprocessing and connectivity analysis between MEG-STN in one subject block, run the get_started.py script. (Detailed instructions are provided within the script)

python get_started.py

Technical Validations

The utils folder contains all the scripts used to make the technical validations described in [TBA]. You can run these scripts to perform group analysis for UPDRS, EMG power, MEG-STN coupling. Please note that you would need to run the utils/run_<coherence/emg>.py before starting the utils/run_<coherence/emg>_average.py scripts.

Additionnaly the script utils/technical_validation_utils.py holds function that is used across the whole repository and has not been designed to be run individually.

Figures

python run_updrs.py

UPDRS

python run_emg_average.py

EMG

python run_var_average.py

EMG

python run_coherence_average.py

Coh Left Coh Right

source_reconstruction_example.m [matlab required]

SOURCE

rhm_preprocessing's People

Contributors

fayed-rsl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

suvadeepmaiti

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.