Installation

Stable release (pip)

To install fPCA from PyPI with pip:

$ pip install Neuro-fPCA-fMRI

This installs the latest stable release and the CLI entry points (fpca-main, preprocess-nii-file, nifti-viewer, compare-pcs).

From sources

The sources for Neuro-fPCA-fMRI can be downloaded from the Github repo.

Clone the repository:

$ git clone https://github.com/yanivassf-lab/fmri
$ cd fmri

Install in editable mode (development):

$ conda install -c conda-forge mamba
$ mamba create -n fpca-env -c conda-forge python=3.11
$ mamba activate fpca-env
$ mamba install -c conda-forge numpy scipy mkl mkl-service pandas matplotlib seaborn scikit-learn scikit-learn-extra imbalanced-learn plotly joblib nilearn nibabel scikit-fda dtaidistance pytorch shap
$ pip install -e .

Verify installation

fpca-main --help
preprocess-nii-file --help
fmri-fpca-pipeline --help