Skip to content
Snippets Groups Projects
Commit b8d8856c authored by nkindlon's avatar nkindlon
Browse files

Fixed test for Bam vs Bgzip to allow for empty references.

parent fb901324
No related branches found
No related tags found
No related merge requests found
...@@ -175,9 +175,8 @@ bool InputStreamMgr::detectBamOrBgzip(int &numChars, int currChar, bool &mustApp ...@@ -175,9 +175,8 @@ bool InputStreamMgr::detectBamOrBgzip(int &numChars, int currChar, bool &mustApp
_bamReader = new BamTools::BamReader(); _bamReader = new BamTools::BamReader();
_bamReader->OpenStream(_finalInputStream); _bamReader->OpenStream(_finalInputStream);
QuickString bamHeader(_bamReader->GetHeaderText()); QuickString bamHeader(_bamReader->GetHeaderText());
BamTools::RefVector bamRefs(_bamReader->GetReferenceData());
if (bamHeader.empty() || bamRefs.empty()) { if (bamHeader.empty()) {
//This is NOT a bam file. //This is NOT a bam file.
_pushBackStreamBuf->clear(); _pushBackStreamBuf->clear();
_compressedSaveData.clear(); _compressedSaveData.clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment