eXpress “1.5”

HaplotypeHandler Class Reference

The HaplotypeHandler class keeps track of sets of transcripts from different chromosomes. More...

#include <targets.h>

List of all members.

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.

Detailed Description

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.

Author:
Adam Roberts
Date:
2013 Artistic License 2.0

Definition at line 446 of file targets.h.


Constructor & Destructor Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables