Skip to content

Commit 1008650

Browse files
Dom LaetschDom Laetsch
authored andcommitted
...
1 parent 6a902ec commit 1008650

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/BtCore.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,16 @@ def parseCovs(self, covLibObjs):
228228
base_cov_dict, covLib.reads_total, covLib.reads_mapped, read_cov_dict = BtIO.readBam(covLib.f, set(self.dict_of_blobs))
229229
else:
230230
base_cov_dict, covLib.reads_total, covLib.reads_mapped, read_cov_dict = BtIO.readSam(covLib.f, set(self.dict_of_blobs))
231-
if covLib.reads_total == 0 or not len(base_cov_dict) == self.seqs:
232-
print BtLog.warn['4'] % covLib.f
231+
if covLib.reads_total == 0:
232+
print BtLog.warn_d['4'] % covLib.f
233233
for name, base_cov in base_cov_dict.items():
234234
cov = base_cov / self.dict_of_blobs[name].agct_count
235235
covLib.cov_sum += cov
236236
self.dict_of_blobs[name].addCov(covLib.name, cov)
237237
self.dict_of_blobs[name].read_cov = {covLib.name : read_cov_dict[name]}
238238
elif covLib.fmt == 'cas':
239239
cov_dict, covLib.reads_total, covLib.reads_mapped, read_cov_dict = BtIO.readCas(covLib.f, self.order_of_blobs)
240-
if covLib.reads_total == 0 or not len(cov_dict) == self.seqs:
240+
if covLib.reads_total == 0:
241241
print BtLog.warn['4'] % covLib.f
242242
for name, cov in cov_dict.items():
243243
covLib.cov_sum += cov

0 commit comments

Comments
 (0)