Commit 5e9ddebd authored by Marc Duez's avatar Marc Duez

fuse.py / browser : small fix for clntab file

parent c5c57fd3
......@@ -479,34 +479,34 @@ Builder.prototype = {
var target = document.createElement('a');
target.className = "buttonSelector"
target.onclick = function () { self.m.clusterBy('_target')}
target.onclick = function () { m.clusterBy(function(id){return m.clone(id)['_target']});}
target.appendChild(document.createTextNode("target"));
clusterSelector.appendChild(target)
var targetV = document.createElement('a');
targetV.className = "buttonSelector"
targetV.onclick = function () { self.m.clusterBy('_target.V-GENE')}
targetV.onclick = function () { m.clusterBy(function(id){return m.clone(id)['_target.V-GENE']});}
targetV.appendChild(document.createTextNode("target V"));
clusterSelector.appendChild(targetV)
var targetJ = document.createElement('a');
targetJ.className = "buttonSelector"
targetJ.onclick = function () { self.m.clusterBy('_target.J-GENE')}
targetJ.onclick = function () { m.clusterBy(function(id){return m.clone(id)['_target.J-GENE']});}
targetJ.appendChild(document.createTextNode("target J"));
clusterSelector.appendChild(targetJ)
var clonotype = document.createElement('a');
clonotype.className = "buttonSelector"
clonotype.onclick = function () { self.m.clusterBy('_clonotype')}
clonotype.onclick = function () { m.clusterBy(function(id){return m.clone(id)['_clonotype']});}
clonotype.appendChild(document.createTextNode("clonotype"));
clusterSelector.appendChild(clonotype)
}
if (self.m.clones[0].system){
if (self.m.clones[0].germline){
var system = document.createElement('a');
system.className = "buttonSelector"
system.onclick = function () { self.m.clusterBy('system')}
system.onclick = function () { m.clusterBy(function(id){return m.clone(id).getSystem()});}
system.appendChild(document.createTextNode("system"));
clusterSelector.appendChild(system)
}
......
......@@ -304,7 +304,7 @@ class ListWindows:
### check vidjil_json_version
def check_version(self, filepath):
if "vidjil_json_version" in self.d:
if self.d["vidjil_json_version"] >= VIDJIL_JSON_VERSION:
if self.d["vidjil_json_version"] <= VIDJIL_JSON_VERSION:
return
raise IOError ("File '%s' is too old -- please regenerate it with a newer version of Vidjil" % filepath)
......@@ -515,6 +515,8 @@ class ListWindows:
total_size += s
w.d["reads"] = [ s ]
w.d["germline"] = tab["sequence.V-GENE and allele"][:3] #system ...
w.d["sequence"] = tab["sequence.raw nt seq"]
w.d["seg"]["5"]=tab["sequence.V-GENE and allele"].split('=')[0]
if (tab["sequence.D-GENE and allele"] != "") :
......
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