Commit 89f39c5a authored by Thonier Florian's avatar Thonier Florian
Browse files

warnings.js; change the title content of warnings selector

parent caa0bb3f
Pipeline #717675 failed with stages
in 1 minute and 21 seconds
......@@ -158,22 +158,24 @@ Warnings.prototype = {
// Table with clone/reads number
var span_intermediate = document.createElement("span")
span_intermediate.style = "min-width: 25px; display: block;"
var span_warn_show_sample = document.createElement("span")
span_warn_show_sample.id = `warn_span_${subwarn_code}_sample`
span_warn_show_sample.classList = `warning_span`
span_warn_show_sample.title = `Number of clonotypes (and reads) with warning ${subwarn_code} in the sample ${this.m.getStrTime(this.m.t)}`
var span_warn_show_all_sample = document.createElement("span")
span_warn_show_all_sample.id = `warn_span_${subwarn_code}_all_samples`
span_warn_show_all_sample.classList = `warning_span`
span_warn_show_all_sample.title = `Number of clonotypes (and reads) with warning ${subwarn_code} in all samples`
if (Object.keys(warn_info_sample).indexOf(subwarn_code) != -1){
span_warn_show_sample.innerHTML += `${warn_info_sample[subwarn_code].clones.length} (${warn_info_sample[subwarn_code].reads})`
span_warn_show_sample.title = `${warn_info_sample[subwarn_code].clones.length} clonotypes in ${warn_info_sample[subwarn_code].reads} reads with warning ${subwarn_code} in the sample ${this.m.getStrTime(this.m.t)}`
} else {
span_warn_show_sample.innerHTML += `0 (0)`
}
if (Object.keys(warn_info_sample).indexOf(subwarn_code) != -1){
span_warn_show_all_sample.innerHTML += `${warn_info_all[subwarn_code].clones.length} (${warn_info_all[subwarn_code].reads})`
span_warn_show_all_sample.title = `${warn_info_all[subwarn_code].clones.length} clonotypes in ${warn_info_all[subwarn_code].reads} reads with warning ${subwarn_code} in the all samples`
} else {
span_warn_show_all_sample.innerHTML += `0 (0)`
}
......
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