Skip to content

WormNeuroAtlasMAReader

get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT)

Uses WormNeuroAtlasExtSynReader to load data on monoaminergic connectivity using the WormNeuroAtlas package

Returns:

Name Type Description
WormNeuroAtlasExtSynReader

The initialised connectome reader

Source code in cect/WormNeuroAtlasMAReader.py
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
def get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT):
    """Uses ``WormNeuroAtlasExtSynReader`` to load data on monoaminergic connectivity using the **[WormNeuroAtlas package](https://github.com/francescorandi/wormneuroatlas)**

    Returns:
        WormNeuroAtlasExtSynReader: The initialised connectome reader
    """
    if from_cache:
        from cect.ConnectomeDataset import (
            load_connectome_dataset_file,
            get_cache_filename,
        )

        return load_connectome_dataset_file(
            get_cache_filename(__file__.split("/")[-1].split(".")[0])
        )
    else:
        return WormNeuroAtlasExtSynReader(MONOAMINERGIC_SYN_CLASS)