blueetl.extract.neurons

Neurons extractor.

Classes

Neurons(df, cached, filtered)

Neurons extractor class.

class blueetl.extract.neurons.Neurons(df: DataFrame, cached: bool, filtered: bool)

Bases: BaseExtractor

Neurons extractor class.

Initialize the extractor.

count_by_neuron_class(observed: bool = True) Series

Return the number of gids for each circuit and neuron class.

Parameters:

observed – If True: only show observed values for categorical groupers. If False: show all values for categorical groupers.

classmethod from_simulations(simulations: Simulations, neuron_classes: dict[str, NeuronClassConfig]) Neurons

Return a new Neurons instance from the given simulations and configuration.

Parameters:
  • simulations – Simulations extractor.

  • neuron_classes – configuration dict of neuron classes to be extracted.

Returns:

new instance.

Return type:

Neurons