A connectome-constrained deep mechanistic network (DMN) model of the fruit fly visual system in PyTorch.
- Explore connectome-constrained models of the fruit fly visual system.
- Generate and test hypotheses about neural computations.
- Try pretrained models on your data.
- Develop custom models using our framework.
Flyvis is our official implementation of Lappalainen et al., "Connectome-constrained networks predict neural activity across the fly visual system." Nature (2024).
Documentation
For detailed documentation, installation instructions, tutorials, and API reference, visit our documentation website.
Tutorials
Explore our tutorials to get started with flyvis. You can read the prerun tutorials in the docs or try them yourself for a quick start in Google Colab:
-
Explore the Connectome
-
Train the Network on the Optic Flow Task
-
Flash Responses
-
Moving Edge Responses
-
Ensemble Clustering
-
Maximally Excitatory Stimuli
-
Custom Stimuli
Main Results
Find the notebooks for the main results in the documentation.
- Fig. 1: Connectome-constrained and task-optimized models of the fly visual system
- Fig. 2: Ensembles of DMNs predict tuning properties
- Fig. 3: Cluster analysis of DMN ensembles enables hypothesis generation and suggests experimental tests
- Fig. 4: Task-optimal DMNs largely recapitulate known mechanisms of motion computation
Citation
@article{lappalainen2024connectome,
title = {Connectome-constrained networks predict neural activity across the fly visual system},
issn = {1476-4687},
url = {https://doi.org/10.1038/s41586-024-07939-3},
doi = {10.1038/s41586-024-07939-3},
journal = {Nature},
author = {Lappalainen, Janne K. and Tschopp, Fabian D. and Prakhya, Sridhama and McGill, Mason and Nern, Aljoscha and Shinomiya, Kazunori and Takemura, Shin-ya and Gruntman, Eyal and Macke, Jakob H. and Turaga, Srinivas C.},
month = sep,
year = {2024},
}
Links
Correspondence
For questions or inquiries, please contact us.
Release files for flyvis 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flyvis-1.2.0.tar.gz | 30.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flyvis-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.5 MB
Release files / flyvis-1.2.0.tar.gz
| Download URL | flyvis-1.2.0.tar.gz |
|---|---|
| Size | 30.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f0776dd7208fdf857d7665be7ea4ade7f1b5dbac6dbf8002108ef0f5a24771d
|
|
BLAKE2b-256 checksum How to use checksums |
357d677b014a967f844881a7497d6a371b8e924c98e47583bcc6d0fd58452185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.
Transparency logRelease files / flyvis-1.2.0-py3-none-any.whl
| Download URL | flyvis-1.2.0-py3-none-any.whl |
|---|---|
| Size | 385.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af365b16e870111fcb06782a063f6551b05cce9a105c6eaab9c0bda3b017031f
|
|
BLAKE2b-256 checksum How to use checksums |
844bff611ea0a98ee30395b3a716810bf623984b12442d717366170fff6839b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.
Transparency log