Commit 62bb8bbe authored by flothoni's avatar flothoni

clones.js & database; change the name of file getted by get_reads

link to #1469
parent 3076ed7a
......@@ -1213,7 +1213,7 @@ Clone.prototype = {
}
if ($('#debug_menu').is(':visible') && (typeof this.m.db_key.config != 'undefined' )) {
html += " "
call_reads = "db.get_read('" + this.id + "', "+ this.m.samples.sequence_file_id[this.m.samples.order[j]] + ')';
call_reads = "db.get_read('" + this.id + "', '"+ this.index + "', "+ this.m.samples.sequence_file_id[this.m.samples.order[j]] + ')';
console.log(call_reads)
html += " <button class='button' onclick=\"" + call_reads + "\"> get reads </button>"
}
......
......@@ -126,7 +126,7 @@ Database.prototype = {
})
},
get_read: function(window, sequence_file_id) {
get_read: function(window, clone_id, sequence_file_id) {
var self = this;
self.callProcess('default/run_request',
{'sequence_file_id': sequence_file_id,
......@@ -136,8 +136,7 @@ Database.prototype = {
function(a) {
var path_data = DB_ADDRESS+"/results_file/download?filename=seq/clone.fa-1&results_file_id="+a.result_id
var anchor_id = "dlAnchor_get_reads_"+a.result_id
// On pourrait avoir le window ou bien le top du clone. Cela permettrait alors de l'indiqué dans le nom du fichier (qui sinon est le même qu'importe le clone considéré).
var file_name = "getreads__"+window+"__file_id_"+a.result_id+"_"+sequence_file_id+".fa"
var file_name = "reads__"+clone_id+"__file_id_"+a.result_id+"_"+sequence_file_id+".fa"
// Create anchor here, so each clones/sample will have an specific anchor
// Allow to launch multiple 'get_reads'
......
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