fmritools
Python package for the analysis of high-resolution fMRI data.
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
Repository
Python package for the analysis of high-resolution fMRI data.
Basic Info
Statistics
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
FmriTools
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:
- clone the gradunwarp repository
git clone https://github.com/Washington-University/gradunwarp.git. - create a second conda environment with
python=2.7:conda create -n <env> python=2.7. - activate that environment:
conda activate <env>. - install necessary packages:
pip install -r requirements.txt. The requirements file is found in the same folder as this readme. - change to the cloned gradunwarp repository.
- install the repository with
python setup.py installwhile the conda environment is still activated. wget "https://github.com/Washington-University/HCPpipelines/raw/stable/global/scripts/GradientDistortionUnwarp.sh".- N.B. call the module
gradient_unwarp.pywith arguments--numpoints 128and--interp_order 2to 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
- Website: https://haenelt.github.io/
- Repositories: 3
- Profile: https://github.com/haenelt
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
- descartes *
- gbb *
- h5py *
- imageio *
- matplotlib *
- nibabel *
- nilearn *
- nipype *
- numpy *
- pycortex *
- scikit-image *
- scipy *
- sh *
- shapely *
- coverage * development
- pytest * development
- nibabel *
- numpy *
- scipy *