Defines lower and upper bounds on compound concentrations. Used in thermodynamic analysis to constrain metabolite concentrations.
Bounds
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Creates a new Bounds instance with default values |
| GetLowerBound | 1 | Gets the lower bound for a compound |
| GetUpperBound | 1 | Gets the upper bound for a compound |
| GetBounds | 1 | Gets the bounds for a compound as a tuple |
| SetLowerBound | 1 | Sets the lower bound for a compound |
| SetUpperBound | 1 | Sets the upper bound for a compound |
| SetBounds | 1 | Sets both bounds for a compound |
| SetBoundsForAll | 1 | Sets the same bounds for multiple compounds |
| GetCustomBoundCompounds | 1 | Gets all compounds with custom bounds |
| IsWithinBounds | 1 | Checks if a concentration is within bounds for a compound |
| GetLogBounds | 1 | Gets the logarithm of the bounds (useful for thermodynamic calculations) |
| Clone | 1 | Creates a copy of this Bounds instance |
| FromCsv | 1 | Creates Bounds from a CSV file |
| ToCsv | 1 | Saves bounds to a CSV file |
| GetDefaultCofactorBounds | 1 | Gets the default bounds for common cofactors |
| ToString | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| DefaultLowerBound | 1 | The default lower bound for concentrations (in molar) |
| DefaultUpperBound | 1 | The default upper bound for concentrations (in molar) |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| _lowerBounds | 1 | Compound-specific lower bounds |
| _upperBounds | 1 | Compound-specific upper bounds |
05 Members
Double, Double)Creates a new Bounds instance with default values
| Name | Type | Description |
|---|---|---|
defaultLower | Double | Default lower bound in molar |
defaultUpper | Double | Default upper bound in molar |
String)Gets the lower bound for a compound
| Name | Type | Description |
|---|---|---|
compoundId | String | The compound identifier |
The lower bound in molar
String)Gets the upper bound for a compound
| Name | Type | Description |
|---|---|---|
compoundId | String | The compound identifier |
The upper bound in molar
String)Gets the bounds for a compound as a tuple
| Name | Type | Description |
|---|---|---|
compoundId | String | The compound identifier |
A tuple of (lower, upper) bounds in molar
String, Double)Sets the lower bound for a compound
| Name | Type | Description |
|---|---|---|
compoundId | String | The compound identifier |
bound | Double | The lower bound in molar |
String, Double)Sets the upper bound for a compound
| Name | Type | Description |
|---|---|---|
compoundId | String | The compound identifier |
bound | Double | The upper bound in molar |
String, Double, Double)Sets both bounds for a compound
| Name | Type | Description |
|---|---|---|
compoundId | String | The compound identifier |
lower | Double | The lower bound in molar |
upper | Double | The upper bound in molar |
IEnumerable(Of String), Double, Double)Sets the same bounds for multiple compounds
| Name | Type | Description |
|---|---|---|
compoundIds | IEnumerable(Of String) | The compound identifiers |
lower | Double | The lower bound in molar |
upper | Double | The upper bound in molar |
Gets all compounds with custom bounds
Set of compound IDs with custom bounds
String, Double)Checks if a concentration is within bounds for a compound
| Name | Type | Description |
|---|---|---|
compoundId | String | The compound identifier |
concentration | Double | The concentration to check |
True if the concentration is within bounds
String)Gets the logarithm of the bounds (useful for thermodynamic calculations)
| Name | Type | Description |
|---|---|---|
compoundId | String | The compound identifier |
A tuple of (ln(lower), ln(upper))
Creates a copy of this Bounds instance
A new Bounds instance with the same values
String)Creates Bounds from a CSV file
| Name | Type | Description |
|---|---|---|
filePath | String | Path to the CSV file |
A new Bounds instance
String, IEnumerable(Of String))Saves bounds to a CSV file
| Name | Type | Description |
|---|---|---|
filePath | String | Path to the CSV file |
compoundIds | IEnumerable(Of String) | Compound IDs to include |
Gets the default bounds for common cofactors
A Bounds instance with cofactor-specific bounds
The default lower bound for concentrations (in molar)
The default upper bound for concentrations (in molar)
Compound-specific lower bounds
Compound-specific upper bounds