Mercurial > repos > public-health-bioinformatics > adjust_bracken_for_unclassified_reads
changeset 11:d848d37efb0c draft default tip
planemo upload for repository https://github.com/public-health-bioinformatics/galaxy_tools/blob/master/tools/adjust_bracken_for_unclassified_reads commit 24535690aedb81353cf5e036dc4577022d9604ad
author | public-health-bioinformatics |
---|---|
date | Thu, 27 Oct 2022 18:33:11 +0000 |
parents | caeae8f3792c |
children | |
files | adjust_bracken_kreport_for_unclassified_reads.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/adjust_bracken_kreport_for_unclassified_reads.py Thu Oct 27 18:11:07 2022 +0000 +++ b/adjust_bracken_kreport_for_unclassified_reads.py Thu Oct 27 18:33:11 2022 +0000 @@ -49,7 +49,7 @@ writer = csv.DictWriter(sys.stdout, fieldnames=output_fieldnames, dialect='excel-tab') bracken_unclassified_entry = { - 'percentage': '{:.3f}'.format(kraken_report_unclassified_seqs / total_seqs * 100), + 'percentage': '{:.2f}'.format(kraken_report_unclassified_seqs / total_seqs * 100), 'seqs_total': kraken_report_unclassified_seqs, 'seqs_this_level': kraken_report_unclassified_seqs, 'taxonomic_level': 'U', @@ -58,7 +58,7 @@ } for row in kraken_style_bracken_report: - row['percentage'] = '{:.3f}'.format(row['seqs_total'] / total_seqs * 100) + row['percentage'] = '{:.2f}'.format(row['seqs_total'] / total_seqs * 100) kraken_style_bracken_report_with_unclassified = [bracken_unclassified_entry] + kraken_style_bracken_report for row in kraken_style_bracken_report_with_unclassified: