fmritools

Python package for the analysis of high-resolution fMRI data.

https://github.com/haenelt/fmritools

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: pubmed.ncbi, ncbi.nlm.nih.gov, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Python package for the analysis of high-resolution fMRI data.

Basic Info
  • Host: GitHub
  • Owner: haenelt
  • License: gpl-3.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 1.83 MB
Statistics
  • Stars: 4
  • Watchers: 0
  • Forks: 2
  • Open Issues: 0
  • Releases: 1
Created about 7 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License Citation

README.md

FmriTools

Python License DOI

Python package for processing and analyzing high-resolution fMRI data. Please be aware that all functions are written for my own convenience and are under continuous development.

Installation

I recommend to use Miniconda to create a new python environment with Python >= 3.6. Then, clone this repository and run the following line from the directory in which the repository was cloned with the environment being activated:

pip install .

Another option is to install the package in development mode by creating a conda.pth (which includes the path of the cloned repository) in the site-packages folder of your conda environment. Necessary external python packages can then be installed by running pip install -r requirements.txt.

The package contains some matlab functions. Please add the following code to the matlab startup.m script. This includes the package to the matlab search path. Next to the root directory of this package, you should add the root directory of SPM12, which is used throughout the package. Of course you have to specify the paths there.

```matlab %------------ FmriTools ------------------------------%

% Root directory of the fmritools package pathfmri = ;

% Root directory of the SPM12 toolbox path_spm12 = ;

% add paths addpath(fullfile(pathfmri, 'matlab')); addpath(genpath(pathspm12));

clear pathfmri pathspm12; %-----------------------------------------------------% ```

Single functions also call the matlab toolboxes OpenFmriAnalysis, knkutils, GLMdenoise, TDM and the SPM12 toolboxes hMRI, PhysIO, and VASA.

Furthermore, some functions need an installation of FreeSurfer, FSL, AFNI, ANTS and/or LAYNII which need to be accessible from the command line.

How I installed gradunwarp

In the following, I list all necessary steps to install the gradunwarp toolbox to run gradient nonlinearity corrections with the scripts gnl_undistortion.py or gnl_undistortion_time.py:

  1. clone the gradunwarp repository git clone https://github.com/Washington-University/gradunwarp.git.
  2. create a second conda environment with python=2.7: conda create -n <env> python=2.7.
  3. activate that environment: conda activate <env>.
  4. install necessary packages: pip install -r requirements.txt. The requirements file is found in the same folder as this readme.
  5. change to the cloned gradunwarp repository.
  6. install the repository with python setup.py install while the conda environment is still activated.
  7. wget "https://github.com/Washington-University/HCPpipelines/raw/stable/global/scripts/GradientDistortionUnwarp.sh".
  8. N.B. call the module gradient_unwarp.py with arguments --numpoints 128 and --interp_order 2 to have good accuracy when working with high-resolution data.

Contact

If you have questions, problems or suggestions regarding the FmriTools package, please feel free to contact me.

Owner

  • Name: Daniel Haenelt
  • Login: haenelt
  • Kind: user
  • Location: Leipzig, Germany
  • Company: Max Planck Institute for Human Cognitive and Brain Sciences

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Haenelt
    given-names: Daniel
    orcid: https://orcid.org/0000-0003-2310-5086
title: FmriTools
version: 1.0.3
doi: 10.5281/zenodo.10573042
date-released: 2022-12-16
url: "https://github.com/haenelt/FmriTools"

GitHub Events

Total
  • Watch event: 1
  • Push event: 30
Last Year
  • Watch event: 1
  • Push event: 30

Dependencies

requirements.txt pypi
  • descartes *
  • gbb *
  • h5py *
  • imageio *
  • matplotlib *
  • nibabel *
  • nilearn *
  • nipype *
  • numpy *
  • pycortex *
  • scikit-image *
  • scipy *
  • sh *
  • shapely *
pyproject.toml pypi
requirements-dev.txt pypi
  • coverage * development
  • pytest * development
requirements-gnl.txt pypi
  • nibabel *
  • numpy *
  • scipy *