Commit e14cbc28 authored by flothoni's avatar flothoni

Merge branch 'feature-sc/1469-get-reads' of gitlab.inria.fr:vidjil/vidjil into...

Merge branch 'feature-sc/1469-get-reads' of gitlab.inria.fr:vidjil/vidjil into feature-sc/1469-get-reads
parents 5aef79e5 b0353f4d
......@@ -1216,7 +1216,7 @@ Clone.prototype = {
var id_db_sample = this.m.samples.sequence_file_id[this.m.samples.order[j]]
var call_reads = "db.get_read('" + this.id + "', '"+ this.index + "', '"+ j + "', "+ id_db_sample + ')';
console.log(call_reads)
html += " <button class='button' onclick=\"" + call_reads + "\" id='btn_get_reads_"+id_db_sample+"_"+this.index+"' class='"+db.get_reads_btn_class(id_db_sample, this.index)+"'> get reads </button>"
html += " <button onclick=\"" + call_reads + "\" id='btn_get_reads_"+id_db_sample+"_"+this.index+"' class='button "+db.get_reads_btn_class(id_db_sample, this.index)+"'> get reads </button>"
}
html += "</td>"
}
......
......@@ -150,9 +150,9 @@ Database.prototype = {
// Create anchor here, so each clones/sample will have an specific anchor
// Allow to launch multiple 'get_reads'
var anchors = document.getElementById('dlAnchors')
var anchor_id = "dlAnchor_get_reads_"+a.result_id
var anchor_id = "dlAnchor_get_reads_"+sequence_file_id+"_"+clone_id
var anchor = document.createElement("a", anchor_id)
anchor.innerHTML = "timapoint "+timepoint+"; clone "+m.clones[clone_id]
anchor.innerHTML = "timapoint "+timepoint+"; clone "+m.clones[clone_id].name
anchor.classList.add = "disabledClass"
// anchor.style.display = "none"
anchors.appendChild(anchor)
......@@ -165,7 +165,7 @@ Database.prototype = {
'grep_reads': window},
function(a) {
var anchors = document.getElementById("dlAnchor_get_reads_"+a.result_id)
var anchors = document.getElementById("dlAnchor_get_reads_"+sequence_file_id+"_"+clone_id)
// Link to result file and launch download
var path_data = DB_ADDRESS+"/results_file/download?filename=seq/clone.fa-1&results_file_id="+a.result_id
var file_name = "reads__"+clone_id+"__file_id_"+"_"+sequence_file_id+".fa"
......
Markdown is supported
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