Skip to content

Commit 156af47

Browse files
authored
Merge pull request #9 from yfuruta/patch-1
Modification to make "--max-depth" option valid.
2 parents fe77390 + 1357a59 commit 156af47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tinycov/tinycov.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def covplot(
9797
no_filter=no_filter,
9898
circular=circular,
9999
):
100+
max_count=max_depth
100101
coverage = counts[counts.columns[0]].values[::skip]
101102
if bins is None:
102103
centers = counts.index.values[::skip]
@@ -136,7 +137,7 @@ def covplot(
136137
lowest = np.min(counts.iloc[::skip, 0])
137138
if lowest < min_count:
138139
min_count = lowest
139-
if highest > max_count:
140+
if highest < max_count:
140141
max_count = highest
141142

142143
plt.axvline(offset[chrom_id] / scale)

0 commit comments

Comments
 (0)