Skip to content

Commit e64edf5

Browse files
committed
minor fix
1 parent c06b3b1 commit e64edf5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

hagfish_coverage_combine

+6-5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ if __name__ == '__main__':
5959

6060
no_seqs_without_coverage = 0
6161
for seqId in seqInfo.keys():
62+
l.debug("processig seqid %s" % seqId)
63+
64+
seqLen = seqInfo[seqId]['length']
6265

6366
r_ok = None
6467
r_low = None
@@ -109,10 +112,8 @@ if __name__ == '__main__':
109112
r_low_ends += d_low_ends
110113

111114
if r_ok != None:
112-
l.info("Processed %s ln %d min/max for ok:%d/%d low:%d/%d high: %d/%d" % (
113-
bamBase, len(d_ok), max(d_ok), min(d_ok),
114-
max(d_low), min(d_low), max(d_high),
115-
min(d_high)))
115+
l.info("Processed %s ln %d max for ok: %d low: %d high: %d" % (
116+
bamBase, len(d_ok), max(d_ok), max(d_low), max(d_high)))
116117
np_savez(os.path.join('combined', seqId),
117118
r_ok = r_ok,
118119
r_high = r_high,
@@ -122,7 +123,7 @@ if __name__ == '__main__':
122123
r_high_ends = r_high_ends,
123124
r_low_ends = r_low_ends)
124125
else:
125-
l.info("PROBLEM - FOUND NOTHING FOR %s" % bamBase)
126+
l.info("PROBLEM - FOUND NOTHING FOR %s/%s" % (bamBase,seqId))
126127
no_seqs_without_coverage += 1
127128

128129
l.info("ignored %d sequences (no coverage??)" % no_seqs_without_coverage)

0 commit comments

Comments
 (0)