class lamindb.Modality(name: str, ontology_id: str, abbr: Optional[str], description: Optional[str])#
class lamindb.Modality(*db_args)

Bases: Registry, HasParents, CanValidate

Measurement types of features.


This will soon borrow readout-related records from the experimental factor ontology, see ExperimentalFactor.

  • namestr A name.

  • ontology_idOptional[str] A public ontology ID.

  • abbrOptional[str] An abbreviation.

  • descriptionOptional[str] A description.


id CharField

Universal id, valid across DB instances.

name CharField

Name of the modality (required).

ontology_id CharField

Ontology ID of the modality.

abbr CharField

A unique abbreviation for the modality (optional).

synonyms TextField

Bar-separated (|) synonyms that correspond to this modality.

description TextField


molecule TextField

Molecular experimental factor, parsed from EFO.

instrument TextField

Instrument used to measure, parsed from EFO.

measurement TextField

Phenotypic experimental factor, parsed from EFO.

created_at DateTimeField

Time of creation of record.

updated_at DateTimeField

Time of last update to record.

created_by ForeignKey

Creator of record, a User.

parents ManyToManyField