From 2c5ce320548d442159f749c53e6d7b7d98e45551 Mon Sep 17 00:00:00 2001 From: Ryan Lim Date: Thu, 11 Apr 2024 11:56:41 -0700 Subject: [PATCH] fix missing gc percent --- .../plugins/output_loaders/entities/consensus_genome_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflows/plugins/output_loaders/entities/consensus_genome_output.py b/workflows/plugins/output_loaders/entities/consensus_genome_output.py index 59df080d..cda8fa70 100644 --- a/workflows/plugins/output_loaders/entities/consensus_genome_output.py +++ b/workflows/plugins/output_loaders/entities/consensus_genome_output.py @@ -109,7 +109,7 @@ async def load( reference_genome_length=int(quast_data["Reference length"]), percent_genome_called=round((stats["n_actg"] / float(quast_data["Reference length"]) * 100), 1), percent_identity=round((p_identity * 100), 1), - gc_percent=round(float(quast_data["GC (%)"]), 1), + gc_percent=round(float(quast_data.get("GC (%)", 0)), 1), total_reads=stats["total_reads"], mapped_reads=stats["mapped_reads"], ref_snps=stats["ref_snps"],