
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.
API Reference
Configuration for GC content constraint.This class defines configuration parameters for evaluating the GC content
in DNA or RNA sequences. This penalty scales linearly with deviation from the
acceptable range.
Minimum acceptable GC content percentage (0-100)
Maximum acceptable GC content percentage (0-100)
ReturnsConstraintOutput
One result per sequence. A score of 0.0 indicates
GC content is within the acceptable range [min_gc, max_gc]. Higher
scores indicate greater deviation from the acceptable range, with
penalties scaling linearly with the deviation distance. The metadata
field carries gc_content.Usage
Evaluating GC content constraint:python
Metadata
| Property | Value |
|---|---|
| Key | gc-content |
| Function | gc_content_constraint |
| Category | sequence_composition |
| Mode | discrete |
| Uses GPU | False |
| Supported Types | dna, rna |