From 0bd07d9ad36d045c119cdf55bc6bc53a9cbc42c1 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Tue, 16 Jan 2024 15:02:49 -0500 Subject: [PATCH] chore(scripts): calculate-top-peaks: increase chunk size + fix log statement --- scripts/calculate-top-peaks.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/calculate-top-peaks.mjs b/scripts/calculate-top-peaks.mjs index b36eaab3..26623972 100644 --- a/scripts/calculate-top-peaks.mjs +++ b/scripts/calculate-top-peaks.mjs @@ -12,7 +12,7 @@ const chromSizes = chromosomeSizesByAssemblyID[config.assembly ?? "hg19"]; const minPValue = envConfig.PLOT_MANHATTAN_MIN_P_VAL; const binSize = envConfig.PLOT_MANHATTAN_BIN_SIZE; -const BINS_CHUNK_SIZE = 30; +const BINS_CHUNK_SIZE = 50; for (const chrom in chromSizes) { const size = chromSizes[chrom]; @@ -63,7 +63,7 @@ for (const chrom in chromSizes) { })(); })); - console.log(`chr${chrom}: processed ${bins.length}/${nBins} bins`); + console.log(`chr${chrom}: processed ${nBins - bins.length}/${nBins} bins`); } console.log(`done chr${chrom}`);