Skip to content

Commit 55a5dc3

Browse files
committed
remove print statements
1 parent ac380c6 commit 55a5dc3

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

hicexplorer/hicCorrectMatrix.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def filter_by_zscore(hic_ma, lower_threshold, upper_threshold, perchr=False):
551551
to avoid introducing bias due to different chromosome numbers
552552
553553
"""
554-
print("filtering by z-score")
554+
log.info("filtering by z-score")
555555
to_remove = []
556556
if perchr:
557557
for chrname in list(hic_ma.interval_trees):
@@ -662,22 +662,15 @@ def main(args=None):
662662
restore_masked_bins=False)
663663

664664
assert matrix_shape == ma.matrix.shape
665-
for idx in outlier_regions:
666-
print(idx, ma.cut_intervals[idx])
667665

668666
if args.filteredBed:
669667
with open(args.filteredBed, 'w') as f:
670668
for outlier_region in set(outlier_regions):
671669
interval = ma.cut_intervals[outlier_region]
672-
f.write('{}\t{}\t{}\t.\t{}\t.\n'.format(interval[0],
673-
str(interval[1]),
674-
str(interval[2]),
675-
interval[3]))
670+
f.write('\t'.join(str(x) for x in interval) + '\n')
676671
# mask filtered regions
677672
ma.maskBins(outlier_regions)
678673
total_filtered_out = set(outlier_regions)
679-
print(outlier_regions, "Bins that are MAD outliers ({:.2f}%) "
680-
"out of {}".format(pct_outlier, ma.matrix.shape[0]))
681674

682675
if args.sequencedCountCutoff and 0 < args.sequencedCountCutoff < 1:
683676
chrom, _, _, coverage = zip(*ma.cut_intervals)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ future >= 0.18
2323
tqdm >= 4.66
2424
hyperopt >= 0.2.7
2525
python-graphviz >= 0.20
26-
scikit-learn == 1.3.2
26+
scikit-learn >= 1.3,<1.4
2727
imbalanced-learn >= 0.11
2828
cleanlab >= 2.5

0 commit comments

Comments
 (0)