Reaction
This class represents metabolic reactions extracted from Rhea database.
Rhea is an expert curated resource of biochemical reactions designed for the annotation of enzymes and genome-scale metabolic networks and models (https://www.rhea-db.org/). Rhea data are available under the Creative Commons License (CC BY 4.0), https://creativecommons.org/licenses/by/4.0/.
:property rhea_id: rhea accession number
:type rhea_id: CharField
:property master_id: master id of the reaction
:type master_id: CharField
:property direction: direction of the reaction
:type direction: CharField (UN = undirected, LR = left-right, RL = right-left, BI = bidirectionnal)
:property biocyc_ids: reaction identifier in the biocyc database
:type biocyc_ids: CharField
:property kegg_id: reaction identifier in the kegg databse
:type kegg_id: CharField
:property substrates: substrates of the reaction
:type substrates: List of Compound
:property products: products of the reaction
:type products: List of Compound
:property enzymes: enzymes of the reaction
:type enzymes: List of Enzyme
created_at: TypedDateTimeUTCdata: dictid: TypedCharFieldlast_modified_at: TypedDateTimeUTCInitialize self. See help(type(self)) for accurate signature.
Appends a biocyc id to the reaction
Anybool - Truebool - Falsebool - Falsebool - Truebool - FalseGet the name. Alias of :meth:get_title
strReturns True if the model is saved in db, False otherwise
boolModelTypeSets the data
set force_insert to True to force creation of the object
set skip_hook to True to skip the before insert or update hook
SelfSet the direction of the reaction
AnySet the KEGG id the reaction
AnySet the master id the reaction
AnySet the name.
strSet the RHEA id the reaction
AnyBaseModelDTOAnyMethod call after all the table are inited
Useful when use DeferredForeignKey to create the foreign key manually latter
Method call after the table is created
Usefull to create the full text indexes
AnyAnybool - Truebool - TrueAnyAnybool - Truebool - TrueAnyAnyAnyAnyAnyReturns the name of the class
bool - Falsebool - Falsebool - FalsestrReturns True if the column exists in the table
strboolAnyAutomically and safely save a list of models in the database. If an error occurs during the operation, the whole transactions is rolled back (if use_transaction=True).
listint - 10000bool - TruelistCreate a foreign key for a Foreign key field only if the foreign key does not exists
AnyMethod to create a full text index
liststrCreates reaction table and related tables.
Extra parameters are passed to :meth:peewee.Model.create_table
AnyDrops reaction table and related tables.
Extra parameters are passed to :meth:peewee.Model.drop_table
Execute a raw SQL query. Can use the [TABLE_NAME] to replace by the table name
strAnyAnystrboolReturns the full name of the class
bool - Falsebool - FalsestrAnyAnystrOptionalGet by ID and throw 404 error if object not found
strModelTypelistlistDatabaseProxyReturns the (current) DbManager of this model
AbstractDbManagerModelMetadataAnyReturns the table name of this class
str | NoneAnyReturns True if the index exists in the table
strboolGet all the classes that inherit this class
AnyAnyInsert multiple items with detailed logging
listint - 10000bool - TrueAnyAnyAnyAnyReturns True if the class has a table name defined
boolAnyAnyAnyAnyAnyAnyPerforms full-text search on the field. Must be overrided by child class to work
strstrModelSelectlist | strModelSelectAnyint - 1int - 50list | strModelSelectAnyAnyAnyAnyAnyAnyAutomically and safely save a list of models in the database. If an error occurs during the operation, the whole transactions is rolled back (if use_transaction=True).
listlistint - 10000bool - TruelistAny