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

fuse.py / browser : small fix for clntab file

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