Skip to content

Commit

Permalink
Merge pull request #886 from chuan-wang/master
Browse files Browse the repository at this point in the history
Support MiSeq V2 Micro
  • Loading branch information
aanil authored Oct 25, 2024
2 parents d95b15e + 39fe6fa commit 35c46db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions run_dir/static/js/fc_trend_plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ function make_plot(key, name, display_by, filter_inst_type, filter_inst, color_t
toplot.tooltip.pointFormat = '{series.name} : <b>{point.y}</b><br />Mbp: <b>{point.bp_yield:,.0f}</b>';
}

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'],
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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";
}
Expand Down Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions status/flowcell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 35c46db

Please sign in to comment.