reconstruction.ecoli.dataclasses.common_names

This class contains dictionaries of common names and synonyms of simulation elements in sim_data. Common names can be retrieved by calling get_common_names() and a list of synonyms can be retrieved by calling get_synonyms(). Both the common names and synonyms are gathered from relevant columns in raw data files.

class reconstruction.ecoli.dataclasses.common_names.CommonNames(raw_data)[source]

Bases: object

_build_common_names(raw_data)[source]
_build_synonyms(raw_data)[source]
get_common_name(element_id)[source]

Returns the common name of the simulation element with the given ID. If a common name does not exist, returns the original element ID.

Parameters:

element_id (str) – ID of the simulation element

Returns: Common name of the given simulation element (str)

get_synonyms(element_id)[source]

Returns a list of synonyms for the simulation element with the given ID. If a list of synonyms does not exist, returns a singleton list with the original element ID as the only entry.

Parameters:

element_id (str) – ID of the simulation element

Returns: List of synonyms for the given simulation element (str)