Skip to content

DurbinN2UDataReader

get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT)

Uses DurbinDataReader to load data on N2U connectome

Returns:

Type Description
DurbinDataReader

The initialized N2U connectome reader

Source code in cect/readers/DurbinN2UDataReader.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
def get_instance(from_cache=LOAD_READERS_FROM_CACHE_BY_DEFAULT):
    """Uses ``DurbinDataReader`` to load data on N2U connectome

    Returns:
        (DurbinDataReader): The initialized N2U connectome reader
    """
    if from_cache:
        from cect.ConnectomeDataset import (
            load_connectome_dataset_file,
            get_cache_filename,
        )

        return load_connectome_dataset_file(get_cache_filename("DurbinN2UDataReader"))
    else:
        return DurbinDataReader(worm_strain=N2U_ADULT, include_nmj=True)