From 78b1c1804e37ee8e6c7018fa9c8f3d8775da7078 Mon Sep 17 00:00:00 2001 From: yumisims Date: Tue, 8 Aug 2023 16:50:29 +0100 Subject: [PATCH 1/3] fixed findHalfcoverage --- bin/findHalfcoverage.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/findHalfcoverage.py b/bin/findHalfcoverage.py index f83fdcc5..e165b938 100755 --- a/bin/findHalfcoverage.py +++ b/bin/findHalfcoverage.py @@ -72,7 +72,7 @@ def get_cov_peaks(file): halfPeak = int(peakCov) / 2 qrtPeak = int(peakCov) / 4 - print("#Coverage Peak is %s, HalfPeak is %s, QuarterPeak is %s " % (peakCov, halfPeak, qrtPeak)) + #print("#Coverage Peak is %s, HalfPeak is %s, QuarterPeak is %s " % (peakCov, halfPeak, qrtPeak)) return (peakCov, halfPeak, qrtPeak) @@ -158,15 +158,15 @@ def main(): if coverage > options.covcut: if totalSize > options.totsize: print( - "**\t" - + "\t".join( + + "\t".join( [str(i) for i in [scaffoldName, int(totalSize), int(lowcovSize), "{:.1f}".format(coverage)]] ) ) else: print( - "==\t" - + "\t".join( + + "\t".join( [str(i) for i in [scaffoldName, int(totalSize), int(lowcovSize), "{:.1f}".format(coverage)]] ) ) From 7707ddf833c2e18d0336f7807e8d065e67804164 Mon Sep 17 00:00:00 2001 From: YSims Date: Tue, 8 Aug 2023 16:59:08 +0100 Subject: [PATCH 2/3] Update findHalfcoverage.py --- bin/findHalfcoverage.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/findHalfcoverage.py b/bin/findHalfcoverage.py index e165b938..258bb1dc 100755 --- a/bin/findHalfcoverage.py +++ b/bin/findHalfcoverage.py @@ -158,14 +158,12 @@ def main(): if coverage > options.covcut: if totalSize > options.totsize: print( - "\t".join( [str(i) for i in [scaffoldName, int(totalSize), int(lowcovSize), "{:.1f}".format(coverage)]] ) ) else: print( - "\t".join( [str(i) for i in [scaffoldName, int(totalSize), int(lowcovSize), "{:.1f}".format(coverage)]] ) From 8675c1da211e2b2c010d7e9339a2a0538e9253f2 Mon Sep 17 00:00:00 2001 From: YSims Date: Tue, 8 Aug 2023 17:00:33 +0100 Subject: [PATCH 3/3] Update findHalfcoverage.py --- bin/findHalfcoverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/findHalfcoverage.py b/bin/findHalfcoverage.py index 258bb1dc..9a2f2340 100755 --- a/bin/findHalfcoverage.py +++ b/bin/findHalfcoverage.py @@ -72,7 +72,7 @@ def get_cov_peaks(file): halfPeak = int(peakCov) / 2 qrtPeak = int(peakCov) / 4 - #print("#Coverage Peak is %s, HalfPeak is %s, QuarterPeak is %s " % (peakCov, halfPeak, qrtPeak)) + # print("#Coverage Peak is %s, HalfPeak is %s, QuarterPeak is %s " % (peakCov, halfPeak, qrtPeak)) return (peakCov, halfPeak, qrtPeak)