2.1.2. biggr.models#
Module to mimic the cobradb models
Attributes#
Classes#
Makes it easier to reuse cobradb/sqlalchemy code. |
|
Functions#
|
|
|
|
Module Contents#
- biggr.models.OBJECT_CACHE#
- biggr.models.LAZY_LOADING = True#
- biggr.models.T#
- class biggr.models.PropertyNotLoaded#
- biggr.models.ForeignKey#
- biggr.models.UniqueConstraint#
- biggr.models.Enum#
- biggr.models.dummy_f(*args, **kwargs)#
- biggr.models.hybrid_property(f)#
- biggr.models.mapped_column#
- biggr.models.relationship#
- biggr.models.String#
- biggr.models.DateTime#
- biggr.models.HASH_STR_MAX_LEN = 5000#
- biggr.models.custom_enums#
- biggr.models.COMPOUND_TYPE_TO_SBO#
- class biggr.models.DeclarativeBase(**kwargs)#
- class biggr.models.Base(**kwargs)#
Bases:
DeclarativeBase- classmethod from_dict(d)#
- class biggr.models.InChI(**kwargs)#
Bases:
Base- reference_compounds: Mapped[List[ReferenceCompound]]#
- reference_reactive_parts: Mapped[List[ReferenceReactivePart]]#
- key()#
- n_protons()#
- charge()#
- class biggr.models.Taxon(**kwargs)#
Bases:
Base- rank: Mapped[TaxonomicRank]#
- collections: Mapped[List[ModelCollection]]#
- class biggr.models.ModelCollection(**kwargs)#
-
- publication: Mapped[Publication | None]#
- collection_namespace_universal_components: Mapped[List[UniversalComponent]]#
- collection_namespace_universal_reactions: Mapped[List[UniversalReaction]]#
- class biggr.models.Genome(**kwargs)#
Bases:
Base- chromosomes: Mapped[List[Chromosome]]#
- class biggr.models.Chromosome(**kwargs)#
Bases:
Base- genome_regions: Mapped[List[GenomeRegion]]#
- class biggr.models.GenomeRegion(**kwargs)#
-
- chromosome: Mapped[Chromosome | None]#
- class biggr.models.ReferenceCompound(**kwargs)#
-
- compound_type#
- reactive_part_matrix: Mapped[List[ReferenceReactivePartMatrix]]#
- reaction_participants: Mapped[List[ReferenceReactionParticipant]]#
- reference_mappings: Mapped[List[ComponentReferenceMapping]]#
- annotation_mappings: Mapped[List[ReferenceCompoundAnnotationMapping]]#
- get_sbo()#
- class biggr.models.UniversalComponent(**kwargs)#
-
- reference_mapping: Mapped[UniversalComponentReferenceMapping]#
- collection: Mapped[ModelCollection | None]#
- universal_compartmentalized_components: Mapped[List[UniversalCompartmentalizedComponent]]#
- old_bigg_ids: Mapped[List[ComponentIDMapping]]#
- reference_mappings: Mapped[List[ComponentReferenceMapping]]#
- class biggr.models.Component(**kwargs)#
-
- universal_component: Mapped[UniversalComponent]#
- collection: Mapped[ModelCollection | None]#
- compartmentalized_components: Mapped[List[CompartmentalizedComponent]]#
- reference_mappings: Mapped[List[ComponentReferenceMapping]]#
- annotation_mappings: Mapped[List[ComponentAnnotationMapping]]#
- static charge_to_string(coefficient)#
- class biggr.models.ComponentReferenceMapping(**kwargs)#
Bases:
Base- universal_component: Mapped[UniversalComponent]#
- reference_compound: Mapped[ReferenceCompound]#
- universal_component_reference_mapping: Mapped[UniversalComponentReferenceMapping | None]#
- class biggr.models.UniversalComponentReferenceMapping(**kwargs)#
Bases:
Base- universal_component: Mapped[UniversalComponent]#
- mapping: Mapped[ComponentReferenceMapping]#
- class biggr.models.DataSource(**kwargs)#
-
- annotations: Mapped[List[Annotation]]#
- annotation_links: Mapped[List[AnnotationLink]]#
- class biggr.models.Annotation(**kwargs)#
-
- type#
- default_data_source: Mapped[DataSource]#
- properties: Mapped[List[AnnotationProperty]]#
- links: Mapped[List[AnnotationLink]]#
- component_mappings: Mapped[List[ComponentAnnotationMapping]]#
- reaction_mappings: Mapped[List[ReactionAnnotationMapping]]#
- reference_compound_mappings: Mapped[List[ReferenceCompoundAnnotationMapping]]#
- reference_reaction_mappings: Mapped[List[ReferenceReactionAnnotationMapping]]#
- class biggr.models.AnnotationProperty(**kwargs)#
Bases:
Base- type#
- annotation: Mapped[Annotation]#
- value()#
- class biggr.models.AnnotationLink(**kwargs)#
Bases:
Base- data_source: Mapped[DataSource]#
- annotation: Mapped[Annotation]#
- class biggr.models.ComponentAnnotationMapping(**kwargs)#
Bases:
Base- annotation: Mapped[Annotation]#
- class biggr.models.ReactionAnnotationMapping(**kwargs)#
Bases:
Base- annotation: Mapped[Annotation]#
- class biggr.models.ReferenceCompoundAnnotationMapping(**kwargs)#
Bases:
Base- reference_compound: Mapped[ReferenceCompound]#
- annotation: Mapped[Annotation]#
- class biggr.models.ReferenceReactionAnnotationMapping(**kwargs)#
Bases:
Base- reference_reaction: Mapped[ReferenceReaction]#
- annotation: Mapped[Annotation]#
- class biggr.models.Publication(**kwargs)#
Bases:
Base- reference_type#
- publication_models: Mapped[List[PublicationModel]]#
- collections: Mapped[List[ModelCollection]]#
- class biggr.models.PublicationModel(**kwargs)#
Bases:
Base- publication: Mapped[Publication]#
- class biggr.models.GenomeRegionMap(**kwargs)#
Bases:
Base- genome_region_1: Mapped[GenomeRegion]#
- genome_region_2: Mapped[GenomeRegion]#
- class biggr.models.Model(**kwargs)#
-
- collection: Mapped[ModelCollection]#
- date_modified: Mapped[datetime.datetime]#
- model_reactions: Mapped[List[ModelReaction]]#
- model_compartmentalized_components: Mapped[List[ModelCompartmentalizedComponent]]#
- model_count: Mapped[ModelCount | None]#
- publication_models: Mapped[List[PublicationModel]]#
- memote_results: Mapped[List[MemoteResult]]#
- class biggr.models.ModelGene(**kwargs)#
Bases:
Base- reaction_matrix: Mapped[List[GeneReactionMatrix]]#
- memote_results: Mapped[List[MemoteResult]]#
- class biggr.models.ModelReaction(**kwargs)#
-
- reaction_matrix: Mapped[List[GeneReactionMatrix]]#
- memote_results: Mapped[List[MemoteResult]]#
- escher_mappings: Mapped[List[ModelReactionEscherMapping]]#
- static create_id(model_id, universal_reaction_id, copy_number)#
- static interpret_id(bigg_id)#
- class biggr.models.GeneReactionMatrix(**kwargs)#
Bases:
Base- model_reaction: Mapped[ModelReaction]#
- class biggr.models.UniversalCompartmentalizedComponent(**kwargs)#
-
- universal_component: Mapped[UniversalComponent]#
- compartment: Mapped[Compartment]#
- compartmentalized_components: Mapped[List[CompartmentalizedComponent]]#
- matrix: Mapped[List[UniversalReactionMatrix]]#
- class biggr.models.CompartmentalizedComponent(**kwargs)#
-
- compartment: Mapped[Compartment]#
- universal_compartmentalized_component: Mapped[UniversalCompartmentalizedComponent]#
- model_compartmentalized_components: Mapped[List[ModelCompartmentalizedComponent]]#
- matrix: Mapped[List[ReactionMatrix]]#
- class biggr.models.ModelCompartmentalizedComponent(**kwargs)#
Bases:
Base- compartmentalized_component: Mapped[CompartmentalizedComponent]#
- memote_results: Mapped[List[MemoteResult]]#
- class biggr.models.Compartment(**kwargs)#
-
- universal_compartmentalized_components: Mapped[List[UniversalCompartmentalizedComponent]]#
- compartmentalized_components: Mapped[List[CompartmentalizedComponent]]#
- class biggr.models.EscherMap(**kwargs)#
Bases:
Base- matrix: Mapped[List[EscherMapMatrix]]#
- class biggr.models.Gene(**kwargs)#
Bases:
GenomeRegion
- class biggr.models.ReferenceReactivePart(**kwargs)#
-
- matrix: Mapped[List[ReferenceReactivePartMatrix]]#
- class biggr.models.ReferenceReactivePartMatrix(**kwargs)#
Bases:
Base- compound: Mapped[ReferenceCompound]#
- reactive_part: Mapped[ReferenceReactivePart]#
- class biggr.models.ReferenceReaction(**kwargs)#
-
- reaction_participants: Mapped[List[ReferenceReactionParticipant]]#
- universal_reactions: Mapped[List[UniversalReaction]]#
- annotation_mappings: Mapped[List[ReferenceReactionAnnotationMapping]]#
- static generate_hash(participants, pattern=False)#
- update_hash()#
- class biggr.models.ReferenceReactionParticipant(**kwargs)#
Bases:
Base- reaction: Mapped[ReferenceReaction]#
- compound: Mapped[ReferenceCompound]#
- side#
- universal_reaction_matrix: Mapped[List[UniversalReactionMatrix]]#
- class biggr.models.UniversalReaction(**kwargs)#
-
- collection: Mapped[ModelCollection | None]#
- reference: Mapped[ReferenceReaction | None]#
- matrix: Mapped[List[UniversalReactionMatrix]]#
- get_sbo(reference)#
- static generate_hash(components)#
- class biggr.models.Reaction(**kwargs)#
-
- collection: Mapped[ModelCollection | None]#
- universal_reaction: Mapped[UniversalReaction]#
- matrix: Mapped[List[ReactionMatrix]]#
- model_reactions: Mapped[List[ModelReaction]]#
- annotation_mappings: Mapped[List[ReactionAnnotationMapping]]#
- static create_id(universal_id, copy_number)#
- static coefficient_to_string(coefficient)#
- static generate_hash(components)#
- class biggr.models.UniversalReactionMatrix(**kwargs)#
Bases:
Base- universal_reaction: Mapped[UniversalReaction | None]#
- reference_reaction_participant: Mapped[ReferenceReactionParticipant | None]#
- universal_compartmentalized_component: Mapped[UniversalCompartmentalizedComponent]#
- reaction_matrices: Mapped[List[ReactionMatrix]]#
- class biggr.models.ReactionMatrix(**kwargs)#
Bases:
Base- universal_reaction_matrix: Mapped[UniversalReactionMatrix]#
- compartmentalized_component: Mapped[CompartmentalizedComponent]#
- class biggr.models.ComponentIDMapping(**kwargs)#
Bases:
Base- new_universal_component: Mapped[UniversalComponent]#
- class biggr.models.MemoteTest(**kwargs)#
-
- results: Mapped[List[MemoteResult]]#
- class biggr.models.MemoteResult(**kwargs)#
Bases:
Base- test: Mapped[MemoteTest]#
- model_reaction: Mapped[ModelReaction | None]#
- model_compartmentalized_component: Mapped[ModelCompartmentalizedComponent | None]#
- result#
- class biggr.models.EscherModule(**kwargs)#
-
- model_reaction_mappings: Mapped[List[ModelReactionEscherMapping]]#