Skip to content

Commit

Permalink
Fix issue with targeted cov calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
rulixxx authored Aug 11, 2023
1 parent 3c3999b commit 9e0bde8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/runNanoSeq.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,17 +728,17 @@ def vcfHeader(args):
iiresult.append(ifrag)
gIntervals = iiresult

# correct total coverage (cctotal) if there are excluded regions
# correct total coverage (cctotal)
xSumCov = 0
for iinterval in xIntervals:
for iinterval in gIntervals:
ichar = iinterval.chr
ibeg = iinterval.beg - 1
iend = iinterval.end - 1
for i in range(math.floor(ibeg/oargs['win']), math.floor(iend/oargs['win']) + 1):
if ( not ichar in chrOffset ) : break
j = i + chrOffset[ichar]
xSumCov += coverage[j][1]
cctotal = cctotal - xSumCov
cctotal = xSumCov

# determine the genomic intervals to give to each job so that each one roughly
# has the same amount of coverage
Expand Down

0 comments on commit 9e0bde8

Please sign in to comment.