disbi.validators module

This file collects field validators that are common to the domain of systems biology.

disbi.validators.ec_validator = <django.core.validators.RegexValidator object>

Validator for normal EC numbers.

disbi.validators.short_ec_validator = <django.core.validators.RegexValidator object>

Validator for stunted EC numbers like ‘1.1.-‘.

disbi.validators.validate_flux(value)[source]

Validate that a value is in [-1000, 1000].

disbi.validators.validate_probabilty(value)[source]

Validate that a value is in [0, 1].