
This constraint is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.
Constraint contributors
bviggiano
Enforce uracil (U) content within a specified range.
Counts uracil, treating DNA thymine (T) as equivalent to RNA uracil (U), and
penalizes deviation from [min_u, max_u].
API Reference
Configuration for the uracil (U) content constraint.The penalty is
0 inside [min_u, max_u] and scales linearly with the deviation
outside it.number
default:"0.0"
Minimum acceptable uracil content percentage (0-100)
number
default:"100.0"
Maximum acceptable uracil content percentage (0-100)
ReturnsConstraintOutput
One result per sequence. score is 0.0 when U content is
within range and scales linearly with deviation otherwise; metadata carries
uracil_content.Usage
python