disbi.models module

class disbi.models.BiologicalModel(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Baseclass for clustering the biological entities.

class Meta[source]

Bases: object

abstract = False
class disbi.models.Checksum(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Model for storing the checksums of other tables for checking whether data has changed.

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.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.

class disbi.models.DisbiExperiment[source]

Bases: object

Mixin 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: object

Mixin for Experiment proxy model, that fetches additionaly information about the experiment when instantiated.

class Meta[source]

Bases: object

proxy = True
class disbi.models.MeasurementModel(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Base class for clustering the measurement models.

class Meta[source]

Bases: object

abstract = False
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.parent is a ForwardManyToOneDescriptor instance.

experiment_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class disbi.models.MetaModel(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Baseclass for clustering the entities with meta information.

Meta informations are considered here as entities that can not be measured in an experiment.

class Meta[source]

Bases: object

abstract = False