# measurements

## BaseMeasurement¶

We will have several subclasses depending on the experiment. They will also provide loss functions tailored to it.

Values of the measurement can have more than one replicate. In fact, single replicates are considered a specific case of a multi-replicate.

Parameters

Name Type Description Default
values Union[float, Iterable[float]] The numeric measurement(s) required
conditions AssayConditions Experimental conditions of this measurement required
components Iterable[kinoml.core.components.MolecularComponent] Molecular entities measured required
strict bool Whether to perform sanity checks at initialization. True

Todo

Investigate possible uses for pint

### sanity_checks(self)¶

Show source code in core/measurements.py
 47 48 49 50  def sanity_checks(self): """ Perform some checks for valid values """ 

Perform some checks for valid values

## PercentageDisplacementMeasurement¶

Measurement where the value(s) must be percentage(s) of displacement.

### sanity_checks(self)¶

Show source code in core/measurements.py
 69 70 71  def sanity_checks(self): super().sanity_checks() assert (0 <= self.values <= 100).all(), f"One or more values are not in [0, 100]" 

Perform some checks for valid values

### to_IC50(self)¶

Show source code in core/measurements.py
 73 74 75 76 77  def to_IC50(self): """ Ideally, self.conditions should contain all we need to do the math here? """ 

Ideally, self.conditions should contain all we need to do the math here?

Last update: April 24, 2020