Skip to main content

Virtual brain inference.

Project description

Test Documentation Status DOI Docker Build

VBI: Virtual Brain Inference


Getting Started | Documentation |

installation

    conda env create --name vbi python=3.10
    conda activate vbi
    git clone https://github.com/ins-amu/vbi.git
    cd vbi
    pip install .

    # pip install -e .[all,dev,docs]

Using Docker

To use the Docker image, you can pull it from the GitHub Container Registry and run it as follows:

    # Get it without building anything locally
    # without GPU
    docker run --rm -it -p 8888:8888 ghcr.io/ins-amu/vbi:main

    # with GPU
    docker run --gpus all --rm -it -p 8888:8888 ghcr.io/ins-amu/vbi:main


    # or build it locally:
    docker build -t vbi-project .                      # build
    docker run --gpus all -it -p 8888:8888 vbi-project # use with gpu
  • Quick check :
    import vbi
    vbi.tests()
    vbi.test_imports()

    
  #              Dependency Check              
  #                                         
  #  Package      Version       Status        
  #━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 
  #  vbi          v0.1.3        ✅ Available  
  #  numpy        1.24.4        ✅ Available  
  #  scipy        1.10.1        ✅ Available  
  #  matplotlib   3.7.5         ✅ Available  
  #  sbi          0.22.0        ✅ Available  
  #  torch        2.4.1+cu121   ✅ Available  
  #  cupy         12.3.0        ✅ Available  
  #                                          
  #  Torch GPU available: True
  #  Torch device count: 1
  #  Torch CUDA version: 12.1
  #  CuPy GPU available: True
  #  CuPy device count: 1
  #  CUDA Version: 11.8
  #  Device Name: NVIDIA RTX A5000
  #  Total Memory: 23.68 GB
  #  Compute Capability: 8.6

Feedback and Contributions

We welcome contributions to the VBI project! If you have suggestions, bug reports, or feature requests, please open an issue on our GitHub repository. To contribute code, fork the repository, create a new branch for your feature or bugfix, and submit a pull request. Make sure to follow our coding standards and include tests for your changes. For detailed guidelines, please refer to our CONTRIBUTING.md file. Thank you for helping us improve VBI!

Citation

@article{VBI,
  author = {Ziaeemehr, Abolfazl and Woodman, Marmaduke and Domide, Lia and Petkoski, Spase and Jirsa, Viktor and Hashemi, Meysam},
  title = {Virtual Brain Inference (VBI): A flexible and integrative toolkit for efficient probabilistic inference on virtual brain models},
  journal = {bioRxiv},
  year = {2025},
  doi = {10.1101/2025.01.21.633922},
  url = {https://doi.org/10.1101/2025.01.21.633922},
  abstract = {Network neuroscience has proven essential for understanding the principles and mechanisms underlying complex brain (dys)function and cognition. In this context, whole-brain network modeling--also known as virtual brain modeling--combines computational models of brain dynamics (placed at each network node) with individual brain imaging data (to coordinate and connect the nodes), advancing our understanding of the complex dynamics of the brain and its neurobiological underpinnings. However, there remains a critical need for automated model inversion tools to estimate control (bifurcation) parameters at large scales and across neuroimaging modalities, given their varying spatio-temporal resolutions. This study aims to address this gap by introducing a flexible and integrative toolkit for efficient Bayesian inference on virtual brain models, called Virtual Brain Inference (VBI). This open-source toolkit provides fast simulations, taxonomy of feature extraction, efficient data storage and loading, and probabilistic machine learning algorithms, enabling biophysically interpretable inference from non-invasive and invasive recordings. Through in-silico testing, we demonstrate the accuracy and reliability of inference for commonly used whole-brain network models and their associated neuroimaging data. VBI shows potential to improve hypothesis evaluation in network neuroscience through uncertainty quantification, and contribute to advances in precision medicine by enhancing the predictive power of virtual brain models.}
}

This research has received funding from:

  • EU's Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreements:
    • No. 101147319 (EBRAINS 2.0 Project)
    • No. 101137289 (Virtual Brain Twin Project)
    • No. 101057429 (project environMENTAL)
  • Government grant managed by the Agence Nationale de la Recherche:
    • Reference ANR-22-PESN-0012 (France 2030 program)

The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vbi-0.1.3.tar.gz (7.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vbi-0.1.3-cp310-cp310-manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.10

File details

Details for the file vbi-0.1.3.tar.gz.

File metadata

  • Download URL: vbi-0.1.3.tar.gz
  • Upload date:
  • Size: 7.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for vbi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e6d6e95646491116154fde921a8e1df82efae37daa3555938f9838b68dfc2ae9
MD5 8780d2601ccd4dad9155d4bb37d52044
BLAKE2b-256 018c5012bcfca5a55607f2ec280de25f1a9e151a6379d09d788b9246f0e98dd9

See more details on using hashes here.

File details

Details for the file vbi-0.1.3-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vbi-0.1.3-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b855b731d8c0fc8327498bbfbc2e6f4e547d4a0f94019d318933b96cb2f2e61b
MD5 bd57695210a22deb367d118334fb6e12
BLAKE2b-256 cd7bb4d08044decf73a84e5ff373a29b1284b1907828af1e52ad06ee5811f6d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page