Commit 59dc7ece authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Change max nb lines to 100,000

parent b56462af
......@@ -100,7 +100,8 @@ d3.boxplot.launch = function(res, update=false) {
d3.boxplot.controls.init();
}
if (res["sampled"]) {
dgenies.notify("There are too much matches.\nOnly the 150.000 best matches are displayed")
let max_nb_lines = dgenies.numberWithCommas(res["max_nb_lines"].toString());
dgenies.notify(`There are too much matches.\nOnly the ${max_nb_lines} best matches are displayed`)
}
dgenies.fill_select_zones(res["x_order"], res["y_order"]);
d3.boxplot.mousetip.init();
......
......@@ -50,4 +50,8 @@ dgenies.fill_select_zones = function(x_targets, y_contigs) {
text: x_targets[i]
}))
}
};
dgenies.numberWithCommas = function(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
};
\ No newline at end of file
......@@ -7,7 +7,7 @@ from numpy import mean
class Paf:
limit_idy = 0.5
max_nb_lines = 150000
max_nb_lines = 100000
def __init__(self, paf: str, idx_q: str, idx_t: str):
self.paf = paf
......@@ -148,7 +148,8 @@ class Paf:
'name_x': self.name_t,
'limit_idy': self.limit_idy,
'sorted': self.sorted,
'sampled': self.sampled
'sampled': self.sampled,
"max_nb_lines": self.max_nb_lines,
}
def save_json(self, out):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment