A toolbox for computing LBOs of brainmaps, as well as their gradients, projecting, resampling and comparing brain maps
Project description
The neuroshape toolbox is designed to run both functional and geometric eigenmodes using the Connectopic Laplacian approach for resting-state functional gradients Haak et al. (2018), our lab’s approach (Borne et al. (2023)) to producing and analyzing task-driven gradients using psychophysiological interactions, and the Laplace-Beltrami Operator on a finite vertex mesh as built in ShapeDNA (see also Reuter et al. (2006) and Wachinger et al. (2015)).
Installation requirements
neuroshape works with Python 3.8+ and utilizes the following dependencies:
nibabel (>=3.0)
nilearn (>=0.7)
numpy (>=1.14)
scikit-learn (>=0.17)
scipy
lapy (>=0.7)
scikit-sparse (>=0.4.8)
neuromaps
VERY IMPORTANT:
In order to use much of the functionality of this code, you must:
Install FreeSurfer and source it on your OS path.
Install Connectome Workbench and source it on your OS path.
Install Gmsh and source it on your OS path.
Source MATLAB on your OS path.
See instructions here on how to source binaries to path.
The python script volume_eigenmodes.py was sourced from the BrainEigenmodes repository. Please cite their Nature paper (Pang et al. 2023) if you use that.
The MATLAB scripts in neuroshape/functions/wishart were sourced from the HCPpipelines repository and related Neuroimage paper (Glasser et al. 2013). Please be sure to cite them if you use the --filter functionality in connectopic_laplacian.py.
Installation
Download from source:
git clone https://github.com/breakspear/neuroshape
Additionally, as several C extensions must be built from source to use, install them with:
git clone https://github.com/breakspear/neuroshape
cd neuroshape
python setup.py build
python setup.py install
This will install the module in your environment’s (or /usr/local/python/) site-packages directory. You can then import the extension into your own code:
from neuroshape.eta import eta_squared
similarity = eta_squared(matrix_2d)
We are working on implementing full documentation for all extensions and tools in this package. As the project is in a rapid development stage, we appreciate your patience.
Citation
If you use the neuroshape toolbox, please cite our paper ….. If you use the subroutines involved, such as lapy or volume_eigenmodes.py, please be sure to cite the original authors.
License
This work is licensed under a BSD 3-Clause “New” or “Revised” License.
Copyright (C) 2023 Systems Neuroscience Group Newcastle. Please read the full license here before use.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for neuroshape-0.0.1-py3.10-macosx-10.9-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285392f003448be351a0c06806780b4c8201945a95a7651334f91a73b3e149c4 |
|
MD5 | 4e830aa071862afbb45f861bc54cc63c |
|
BLAKE2b-256 | 19639425ed3f0f8ec89cca2be051bed6ea3621fbb8bf32a2866448e4f9f0b4d9 |
Hashes for neuroshape-0.0.1-py3.7-macosx-10.9-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1633071e71130346bf405688de2511a3cdcf1edb11ce1525f5f1c09054e8eed |
|
MD5 | c0d106e9a70b51bc747c09124b85403e |
|
BLAKE2b-256 | ef6e5efd843574d256b495046d6a3e40f7f52c82d943c3054d8dfa8e8e2c61a9 |
Hashes for neuroshape-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0043fd8b6f4499d7f78c455fd23924ff1d2e268feb0b4dea0ed40884638386a |
|
MD5 | d9314ad61a306b32380bdca56c06f335 |
|
BLAKE2b-256 | 8a0247ba9e505152232d3e0ae2d7b6eb02e1e6c9e05458694fdf579b7d62cdaf |