Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Removed redundant assertion in roimethstat.
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzhou committed Oct 28, 2015
1 parent ab957e2 commit 38d2b0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/analysis/roimethstat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ not_methpipe_load_cpgs(const string &cpgs_file,

vector<GenomicRegion> cpgs_in;
ReadBEDFile(cpgs_file, cpgs_in);
assert(check_sorted(cpgs_in));
if (!check_sorted(cpgs_in))
throw SMITHLABException("regions not sorted in file: " + cpgs_file);
throw SMITHLABException("CpGs not sorted in file: " + cpgs_file);

for (size_t i = 0; i < cpgs_in.size(); ++i) {
cpgs.push_back(SimpleGenomicRegion(cpgs_in[i]));
Expand Down Expand Up @@ -396,7 +395,6 @@ main(int argc, const char **argv) {

vector<GenomicRegion> regions;
ReadBEDFile(regions_file, regions);
assert(check_sorted(regions));
if (!check_sorted(regions))
throw SMITHLABException("regions not sorted in file: " + regions_file);

Expand Down

0 comments on commit 38d2b0b

Please sign in to comment.