Skip to content

rhhyon/misc-tools

 
 

Repository files navigation

Miscellaneous Tools

This repository contains some miscellaneous utility snippets that may make your life easier.

See the docstring at the beginning of each file for detailed description, usage, examples, etc.

Contents

data_conversion_util.py

A few functions to convert data files between json, csv and python dictionary/list, or wide and long format.

randomization.py

A script that randomize stimuli in a weird way (see the docstring in the file).

trigger_sender.py

Automatically send triggers by generating keyboard presses (so you can test an fMRI task script without an MRI scanner).

organize_as_BIDS.py

Rename and reorganize the fMRI data into the Brain Imaging Data Structure (BIDS).


Neuroimaging Data Snippets:

suma_prep.sh

Prepare parcellation files with SUMA that can be later used to create ROI masks (see create_masks.py) or other things.

create_masks.py

Create ROI masks in native space, given data preprocessed by FMRIPREP/FreeSurfer and prepared with SUMA (see suma_prep.sh).

post_fmriprep_lv1.py

An example for level 1 analysis given data preprocessed by FMRIPREP. This script was adapted from this notebook.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.9%
  • Shell 6.1%