ReferenceLookupData¶
#include <pbbam/PbiLookupData.h>
-
class
PacBio::BAM::
ReferenceLookupData
¶ The ReferenceLookupData class provides quick lookup access to the “CoordinateSortedData” section of the PBI index.
Constructors & Related Methods
-
ReferenceLookupData
()¶ Creates an empty lookup data object.
-
ReferenceLookupData
(const PbiRawReferenceData &rawData)¶ Creates a lookup data object from the corresponding raw data.
- Parameters
rawData
: raw data loaded from a PBI file
Lookup Data Methods
-
IndexRange
Indices
(const int32_t tId) const¶ Retrieves the index range for all records that map to a particular reference.
Client code, such as custom filters, should use this when possible, only touching the raw fields for more complex operations (e.g. when unpacking is necessary).
- Return
- resulting index range [begin, end). If
tId
is unknown, will return IndexRange(-1,-1) . - Parameters
tId
: reference ID to lookup
Lookup Data Members
-
std::unordered_map<int32_t, IndexRange>
references_
¶
-