disbi.models module¶
-
class
disbi.models.BiologicalModel(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelBaseclass for clustering the biological entities.
-
class
disbi.models.Checksum(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelModel for storing the checksums of other tables for checking whether data has changed.
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
checksum¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
table_name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
disbi.models.DisbiExperiment[source]¶ Bases:
objectMixin for managing experiments.
-
result_view()[source]¶ Creates a row with information that should be displayed in the data view. Override in your app, if you need specific information in the table.
Returns: OrderedDict – Contains the information for one row of the result table.
-
view()[source]¶ Construct an OrderedDict based on a tuple of column names.
Each column name is either expected to be a method or an attribute of the object. For the keys of the dict, the short_description is preferred. For attributes verbose_name is preferred over name.
Parameters: cols (tuple) – The column names. Returns: OrderedDict – The external representation or view of the experiment object.
-
-
class
disbi.models.DisbiExperimentMetaInfo(*args, **kwargs)[source]¶ Bases:
objectMixin for Experiment proxy model, that fetches additionaly information about the experiment when instantiated.
-
class
disbi.models.MeasurementModel(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelBase class for clustering the measurement models.
-
experiment¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parentis aForwardManyToOneDescriptorinstance.
-
experiment_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-