Skip to content

Commit 40a2bf6

Browse files
committed
fix
1 parent fff2b91 commit 40a2bf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ProcessReads.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ void MasterProcessor::writeOutput(std::vector<SplitCode::Results>& rv,
400400
}
401401

402402
void MasterProcessor::writeBam(const std::string& ostr, int readNameLen, int readPair) {
403+
#ifndef NO_HTSLIB
403404
std::istringstream iss(ostr);
404405
std::string read_header;
405406
std::string read_sequence;
@@ -523,6 +524,7 @@ void MasterProcessor::writeBam(const std::string& ostr, int readNameLen, int rea
523524
std::cerr << "Error writing to BAM file... exiting" << std::endl;
524525
exit(1);
525526
}
527+
#endif
526528
}
527529

528530
ReadProcessor::ReadProcessor(const ProgramOptions& opt, MasterProcessor& mp) :

0 commit comments

Comments
 (0)