Methods module

This module is divided into two parts. The first contains the gapfilling methods, which are used to fill gaps in the metabolic network. The second part contains the reconstruction methods, which are used to reconstruct the metabolic network from the omics data.

Base classes for Gapfilling and Reconstruction

class troppo.methods.base.ContextSpecificModelReconstructionAlgorithm(S, lb, ub, properties)[source]

Bases: object

property properties_class
abstract run()[source]
class troppo.methods.base.GapfillAlgorithm(S, lb, ub, properties)[source]

Bases: object

property properties_class
abstract run()[source]
class troppo.methods.base.GapfillProperties[source]

Bases: PropertyDictionary

This class is used to define the properties of the gap-filling algorithms.

Parameters

base_mandatorydict

Dictionary containing the mandatory properties of the gap-filling algorithm. Includes: solver.

base_optionaldict

Dictionary containing the optional properties of the gap-filling algorithm. Includes: lsystem_args, avbl_fluxes.

decoder_function = {'avbl_fluxes': <function decode_rx_list>, 'lsystem_args': <function GapfillProperties.<lambda>>}
class troppo.methods.base.PropertiesReconstruction[source]

Bases: PropertyDictionary

This class is used to define the properties of the reconstruction algorithm.

Parameters

base_mandatorydict

Dictionary containing the mandatory properties of the reconstruction algorithm. Includes: solver, template_model, omics_type.

base_optionaldict

Dictionary containing the optional properties of the reconstruction algorithm. Includes: env_conditions, flux_threshold.

abstract static from_integrated_scores(scores, **kwargs)[source]
troppo.methods.base.decode_mt_list(x, rx, mt)[source]
troppo.methods.base.decode_rx_list(x, rx, mt)[source]