owmeta.data_trans.connections module

class owmeta.data_trans.connections.ConnectomeCSVDataSource(*args, **kwargs)[source]

Bases: owmeta.data_trans.common_data.DSMixin, owmeta_core.data_trans.csv_ds.CSVDataSource

A CSV data source whose CSV file describes a neural connectome

Basically, this is just a marker type to indicate what’s described in the CSV – there’s no consistent schema

class owmeta.data_trans.connections.NeuronConnectomeCSVTranslation(**kwargs)[source]

Bases: owmeta_core.datasource.GenericTranslation

class owmeta.data_trans.connections.NeuronConnectomeCSVTranslator(**kwargs)[source]

Bases: owmeta.data_trans.common_data.DTMixin, owmeta_core.data_trans.csv_ds.CSVDataTranslator

Input type(s): ConnectomeCSVDataSource, DataWithEvidenceDataSource

Output type(s): DataWithEvidenceDataSource

output_type

alias of owmeta.data_trans.data_with_evidence_ds.DataWithEvidenceDataSource

translation_type

alias of NeuronConnectomeCSVTranslation

make_translation(sources)[source]

It’s intended that implementations of DataTranslator will override this method to make custom Translations according with how different arguments to Translate are (or are not) distinguished.

The actual properties of a Translation subclass must be defined within the ‘translate’ method

translate(data_source, neurons_source, muscles_source)[source]

Notionally, this method takes a data source, which is translated into some other data source. There doesn’t necessarily need to be an input data source.

class owmeta.data_trans.connections.NeuronConnectomeSynapseClassTranslation(**kwargs)[source]

Bases: owmeta_core.datasource.GenericTranslation

class owmeta.data_trans.connections.NeuronConnectomeSynapseClassTranslator(**kwargs)[source]

Bases: owmeta.data_trans.common_data.DTMixin, owmeta_core.data_trans.csv_ds.CSVDataTranslator

Adds synapse classes to existing connections

output_type

alias of owmeta.data_trans.data_with_evidence_ds.DataWithEvidenceDataSource

translation_type

alias of NeuronConnectomeSynapseClassTranslation

make_translation(sources)[source]

It’s intended that implementations of DataTranslator will override this method to make custom Translations according with how different arguments to Translate are (or are not) distinguished.

The actual properties of a Translation subclass must be defined within the ‘translate’ method

translate(data_source, neurotransmitter_source)[source]

Notionally, this method takes a data source, which is translated into some other data source. There doesn’t necessarily need to be an input data source.