diff --git a/bam_filter/sam_utils.py b/bam_filter/sam_utils.py index d77b9d9..7627add 100644 --- a/bam_filter/sam_utils.py +++ b/bam_filter/sam_utils.py @@ -34,7 +34,7 @@ def get_tad(cov, trim_min=10, trim_max=90): ] if sum(cov) == 0: - return 0, None + return 0, 0 else: return sum(cov) / len(cov), len(cov)