Commit f419e701 authored by Mathieu Giraud's avatar Mathieu Giraud

js/crossDomain.js, js/segmenter.js: to ARReST/Compile-Junctions

This link is not visible for users now.
parent 6503f6ae
......@@ -145,6 +145,37 @@ function igBlastPost(data, system) {
}
// ARReST / CompileJunction
var arrestInput = {};
arrestInput["fname"] = "exported_func" ;
arrestInput["pjxrand"] = ".0033328778554" ;
arrestInput["elite"] = "" ;
function arrestPost(data, system) {
arrestInput["args"] = data;
var form = document.getElementById("form");
form.innerHTML = "";
form.target = "_blank";
form.action = "http://tools.bat.infspire.org/cgi-bin/arrest/compile.junctions.online.pl";
form.method = "POST";
for (var k in arrestInput) {
var input = document.createElement("input");
input.type = "hidden";
input.name = k;
input.value = arrestInput[k];
form.appendChild(input);
}
form.submit();
}
//parametre blast par defaut
var blastInput = {};
blastInput["query_sequence"] = "";
......
......@@ -148,6 +148,16 @@ Segment.prototype = {
span.appendChild(document.createTextNode("❯ to IgBlast"));
div_menu.appendChild(span);
//toARResT button
span = document.createElement('span');
span.id = "toARResT";
span.className = "button devel-mode";
span.onclick = function () {
self.sendTo('ARResT')
};
span.appendChild(document.createTextNode("❯ to ARResT/CJ"));
div_menu.appendChild(span);
//toBlast button
span = document.createElement('span');
span.id = "toBlast";
......@@ -516,7 +526,7 @@ Segment.prototype = {
/**
* build a request with currently selected clones to send to IMGT or igblast <br>
* (see crossDomain.js)
* @param {string} address - 'IMGT', 'igBlast' or 'Blast'
* @param {string} address - 'IMGT', 'ARResT', 'igBlast' or 'Blast'
* */
sendTo: function (address) {
......@@ -539,6 +549,7 @@ Segment.prototype = {
}
}
if (address == 'IMGT') imgtPost(request, system);
if (address == 'ARResT') arrestPost(request, system);
if (address == 'igBlast') igBlastPost(request, system);
if (address == 'blast') blastPost(request, system);
......
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