disbi.models module¶
-
class
disbi.models.BiologicalModel(*args, **kwargs)¶ Bases:
django.db.models.base.ModelBaseclass for clustering the biological entities.
-
class
disbi.models.Checksum(*args, **kwargs)¶ Bases:
django.db.models.base.ModelModel for storing the checksums of other tables for checking whether data has changed.
-
exception
DoesNotExist¶
-
exception
Checksum.MultipleObjectsReturned¶
-
Checksum.checksum¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Checksum.id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Checksum.objects= <django.db.models.manager.Manager object>¶
-
Checksum.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¶ Bases:
objectMixin for managing experiments.
-
result_view()¶ 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()¶ 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)¶ Bases:
objectMixin for Experiment proxy model, that fetches additionaly information about the experiment when instantiated.
-
class
disbi.models.MeasurementModel(*args, **kwargs)¶ Bases:
django.db.models.base.ModelBase class for clustering the measurement models.
-
MeasurementModel.experiment¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parentis aForwardManyToOneDescriptorinstance.
-
MeasurementModel.experiment_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-