From 2ca879503c405708fc6384ef70c9f010887eab22 Mon Sep 17 00:00:00 2001 From: Andy Boughton Date: Thu, 22 Aug 2024 10:02:12 -0400 Subject: [PATCH] (FORK COMMIT) Add new metrics for insight into job size Querying historical data will still require crazy complex workarounds, but this would make custom billing calculations more tractable in future --- .../genepi/imputationserver/steps/InputValidation.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/genepi/imputationserver/steps/InputValidation.java b/src/main/java/genepi/imputationserver/steps/InputValidation.java index e9da5e0..eea022b 100644 --- a/src/main/java/genepi/imputationserver/steps/InputValidation.java +++ b/src/main/java/genepi/imputationserver/steps/InputValidation.java @@ -287,10 +287,12 @@ private boolean checkVcfFiles(WorkflowContext context) { // init counters context.incCounter("samples", noSamples); - context.incCounter("genotypes", noSamples * noSnps); - context.incCounter("chromosomes", noSamples * chromosomes.size()); + context.incCounter("genotypes", noSamples * noSnps); // Legacy CG metric is convolution of two numbers + context.incCounter("just_genotypes", noSnps); + context.incCounter("chromosomes", noSamples * chromosomes.size()); // Legacy CG metric is convolution of two numbers + context.incCounter("just_chromosomes", chromosomes.size()); context.incCounter("chunks", chunks); - context.incCounter("chunk_samples", chunks * noSamples); + context.incCounter("chunk_samples", chunks * noSamples); // Store calculation for convenience, since it's hard to query DB across rows context.incCounter("runs", 1); context.incCounter("refpanel_" + reference, 1); context.incCounter("phasing_" + "eagle", 1);