Skip to content

Support units better than simple strings #375

@hredestig

Description

@hredestig

Summary

AssayVariables, AssayObservables have a unit which is simple string. This works sufficiently for proper units (e.g. umol / ug) but for statistics like 'log fold change' the equality functionality can be misleading.

Motivation

Statistics like 'log fold change' is relative to some other sequence so to test equality it's not enough to check they how they are named, also need to check if they are referring to the same denominator.

Proposed solution

Make unit be either a unit validated by some external library like pint or a declared Statistic with additional properties to add support for the common 'ratio to XXX'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions