brainmass


Namebrainmass JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/chaobrain/brainmass
SummaryNone
upload_time2025-09-16 05:11:33
maintainerNone
docs_urlNone
authorBranMass Developers
requires_python>=3.10
licenseApache-2.0 license
keywords neural mass model brain modeling rate model mean field model neuroscience computational neuroscience brain simulation
VCS
bugtrack_url
requirements numpy jax brainunit brainscale braintools brainstate
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # BrainMass

**Whole-brain modeling with differentiable neural mass models**

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)
[![Documentation](https://img.shields.io/badge/docs-brainmass.readthedocs.io-blue.svg)](https://brainmass.readthedocs.io/)

BrainMass is a Python library for whole-brain computational modeling using differentiable neural mass models. Built on JAX for high-performance computing, it provides tools for simulating brain dynamics, analyzing neural networks, and modeling hemodynamic responses.

## Features

- **Neural Mass Models**: Wilson-Cowan model for excitatory-inhibitory population dynamics
- **Hemodynamic Modeling**: BOLD signal simulation using the Balloon-Windkessel model
- **Network Coupling**: Diffusive and additive coupling mechanisms for brain connectivity
- **Noise Modeling**: Ornstein-Uhlenbeck processes for realistic neural noise
- **JAX-Powered**: GPU acceleration and automatic differentiation
- **Real Brain Data**: Example datasets from HCP and other neuroimaging studies

## Installation

### From PyPI (recommended)
```bash
pip install brainmass
```

### From Source
```bash
git clone https://github.com/chaobrain/brainmass.git
cd brainmass
pip install -e .
```

### GPU Support
For CUDA 12 support:
```bash
pip install brainmass[cuda12]
```

For TPU support:
```bash
pip install brainmass[tpu]
```

### Ecosystem

For whole brain modeling ecosystem:
```bash
pip install BrainX 

# GPU support
pip install BrainX[cuda12]

# TPU support
pip install BrainX[tpu]
```


## Dependencies

Core dependencies:
- `jax`: High-performance computing and automatic differentiation
- `numpy`: Numerical computations
- `brainstate`: State management and neural dynamics
- `brainunit`: Unit system for neuroscience
- `brainscale`: Online learning support
- `braintools`: Additional analysis tools

  Optional dependencies:
- `matplotlib`: Plotting and visualization
- `nevergrad`: Parameter optimization

## Documentation

Full documentation is available at [brainmass.readthedocs.io](https://brainmass.readthedocs.io/).

## Contributing

We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

## Citation

If you use BrainMass in your research, please cite:

```bibtex
@software{brainmass,
  title={BrainMass: Whole-brain modeling with differentiable neural mass models},
  author={BrainMass Developers},
  url={https://github.com/chaobrain/brainmass},
  version={0.0.1},
  year={2025}
}
```

## License

BrainMass is licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.

## Support

- **Issues**: [GitHub Issues](https://github.com/chaobrain/brainmass/issues)
- **Documentation**: [ReadTheDocs](https://brainmass.readthedocs.io/)
- **Contact**: chao.brain@qq.com

---

**Keywords**: neural mass model, brain modeling, computational neuroscience, JAX, differentiable programming

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/chaobrain/brainmass",
    "name": "brainmass",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "neural mass model, brain modeling, rate model, mean field model, neuroscience, computational neuroscience, brain simulation",
    "author": "BranMass Developers",
    "author_email": "brainmass Developers <chao.brain@qq.com>",
    "download_url": "https://files.pythonhosted.org/packages/a1/0b/411e4fb4031e2f7d9da6e685b1de5e7007c698ca33e1453f6dbd1f46a913/brainmass-0.0.3.tar.gz",
    "platform": null,
    "description": "# BrainMass\n\n**Whole-brain modeling with differentiable neural mass models**\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)\n[![Documentation](https://img.shields.io/badge/docs-brainmass.readthedocs.io-blue.svg)](https://brainmass.readthedocs.io/)\n\nBrainMass is a Python library for whole-brain computational modeling using differentiable neural mass models. Built on JAX for high-performance computing, it provides tools for simulating brain dynamics, analyzing neural networks, and modeling hemodynamic responses.\n\n## Features\n\n- **Neural Mass Models**: Wilson-Cowan model for excitatory-inhibitory population dynamics\n- **Hemodynamic Modeling**: BOLD signal simulation using the Balloon-Windkessel model\n- **Network Coupling**: Diffusive and additive coupling mechanisms for brain connectivity\n- **Noise Modeling**: Ornstein-Uhlenbeck processes for realistic neural noise\n- **JAX-Powered**: GPU acceleration and automatic differentiation\n- **Real Brain Data**: Example datasets from HCP and other neuroimaging studies\n\n## Installation\n\n### From PyPI (recommended)\n```bash\npip install brainmass\n```\n\n### From Source\n```bash\ngit clone https://github.com/chaobrain/brainmass.git\ncd brainmass\npip install -e .\n```\n\n### GPU Support\nFor CUDA 12 support:\n```bash\npip install brainmass[cuda12]\n```\n\nFor TPU support:\n```bash\npip install brainmass[tpu]\n```\n\n### Ecosystem\n\nFor whole brain modeling ecosystem:\n```bash\npip install BrainX \n\n# GPU support\npip install BrainX[cuda12]\n\n# TPU support\npip install BrainX[tpu]\n```\n\n\n## Dependencies\n\nCore dependencies:\n- `jax`: High-performance computing and automatic differentiation\n- `numpy`: Numerical computations\n- `brainstate`: State management and neural dynamics\n- `brainunit`: Unit system for neuroscience\n- `brainscale`: Online learning support\n- `braintools`: Additional analysis tools\n\n  Optional dependencies:\n- `matplotlib`: Plotting and visualization\n- `nevergrad`: Parameter optimization\n\n## Documentation\n\nFull documentation is available at [brainmass.readthedocs.io](https://brainmass.readthedocs.io/).\n\n## Contributing\n\nWe welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## Citation\n\nIf you use BrainMass in your research, please cite:\n\n```bibtex\n@software{brainmass,\n  title={BrainMass: Whole-brain modeling with differentiable neural mass models},\n  author={BrainMass Developers},\n  url={https://github.com/chaobrain/brainmass},\n  version={0.0.1},\n  year={2025}\n}\n```\n\n## License\n\nBrainMass is licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.\n\n## Support\n\n- **Issues**: [GitHub Issues](https://github.com/chaobrain/brainmass/issues)\n- **Documentation**: [ReadTheDocs](https://brainmass.readthedocs.io/)\n- **Contact**: chao.brain@qq.com\n\n---\n\n**Keywords**: neural mass model, brain modeling, computational neuroscience, JAX, differentiable programming\n",
    "bugtrack_url": null,
    "license": "Apache-2.0 license",
    "summary": null,
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/chaobrain/brainmass",
        "homepage": "http://github.com/chaobrain/brainmass",
        "repository": "http://github.com/chaobrain/brainmass"
    },
    "split_keywords": [
        "neural mass model",
        " brain modeling",
        " rate model",
        " mean field model",
        " neuroscience",
        " computational neuroscience",
        " brain simulation"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1e86643fc34370c601fbe50b8edf54d234c6a2d65eb333bcfdfd03b5dcca790c",
                "md5": "58904686a1a6ae04d0087c2c32fec61b",
                "sha256": "1c8a5d1e4eb7e179b1f2052fad46a37d52baa4bc3ca498eb52f369c025759ace"
            },
            "downloads": -1,
            "filename": "brainmass-0.0.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "58904686a1a6ae04d0087c2c32fec61b",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.10",
            "size": 49482,
            "upload_time": "2025-09-16T05:11:32",
            "upload_time_iso_8601": "2025-09-16T05:11:32.877839Z",
            "url": "https://files.pythonhosted.org/packages/1e/86/643fc34370c601fbe50b8edf54d234c6a2d65eb333bcfdfd03b5dcca790c/brainmass-0.0.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a10b411e4fb4031e2f7d9da6e685b1de5e7007c698ca33e1453f6dbd1f46a913",
                "md5": "dfa53a62bf40a62b0ab4b32a85f0b52d",
                "sha256": "aa47e9dd4d8dd1172ac2b948c32de7085ccbbddefbdf2bfbbdb0e7e59db05846"
            },
            "downloads": -1,
            "filename": "brainmass-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "dfa53a62bf40a62b0ab4b32a85f0b52d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 40851,
            "upload_time": "2025-09-16T05:11:33",
            "upload_time_iso_8601": "2025-09-16T05:11:33.901831Z",
            "url": "https://files.pythonhosted.org/packages/a1/0b/411e4fb4031e2f7d9da6e685b1de5e7007c698ca33e1453f6dbd1f46a913/brainmass-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-16 05:11:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "chaobrain",
    "github_project": "brainmass",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "jax",
            "specs": []
        },
        {
            "name": "brainunit",
            "specs": []
        },
        {
            "name": "brainscale",
            "specs": []
        },
        {
            "name": "braintools",
            "specs": []
        },
        {
            "name": "brainstate",
            "specs": [
                [
                    ">=",
                    "0.1.8"
                ]
            ]
        }
    ],
    "lcname": "brainmass"
}
        
Elapsed time: 2.51778s