eXpress “1.5”
|
The HaplotypeHandler class keeps track of sets of transcripts from different chromosomes. More...
#include <targets.h>
Public Member Functions | |
HaplotypeHandler (std::vector< Target * > targets, double alpha) | |
Constructor for the HaplotypeHandler. | |
double | get_mass (const Target *targ, bool with_pseudo) |
Gets the current relative mass of the given target within the set. | |
void | update_mass (const Target *targ, const std::string &frag_name, double align_likelihood, double mass) |
Buffers the mass and likelihood assigned to the given fragment for the given target. |
The HaplotypeHandler class keeps track of sets of transcripts from different chromosomes.
For these sets, a combined likelihood is computed relative to targets not in the set, but abundance within the set is calculated based only on fragments with likelihoods that differ within the set.
Due to how the fragments are processed in the main thread, likelihoods and global assigned masses are stored when first computed and then split within the set (committed) only when it is known that processing of the fragment is complete.
HaplotypeHandler::HaplotypeHandler | ( | std::vector< Target * > | targets, |
double | alpha | ||
) |
Constructor for the HaplotypeHandler.
Provides all targets a shared pointer to this handler, effectively passing ownership to them.
Definition at line 232 of file targets.cpp.