From 39fe6fa80a4681aae2f500ad83d33ac695c26540 Mon Sep 17 00:00:00 2001 From: chuan-wang Date: Fri, 25 Oct 2024 14:13:31 +0200 Subject: [PATCH] Support MiSeq V2 Micro --- run_dir/static/js/fc_trend_plot.js | 12 +++++++++--- status/flowcell.py | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/run_dir/static/js/fc_trend_plot.js b/run_dir/static/js/fc_trend_plot.js index 5e75eec3..bf40021a 100644 --- a/run_dir/static/js/fc_trend_plot.js +++ b/run_dir/static/js/fc_trend_plot.js @@ -104,9 +104,10 @@ function make_plot(key, name, display_by, filter_inst_type, filter_inst, color_t toplot.tooltip.pointFormat = '{series.name} : {point.y}
Mbp: {point.bp_yield:,.0f}'; } - var thresholdColors = ['#696868', '#696868', '#696868', '#696868', '#696868', '#696868', '#ffb700', '#ff00ae', '#0080ff', '#11ad11', '#8400ff', '#e65c00', '#1B9E97']; + var thresholdColors = ['#696868', '#696868', '#696868', '#696868', '#696868', '#696868', '#696868', '#ffb700', '#ff00ae', '#0080ff', '#11ad11', '#8400ff', '#e65c00', '#1B9E97']; var thresholdLabels = [ ['M', 'MiSeq Nano threshold to pass'], + ['M', 'MiSeq Micro threshold to pass'], ['M', 'MiSeq v2 threshold to pass'], ['M', 'MiSeq v3 threshold to pass'], ['VH', 'NextSeq P1 threshold to pass'], @@ -158,12 +159,12 @@ function make_plot(key, name, display_by, filter_inst_type, filter_inst, color_t // Styling the default view if (color_type == "chemver" && key == "total_clusters" && display_by == "flowcell") { - applyThresholds([0.75e6, 10e6, 18e6, 100e6, 400e6, 1100e6, 650e6, 1300e6, 3300e6, 8000e6, 8000e6, 1500e6, 24000e6], [0, 1, 2]); + applyThresholds([0.75e6, 3e6, 10e6, 18e6, 100e6, 400e6, 1100e6, 650e6, 1300e6, 3300e6, 8000e6, 8000e6, 1500e6, 24000e6], [0, 1, 2]); } // Styling the lane view if (color_type == "chemver" && key == "total_clusters" && display_by == "lane") { - applyThresholds([0.75e6, 10e6, 18e6, 100e6, 400e6, 550e6, 325e6, 650e6, 1650e6, 2000e6, 1000e6, 750e6, 3000e6], [0, 1, 2]); + applyThresholds([0.75e6, 3e6, 10e6, 18e6, 100e6, 400e6, 550e6, 325e6, 650e6, 1650e6, 2000e6, 1000e6, 750e6, 3000e6], [0, 1, 2]); } var serie = build_series(window.current_plot_data, key, name, display_by, filter_inst_type, filter_inst, color_type); @@ -218,6 +219,9 @@ function build_series(data, key, name, display_by, filter_inst_type, filter_inst if (data[d].mode == '2'){ series_name = "MiSeq Nano"; } + if (data[d].mode == '4'){ + series_name = "MiSeq Micro"; + } if (data[d].cver.includes('P1')){ series_name = "NextSeq P1"; } @@ -515,6 +519,8 @@ function update_chemistries_list(){ if (window.current_plot_data[d].mode == '2'){ // MiSeq Nano is special (cver collides with MiSeq Version 2) version = 'Mnano' + } else if (window.current_plot_data[d].mode == '4'){ + version = 'Mmicro' } else { version = window.current_plot_data[d].instrument.substr(0,1) + window.current_plot_data[d].cver; } diff --git a/status/flowcell.py b/status/flowcell.py index 3983c690..bc52e663 100644 --- a/status/flowcell.py +++ b/status/flowcell.py @@ -14,6 +14,7 @@ "RapidRun": 114, "MiSeq Version3": 18, "MiSeq Version2": 10, + "MiSeq Version2Micro": 3, "MiSeq Version2Nano": 0.75, "NovaSeq SP": 325, "NovaSeq S1": 650,