insects_brains_db
def __init__(self, species=None, sex=None, base_dir=None,
make_root=True, **kwargs):
docstring:
no docstring
def get_brain_id_from_species_name(self, sel_species):
docstring:
no docstring
def get_structures_hierarchy(self):
docstring:
no docstring
def get_structures_reconstructions(self, species, sex):
docstring:
no docstring
def get_brain(self, species=None, sex=None):
docstring:
no docstring
def download_and_write_mesh(self, acronym, obj_path):
docstring:
no docstring
def make_root_mesh(self):
docstring:
no docstring
def _get_structure_mesh(self, acronym, **kwargs):
docstring:
Fetches the mesh for a brain region from the atlas.
:param acronym: string, acronym of brain region
:param **kwargs:
def _check_valid_region_arg(self, region):
docstring:
Check that the string passed is a valid brain region name.
def _check_obj_file(self, region, obj_file):
docstring:
If the .obj file for a brain region hasn't been downloaded already,
this function downloads it and writes it.
:param region: string, acronym of brain region
:param obj_file: path to .obj file to write downloaded data.
def get_region_color(self, regions):
docstring:
Gets the RGB color of a brain region from the atlas.
:param regions: list of regions acronyms.
def get_brain_regions(self, brain_regions, alpha=None, colors=None,
use_original_color=True, **kwargs):
docstring:
no docstring
def add_descendants_to_tree(tree, structure, parent_id=None):
docstring:
Recursively goes through all the the descendants of a region and adds
them to the tree
Last modified 2yr ago