Skip to content

Commit

Permalink
logging for make_median_cov_hist
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonkoehn committed Sep 13, 2024
1 parent 31d4245 commit 06c12b0
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions scripts/amplicon_covs_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,18 +336,38 @@ def main(

make_cov_heatmap(all_covs, os.path.join(outdir, "cov_heatmap.pdf"))

make_median_cov_hist(all_covs, os.path.join(outdir, "median_cov_hist.pdf"))
# make_median_coverage_barplot(
# all_covs, os.path.join(outdir, "median_coverage_barplot.pdf")
# )

# make_cov_heatmap(all_covs_frac, os.path.join(outdir, "cov_heatmap_norm.pdf"))
# make_median_cov_hist(
# all_covs_frac, os.path.join(outdir, "median_cov_hist_norm.pdf")
# )
# make_median_coverage_barplot(
# all_covs_frac, os.path.join(outdir, "median_coverage_barplot_norm.pdf")
# )
try:
make_median_cov_hist(all_covs, os.path.join(outdir, "median_cov_hist.pdf"))
except Exception as e:
click.echo(f"Error generating median_cov_hist plot: {str(e)}")

try:
make_median_coverage_barplot(
all_covs, os.path.join(outdir, "median_coverage_barplot.pdf")
)
except Exception as e:
click.echo(f"Error generating median_coverage_barplot plot: {str(e)}")

try:
make_cov_heatmap(
all_covs_frac, os.path.join(outdir, "cov_heatmap_norm.pdf")
)
except Exception as e:
click.echo(f"Error generating cov_heatmap_norm plot: {str(e)}")

try:
make_median_cov_hist(
all_covs_frac, os.path.join(outdir, "median_cov_hist_norm.pdf")
)
except Exception as e:
click.echo(f"Error generating median_cov_hist_norm plot: {str(e)}")

try:
make_median_coverage_barplot(
all_covs_frac, os.path.join(outdir, "median_coverage_barplot_norm.pdf")
)
except Exception as e:
click.echo(f"Error generating median_coverage_barplot_norm plot: {str(e)}")


if __name__ == "__main__":
Expand Down

0 comments on commit 06c12b0

Please sign in to comment.