run_note = models.TextField(blank=True)
+ # Global var
+ lrc = []
+
def main_status(self):
str = '<div'
if self.run_status >= 5:
str += '</div>'
## Check Analysis Server Report
- str += '<div style="margin-top:10px">Data analyzed:<br/>'
+ str += '<div style="margin-top:10px">Data:<br/>'
res = getLibReads(self.fcid.flowcell_id.__str__(),'ByFC')
-
- if res[2] != 'OK':
- str += '<div style="margin-top:10px;border:solid red 2px">'+res[2]+'</div>'
+
+ if res[3] != 'OK':
+ str += '<div style="margin-top:10px;border:solid red 2px">'+res[3]+'</div>'
else:
lc = res[0]
if(lc>0):
rc = "%1.2f" % (res[1]/1000000.0)
+ lrc = ''
+ L = 1
+ for c in res[2]:
+ lrc += '<div>['+L.__str__()+']: '+ "%1.2f" % (c/1000000.0)+'</div>'
+ L += 1
str += '<div style="color:green"><b>'+lc.__str__()+'</b> lanes<br/><b>'+rc.__str__()+'</b> M reads</div>'
+ str += '<div style="color:#666666"><b>'+lrc+'</b></div>'
else:
str += '<div style="color:red">no data yet</div>'