projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a36ef6e
)
added: display reads count per Lane, besides total per Flowcell
author
Rami Rauch
<rrauch@stanford.edu>
Sat, 25 Apr 2009 00:02:41 +0000
(
00:02
+0000)
committer
Rami Rauch
<rrauch@stanford.edu>
Sat, 25 Apr 2009 00:02:41 +0000
(
00:02
+0000)
htswfrontend/htswfrontend/exp_track/models.py
patch
|
blob
|
history
diff --git
a/htswfrontend/htswfrontend/exp_track/models.py
b/htswfrontend/htswfrontend/exp_track/models.py
index f650e2228d44890d9001ea0a6ccc39ddde82a1d7..81fa9e345ed6894cdfd9a52b146624bc4a992875 100755
(executable)
--- a/
htswfrontend/htswfrontend/exp_track/models.py
+++ b/
htswfrontend/htswfrontend/exp_track/models.py
@@
-142,6
+142,9
@@
class DataRun(models.Model):
run_note = models.TextField(blank=True)
run_note = models.TextField(blank=True)
+ # Global var
+ lrc = []
+
def main_status(self):
str = '<div'
if self.run_status >= 5:
def main_status(self):
str = '<div'
if self.run_status >= 5:
@@
-153,16
+156,22
@@
class DataRun(models.Model):
str += '</div>'
## Check Analysis Server Report
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')
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)
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: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>'
else:
str += '<div style="color:red">no data yet</div>'