int64_t AlignmentsBeginOffset;\r
string Filename;\r
string IndexFilename;\r
-
+ \r
// system data\r
bool IsBigEndian;\r
\r
// "public" interface\r
// -------------------------------\r
\r
- // flie operations\r
+ // file operations\r
void Close(void);\r
bool Jump(int refID, int position = 0);\r
void Open(const string& filename, const string& indexFilename = "");\r
int BamReader::GetReferenceCount(void) const { return d->References.size(); }\r
const RefVector BamReader::GetReferenceData(void) const { return d->References; }\r
int BamReader::GetReferenceID(const string& refName) const { return d->GetReferenceID(refName); }\r
+const std::string BamReader::GetFilename(void) const { return d->Filename; }\r
\r
// index operations\r
bool BamReader::CreateIndex(void) { return d->CreateIndex(); }\r
const uint64_t& lastOffset)\r
{\r
// get converted offsets\r
- int beginOffset = bAlignment.Position >> BAM_LIDX_SHIFT;
+ int beginOffset = bAlignment.Position >> BAM_LIDX_SHIFT;\r
int endOffset = (bAlignment.GetEndPosition() - 1) >> BAM_LIDX_SHIFT;\r
\r
// resize vector if necessary\r
// read starts after left boundary\r
if ( bAlignment.Position >= CurrentLeft) { return true; }\r
\r
- // return whether alignment end overlaps left boundary
+ // return whether alignment end overlaps left boundary\r
return ( bAlignment.GetEndPosition() >= CurrentLeft );\r
}\r
\r