data_base
❭ analyze
❭ split_synapse_activation
split_synapse_activation¶
-
data_base.analyze.split_synapse_activation(sa, selfcheck=
True
, excitatory=EXCITATORY
, inhibitory=INHIBITORY
)¶ Augment a Synapse activation dataframe with a boolean column for excitatory/inhibitory.
- Parameters:¶
sa (
DataFrame
) – A Synapse activation dataframe. Must contain the columnsynapse\_type
.selfcheck (bool) – If
True
, check if all cell types are either excitatory or inhibitory.excitatory (list) – List of excitatory cell types.
inhibitory (list) – List of inhibitory cell types.
- Returns:¶
a
DataFrame
with excitatory synapse activations, and one for inhibitory synapse activations.- Return type:¶
tuple