|
IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
|
#include <BasePairProbabilities.h>
Public Types | |
| enum class | Status { pending , nonempty , empty , failed } |
Public Member Functions | |
| BasePairProbabilities (size_t targetLength, size_t queryLength, bool collectSeedPairs=false) | |
| void | addRegion (const IndexRange &target, const IndexRange &query, Z_type denominator, const Matrix< Z_type > &masses, const Matrix< unsigned char > *seedPairs=nullptr) |
| void | finalize () |
| void | fail () noexcept |
| Status | status () const |
| Z_type | getZ () const |
| const Matrix< Z_type > & | rawMasses () const |
| bool | collectsSeedPairs () const |
| void | markApproximate () |
| bool | isApproximate () const |
| const Matrix< unsigned char > & | seedPairs () const |
| Matrix< Z_type > | probabilities () const |
Success-only accumulator for one target/query pair. Raw numerators and Z are merged over disjoint searched rectangles, then normalized explicitly. All stored coordinates follow the original sequences' 5'-to-3' order. This is conditional on an allowed interaction, without an unbound-state contribution. A destructor never publishes data. Not thread safe: use one owner per pair.
|
strong |
| IntaRNA::BasePairProbabilities::BasePairProbabilities | ( | size_t | targetLength, |
| size_t | queryLength, | ||
| bool | collectSeedPairs = false |
||
| ) |
Allocate raw masses for the full original target/query sequences.
| targetLength | number of target positions |
| queryLength | number of query positions |
| collectSeedPairs | retain admitted seed-cell annotations for SVG output |
| void IntaRNA::BasePairProbabilities::addRegion | ( | const IndexRange & | target, |
| const IndexRange & | query, | ||
| Z_type | denominator, | ||
| const Matrix< Z_type > & | masses, | ||
| const Matrix< unsigned char > * | seedPairs = nullptr |
||
| ) |
Commit one completed region, after validating ALL sums and disjointness.
| target | inclusive original target region |
| query | inclusive original query region |
| denominator | raw region Z |
| masses | raw region numerators in original orientation (local indices) |
| seedPairs | optional regional seed mask in the same orientation as masses; required when collecting annotations (nonzero denotes an admitted seed pair) |
| on | invalid/overlapping regions or numerical failure, marking failed |
|
inline |
|
inlinenoexcept |
Mark this pair failed after any error or cancellation.
| void IntaRNA::BasePairProbabilities::finalize | ( | ) |
Finalize only after all requested regions succeeded; validate normalized masses, row/column exclusivity and numerical range before publication.
| on | failed computation or inconsistent masses |
|
inline |
|
inline |
| void IntaRNA::BasePairProbabilities::markApproximate | ( | ) |
Mark an ensemble restricted by heuristic continuation choices. Must be called while pending, before publication.
|
inline |
|
inline |