Network
flagged: boolname: strnetwork_data: Dictstyle: TypingStyletags: TagListtechnical_info: TechnicalInfoDictuid: strConstructor, please do not overwrite this method, use the init method instead Leave the constructor without parameters.
Adds a compound
CompoundAdds a product
ReactionAdds a simulation
SimulationDictAdd technical information on the resource. Technical info are useful to set additional information on the resource.
TechnicalInfoYou can redefine this method to define custom logic to check this resource. If there is a problem with the resource, return a string that define the error, otherwise return None This method is called on output resources of a task. If there is an error returned, the task will be set to error and next proceses will not be run. It is also call when uploading a resource (usually for files or folder), if there is an error returned, the resource will not be uploaded
OptionalClone the resource to create a new instance with a new id. It copies the RFields.
ResourceTypeCheck that a compound exists in the network
CompoundboolReturns a deep copy
NetworkCreate the input stoichiometric matrix of the network
We define by input stoichiometric matrix, the submatrix of the stoichimetric matrix involving the consumed compounds
bool - Truebool - FalseDataFrameCreate the non-steady stoichiometric matrix of the network
We define by non-steady stoichiometric matrix, the submatrix of the stoichimetric matrix involving the non-steady compounds (e.g. extra-cellular, biomass compounds)
bool - Truebool - FalseDataFrameCreate the output stoichiometric matrix of the network
We define by input stoichiometric matrix, the submatrix of the stoichimetric matrix involving the excreted compounds
bool - Truebool - FalseDataFrameCreate the steady stoichiometric matrix of the network
We define by steady stoichiometric matrix, the submatrix of the stoichimetric matrix involving the steady compounds (e.g. intra-cellular compounds)
bool - FalseDataFrameCreate the full stoichiometric matrix of the network
DataFrameDumps the network
bool - FalseNetworkDictFlatten the id of a compartment
CompartmentstrFlatten the id of a compound
CompoundstrFlatten the id of a reaction
ReactionstrGet the biomass compounds if it exists
CompoundGet the biomass reaction if it exists
ReactionGet a compound by its id.
strCompoundGet all compound ids
ListGet compound stats as JSON
dictGet compound stats as table
TableGet a compound by its chebi id and compartment.
strOptionalListGet the compounds in a compartments
ListDictYou can redefine this method to set a name of the resource. When saving the resource the name will be saved automatically This can be useful to distinguish this resource from another one or to search for the resource
strGet the default style of the resource
TypingStyleGet the id of the resource model in the database. It is provided by the system for input resources of a task.
strGet the name of the resource or the default name if the name is None
strGet the non-steady compounds
bool - FalseDictGet number of compounds
intGet number of reactions
intGet the reaction bounds [lb, ub]
DataFrameGet a reaction by its ec number.
strReactionGet a reaction by its id.
strReactionGet a reaction by its rhea id.
strReactionGet all reaction ids
ListGather and return networks stats
dictGet stats as JSON
dictGet the steady compounds
bool - FalseDictReturn the summary of the network
dictGet the technical information of the resource
strTechnicalInfoGet the total absolute flux as table
TableReturn True if the network has sink reaction, False otherwise
boolThis can be overwritten to perform custom initialization of the resource. This method is called after the init (constructor) of the resource. The values of RFields are set when this method is called.
Merge with another network
Networkbool - FalseCheck that a reaction exists in the network
ReactionboolRemove a compound from the network
strRemove a reaction from the network
strSet the name of the resource. You can override this method to force a format for the name of the resource.
OptionalSet simulations
DictReturns a CSV representation of the network
strReturns a DataFrame representation of the network
DataFrameReturns a string representation of the network
strReturns a Table representation of the network
TableSet a compound recon tag
AnydictSet a ec recon tag
AnydictSet a reaction recon tag
AnydictReturns the name of the class
bool - Falsebool - Falsebool - FalsestrCopy the style of the resource with the possibility to override some properties. Useful when settings the style for a task based on the resource style.
strTypingIconTypestrTypingIconColorTypingStyleAnyReturns the full name of the class
bool - Falsebool - FalsestrstrVersionGet the human name of the object
strGet the short description of the object
strGet the style of the object
TypingStyleGet the typing name of the object Ex: 'RESOURCE.gws_core.Table'
strTypingNameObjGet all the classes that inherit this class
ListCreate a Network from JSON data
NetworkDictstrbool - Falsebool - Falsestrbool - FalseNetwork