fafbseg.flywire.get_neuropil_volumes¶
- fafbseg.flywire.get_neuropil_volumes(neuropils)[source]¶
Load FlyWire neuropil volumes.
These meshes were originally created by for the JFRC2 brain template (for citation and details see 10.5281/zenodo.10567). Here, we transformed them to FlyWire (FAFB14.1) space.
- Parameters:
neuropils (str | list thereof | None) – Neuropil name(s) - e.g. ‘LH_R’ or [‘LH_R’, ‘LH_L’]. Use
None
to get an array of available neuropils.- Returns:
meshes
- Return type:
single navis.Volume or list thereof
Examples
Load a single volume:
>>> from fafbseg import flywire >>> al_r = flywire.get_neuropil_volumes('AL_R') >>> al_r <navis.Volume(name=AL_R, color=(0.85, 0.85, 0.85, 0.2), vertices.shape=(622, 3), faces.shape=(1240, 3))>
Load multiple volumes:
>>> from fafbseg import flywire >>> al_lr = flywire.get_neuropil_volumes(['AL_R', 'AL_L']) >>> al_lr [<navis.Volume(name=AL_R, color=(0.85, 0.85, 0.85, 0.2), vertices.shape=(622, 3), faces.shape=(1240, 3))>, <navis.Volume(name=AL_L, color=(0.85, 0.85, 0.85, 0.2), vertices.shape=(612, 3), faces.shape=(1228, 3))>]
Get a list of available volumes:
>>> from fafbseg import flywire >>> available = flywire.get_neuropil_volumes(None)