Loads CNV segment data from a file and caches it in memory. More...
#include <CnvSegmentStore.hpp>
Public Member Functions | |
CnvSegmentStore (const reference::CrrFile &crr, const GenomeMetadata &exp) | |
Loads all CNV segment data from a given export package. | |
bool | hasCalledPloidy () const |
True if the ploidy calls are present in the export package. | |
const CnvSegmentData * | getBestOverlappingSegment (const reference::Range &r) const |
Returns the CNV segment data for the segment with the longest overlap with the given range. | |
void | bindColumns (util::DelimitedFile &df, reference::Range &range, CnvSegmentData &data) |
This function is not a part of the true public interface of this class. |
Loads CNV segment data from a file and caches it in memory.
const CnvSegmentData* cgatools::cgdata::CnvSegmentStore::getBestOverlappingSegment | ( | const reference::Range & | r | ) | const |
Returns the CNV segment data for the segment with the longest overlap with the given range.
In case of a tie, returns the data for the first segment in the reference order.