Source code for cicada.analysis.cicada_hubs_analysis

from cicada.analysis.cicada_analysis import CicadaAnalysis


[docs]class CicadaHubsAnalysis(CicadaAnalysis): def __init__(self): """ A list of :param data_to_analyse: list of data_structure :param family_id: family_id indicated to which family of analysis this class belongs. If None, then the analysis is a family in its own. :param data_format: indicate the type of data structure. for NWB, NIX """ super().__init__(name="Hub cells", family_id="Connectivity", short_description="Find out about hub cells")
[docs] def check_data(self): """ Check the data given one initiating the class and return True if the data given allows the analysis implemented, False otherwise. :return: a boolean """ super().check_data() self.invalid_data_help = "Not implemented yet" return False if self._data_format != "nwb": # non NWB format compatibility not yet implemented return False return True
[docs] def update_original_data(self): """ To be called if the data to analyse should be updated after the analysis has been run. :return: boolean: return True if the data has been modified """ pass
[docs] def run_analysis(self, **kwargs): """ test :param kwargs: :return: """ for data in self._data_to_analyse: print(f"Hub cells ----- {data.identifier}")