minoptmax
MinOptMax Classes and Methods¶
This module contains a class and class methods to hold a range of user-specific thresholds.
Each of the three class attributes represents a minimal, optimal, and maximal value.
The three values can be either int or float values but all must be of the same type within one
MinOptMax object (for example, min cannot be a float while max is an int).
Primer3 will use these values downstream to set an allowable range of specific parameters that
inform primer design. For example, Primer3 can constrain primer melting temperature
to be within a range of 55.0 - 65.0 Celsius based on an input
MinOptMax(min=55.0, opt=60.0, max=65.0).
Examples of interacting with the MinOptMax class¶
>>> thresholds = MinOptMax(min=1.0, opt=2.0, max=4.0)
>>> print(thresholds)
(min:1.0, opt:2.0, max:4.0)
>>> list(thresholds)
[1.0, 2.0, 4.0]
Classes¶
MinOptMax
dataclass
¶
Bases:
Stores a minimum, an optimal, and a maximum value (either all ints or all floats).
min must be less than max. opt should be greater than the min
value and less than the max value.
Attributes:
| Name | Type | Description |
|---|---|---|
|
|
the minimum value |
|
|
the optimal value |
|
|
the maximum value |
Raises:
| Type | Description |
|---|---|
|
if min > max |
|
if |