Skip to content
Snippets Groups Projects
Commit f760aae1 authored by Aaron's avatar Aaron
Browse files

Fixed chrom allocation bug in genomeCoverageBed.

parent 5f03517c
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,8 @@ void BedGenomeCoverage::CoverageBam(string bamFile) {
// empty the previous chromosome and reserve new
std::vector<DEPTH>().swap(chromCov);
// get the current chrom size and allocate space
// get the current chrom size and allocate space
currChromSize = _genome->getChromSize(currChrom);
if (currChromSize >= 0)
chromCov.resize(currChromSize);
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment