From 38d2b0b6d5f7058c62814ca9404aab005462f1d4 Mon Sep 17 00:00:00 2001 From: mengzhou Date: Wed, 28 Oct 2015 13:58:02 -0700 Subject: [PATCH] Removed redundant assertion in roimethstat. --- src/analysis/roimethstat.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/analysis/roimethstat.cpp b/src/analysis/roimethstat.cpp index 7574ba5..d74b6fd 100644 --- a/src/analysis/roimethstat.cpp +++ b/src/analysis/roimethstat.cpp @@ -86,9 +86,8 @@ not_methpipe_load_cpgs(const string &cpgs_file, vector 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])); @@ -396,7 +395,6 @@ main(int argc, const char **argv) { vector regions; ReadBEDFile(regions_file, regions); - assert(check_sorted(regions)); if (!check_sorted(regions)) throw SMITHLABException("regions not sorted in file: " + regions_file);