Skip to content

Commit 690f020

Browse files
bsrate: Removing debug code left in and reporting the chromosome processed rather than the index of that chromosome for verbose mode
1 parent 0be65ee commit 690f020

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/analysis/bsrate.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,10 @@ main_bsrate(int argc, const char **argv) {
332332
const int32_t the_tid = get_tid(aln);
333333

334334
// make sure all reads from same chrom are contiguous in the file
335-
if (chroms_seen.find(the_tid) != end(chroms_seen)) {
336-
cerr << the_tid << '\t' << current_tid << endl;
335+
if (chroms_seen.find(the_tid) != end(chroms_seen))
337336
throw runtime_error("chroms out of order in mapped reads file");
338-
}
337+
339338
current_tid = the_tid;
340-
if (VERBOSE) cerr << "processing " << the_tid << endl;
341339

342340
chroms_seen.insert(the_tid);
343341

@@ -346,6 +344,9 @@ main_bsrate(int argc, const char **argv) {
346344
throw runtime_error("could not find chrom: " + the_tid);
347345

348346
chrom_idx = chrom_itr->second;
347+
348+
if (VERBOSE) cerr << "processing " << names[chrom_idx] << endl;
349+
349350
use_this_chrom = seq_to_use.empty() || chrom_idx == chrom_idx_to_use;
350351
}
351352

0 commit comments

Comments
 (0)