PyOpenWorm.data_trans.connections module

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

Bases: PyOpenWorm.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 PyOpenWorm.data_trans.connections.NeuronConnectomeCSVTranslation(**kwargs)[source]

Bases: PyOpenWorm.datasource.GenericTranslation

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

Bases: PyOpenWorm.data_trans.csv_ds.CSVDataTranslator

Input type(s): PyOpenWorm.data_trans.connections.ConnectomeCSVDataSource, PyOpenWorm.data_trans.data_with_evidence_ds.DataWithEvidenceDataSource

Output type(s): PyOpenWorm.data_trans.data_with_evidence_ds.DataWithEvidenceDataSource

URI: http://openworm.org/entities/translators/NeuronConnectomeCSVTranslator

output_type

alias of PyOpenWorm.data_trans.data_with_evidence_ds.DataWithEvidenceDataSource

translation_type

alias of NeuronConnectomeCSVTranslation

make_translation(self, 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(self, 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 PyOpenWorm.data_trans.connections.NeuronConnectomeSynapseClassTranslation(**kwargs)[source]

Bases: PyOpenWorm.datasource.GenericTranslation

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

Bases: PyOpenWorm.data_trans.csv_ds.CSVDataTranslator

Adds synapse classes to existing connections

output_type

alias of PyOpenWorm.data_trans.data_with_evidence_ds.DataWithEvidenceDataSource

translation_type

alias of NeuronConnectomeSynapseClassTranslation

make_translation(self, 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(self, 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.