Skip to content

Commit

Permalink
fixed region error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah Wala committed Jun 18, 2015
1 parent 90d77bc commit d73b94b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,12 @@ int main(int argc, char** argv) {
if (opt::verbose)
std::cerr << "...rules: " << opt::rules << std::endl;
walk.SetMiniRulesCollection(opt::rules);

// set the regions to run
if (grv_proc_regions.size())
walk.setBamWalkerRegions(grv_proc_regions.asGenomicRegionVector());


/*SnowTools::GRC rules_rg = walk.GetMiniRulesCollection().getAllRegions();
SnowTools::GRC rules_rg = walk.GetMiniRulesCollection().getAllRegions();
rules_rg.createTreeMap();

if (grv_proc_regions.size() && rules_rg.size()) // intersect rules regions with mask regions
Expand All @@ -156,7 +155,7 @@ int main(int argc, char** argv) {
} else if (!rules_rg.size() && grv_proc_regions.size() > 0) {
std::cerr << "No regions with possibility of reads. This error occurs if no regions in -g are in -k." << std::endl;
return 1;
}*/
}

// should we count all rules (slower)
if (opt::counts_only || opt::counts_file.length())
Expand Down

0 comments on commit d73b94b

Please sign in to comment.