Commit 1b0e3356 authored by Marc Duez's avatar Marc Duez

fuse.py : save fuse timestamp

parent 982bc370
......@@ -127,8 +127,10 @@ PDF.prototype = {
this.doc.text(this.marge + 5, this.y + 5, this.m.dataFileName);
// todo: fill again with reliable data :)
// this.doc.text(this.marge + 5, this.y + 10, 'run: 2013-10-03');
this.doc.text(this.marge + 5, this.y + 15, 'analysis: ' + m.timestamp.split(' ')[0]);
this.doc.text(this.marge + 5, this.y + 20, 'germline: ' + m.system);
if (typeof this.m.timestamp != 'undefined'){
this.doc.text(this.marge + 5, this.y + 15, 'analysis: ' + this.m.timestamp.split(' ')[0]);
}
this.doc.text(this.marge + 5, this.y + 20, 'germline: ' + this.m.system);
this.doc.rect(this.marge, this.y, 60, 23);
......
......@@ -372,6 +372,8 @@ class ListWindows:
f = file_path
print
time = os.path.getmtime(file_path)
self.d["timestamp"] = [datetime.datetime.fromtimestamp(time).strftime("%Y-%m-%d %H:%M:%S")]
def getTop(self, top):
result = []
......@@ -411,6 +413,7 @@ class ListWindows:
obj.d["clones"]=self.fuseWindows(self.d["clones"], other.d["clones"], l1, l2)
obj.d["samples"] = self.d["samples"] + other.d["samples"]
obj.d["reads"] = self.d["reads"] + other.d["reads"]
obj.d["timestamp"] = self.d["timestamp"]
obj.d["vidjil_json_version"] = [VIDJIL_JSON_VERSION]
return obj
......@@ -492,8 +495,6 @@ class ListWindows:
'''Parser for .clntab file'''
self.d["vidjil_json_version"] = [VIDJIL_JSON_VERSION]
time = os.path.getmtime(file_path)
self.d["timestamp"] = [datetime.datetime.fromtimestamp(time).strftime("%Y-%m-%d %H:%M:%S")]
self.d["samples"][0].d["original_names"] = [file_path]
listw = []
......
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