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

Commit

Permalink
MANTA-1211/[#99] Fix graph file output issue
Browse files Browse the repository at this point in the history
A bug was preventing the binary graph file from being written out by
EstimateSVLoci when multi-region is used and no candidate SV content
is found in the targeted regions. Fixed in this patch.

Closes #99.
  • Loading branch information
ctsa committed Aug 29, 2017
1 parent f94557f commit 8381b73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/c++/lib/applications/EstimateSVLoci/EstimateSVLoci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ runESLRegion(

if (! isMultiRegion)
{
// Save the locus set directly in single-region mode to avoid the object copy
locusFinder.getLocusSet().save(opt.outputFilename.c_str());
}
else
Expand Down Expand Up @@ -179,7 +180,8 @@ runESL(const ESLOptions& opt)
runESLRegion(opt, region, mergedSet);
}

if (! mergedSet.empty())
const bool isMultiRegion(opt.regions.size()>1);
if (isMultiRegion)
{
mergedSet.save(opt.outputFilename.c_str());
}
Expand Down

0 comments on commit 8381b73

Please sign in to comment.