Skip to content

Commit c7ff4e2

Browse files
Changes so we can keep using the old SAM stuff for now
1 parent 86be463 commit c7ff4e2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/load_data_for_complexity.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#include <sstream>
2424
#include <unistd.h>
2525
#include <unordered_map>
26+
#include <random>
2627

2728
#include "GenomicRegion.hpp"
2829
#include "MappedRead.hpp"
29-
#include <random>
30-
//#include "RNG.hpp"
30+
#include "htslib_wrapper_deprecated.hpp"
3131

3232
using std::string;
3333
using std::vector;
@@ -189,7 +189,7 @@ size_t
189189
load_counts_BAM_se(const string &input_file_name,
190190
vector<double> &counts_hist) {
191191
const string mapper = "general";
192-
SAMReader sam_reader(input_file_name, mapper);
192+
SAMReader_deprecated sam_reader(input_file_name, mapper);
193193
if(!sam_reader)
194194
throw runtime_error("problem opening input file "
195195
+ input_file_name);
@@ -339,7 +339,7 @@ load_counts_BAM_pe(const bool VERBOSE,
339339
vector<double> &counts_hist) {
340340

341341
const string mapper = "general";
342-
SAMReader sam_reader(input_file_name, mapper);
342+
SAMReader_deprecated sam_reader(input_file_name, mapper);
343343

344344
// check sam_reader
345345
if(!sam_reader)

src/to-mr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "OptionParser.hpp"
3030
#include "smithlab_utils.hpp"
3131
#include "smithlab_os.hpp"
32-
#include "htslib_wrapper.hpp"
32+
#include "htslib_wrapper_deprecated.hpp"
3333
#include "MappedRead.hpp"
3434

3535
using std::string;
@@ -205,7 +205,7 @@ main(int argc, const char **argv) {
205205
<< "[output file: "
206206
<< (outfile.empty() ? "stdout" : outfile) << "]" << endl;
207207

208-
SAMReader sam_reader(mapped_reads_file, mapper);
208+
SAMReader_deprecated sam_reader(mapped_reads_file, mapper);
209209
unordered_map<string, SAMRecord> dangling_mates;
210210

211211
size_t count = 0;

0 commit comments

Comments
 (0)