diff --git a/bamdash/__init__.py b/bamdash/__init__.py index bd55c0d..fbc5807 100644 --- a/bamdash/__init__.py +++ b/bamdash/__init__.py @@ -1,3 +1,3 @@ """interactively visualize coverage and tracks""" _program = "bamdash" -__version__ = "0.2.2" +__version__ = "0.2.3" diff --git a/bamdash/scripts/data.py b/bamdash/scripts/data.py index 7712e34..25cd9aa 100644 --- a/bamdash/scripts/data.py +++ b/bamdash/scripts/data.py @@ -32,7 +32,7 @@ def get_coverage_stats(coverage_df, start, stop, min_cov): mean_coverage = 0 recovery = 0 else: - mean_coverage = statistics.mean(df_subset["coverage"]) + mean_coverage = sum(df_subset["coverage"])/(stop-start) recovery = len(df_subset["coverage"])/(stop-start+1)*100 return round(mean_coverage), round(recovery, 2)