VFB_connect

VFB_connect is a Python lib that wraps data/knowledgeBase query endpoints and returns DataFrame tables.
Available on PyPi:
pip install vfb_connect
Some examples:
# VFB connect object wraps connections and queries to public VFB servers.
from vfb_connect import vfb
# Get TermInfo for Types/Classes, DataSets and anatomical individuals.
vfb.term('FBbt_00003686')
vfb.terms(['Ito02013'])
vfb.terms(['VFB_00010001'])
# Get all terms relevant to a brain region (all parts and all overlapping cells. You can query by label, symbol, synonym, id or xref.
vfb.get_terms_by_region('fan-shaped body')
TermInfo returns a pandas DataFrame by default but can also return a dict summary or full VFBTerms.
For more examples see our Quick Guide Jupyter Notebook
Cached query results
Several queries — similar morphology, the neurons and neuron types in a region, parts, subtypes, lineage clones and innervating tracts — are answered from VFBquery's pre-computed results at https://v3-cached.virtualflybrain.org, the same source the Virtual Fly Brain website reads. Results and column names are unchanged; the query is simply not re-derived. If the service is unavailable, slow or returns an incomplete result, the original Neo4j/Owlery query runs instead, so nothing depends on it being up.
Results larger than one response (25,000 rows) are paged, with a progress bar — a whole
neuropil can be hundreds of thousands of rows. vfb._load_limit truncates them, and any
truncation is reported rather than silent.
vfb.query_counts(id) returns how many results every query on a term would give, in
one request and without running any of them:
vfb.query_counts('FBbt_00003748')
# {'NeuronsSynaptic': 464, 'PartsOf': 28, 'ImagesNeurons': 226524, ...}
A count of -1 there means VFBquery could not count that query — not that it is empty.
Environment variables:
VFB_USE_CACHED_QUERIES=false— always run queries directly.VFB_CACHED_QUERY_URL— point at a different VFBquery deployment.VFB_CACHED_QUERY_MAX_ROWS— row ceiling before a result is truncated (default 250,000).
Methods that use it also take use_cached=True|False to override per call.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vfb_connect-2.4.1.tar.gz.
File metadata
- Download URL: vfb_connect-2.4.1.tar.gz
- Upload date:
- Size: 49.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f67786ed74ceeae61c8e089fcd545ef7ef80e7c7fe6d2a2235b13e0b70fbdaec
|
|
| MD5 |
078611eb320fc4643f71ad516b133201
|
|
| BLAKE2b-256 |
6092d3e18a1dcf54168911c1ad06db2759253b58788dde686ab487aed6882177
|
Provenance
The following attestation bundles were made for vfb_connect-2.4.1.tar.gz:
Publisher:
publish-to-pypi.yml on VirtualFlyBrain/VFB_connect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vfb_connect-2.4.1.tar.gz -
Subject digest:
f67786ed74ceeae61c8e089fcd545ef7ef80e7c7fe6d2a2235b13e0b70fbdaec - Sigstore transparency entry: 2546102603
- Sigstore integration time:
-
Permalink:
VirtualFlyBrain/VFB_connect@9e8ea8aff2ba26c2ccc1bdc8227ead70db14403b -
Branch / Tag:
refs/tags/v2.4.1 - Owner: https://github.com/VirtualFlyBrain
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@9e8ea8aff2ba26c2ccc1bdc8227ead70db14403b -
Trigger Event:
release
-
Statement type:
File details
Details for the file vfb_connect-2.4.1-py3-none-any.whl.
File metadata
- Download URL: vfb_connect-2.4.1-py3-none-any.whl
- Upload date:
- Size: 9.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ebc2999386b223dcb207bf1514b5a15de66376a2a6fd7679d508ba5d6aaf622
|
|
| MD5 |
f4a1cba6c8d40f036a42852a009b91a5
|
|
| BLAKE2b-256 |
1662c66b4f9eeb3a303b6f882f9ba2f0d346d8a5ca43ac11e38da73bcb0af53a
|
Provenance
The following attestation bundles were made for vfb_connect-2.4.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on VirtualFlyBrain/VFB_connect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vfb_connect-2.4.1-py3-none-any.whl -
Subject digest:
9ebc2999386b223dcb207bf1514b5a15de66376a2a6fd7679d508ba5d6aaf622 - Sigstore transparency entry: 2546102693
- Sigstore integration time:
-
Permalink:
VirtualFlyBrain/VFB_connect@9e8ea8aff2ba26c2ccc1bdc8227ead70db14403b -
Branch / Tag:
refs/tags/v2.4.1 - Owner: https://github.com/VirtualFlyBrain
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@9e8ea8aff2ba26c2ccc1bdc8227ead70db14403b -
Trigger Event:
release
-
Statement type: