From b809618c3826d479ebe27399dec2df436cf89ca2 Mon Sep 17 00:00:00 2001 From: Rami Rauch Date: Thu, 6 Aug 2009 18:56:54 +0000 Subject: [PATCH] --- .../htswfrontend/htsw_reports/reports.py | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/htswfrontend/htswfrontend/htsw_reports/reports.py b/htswfrontend/htswfrontend/htsw_reports/reports.py index 88db4ab..066c06b 100755 --- a/htswfrontend/htswfrontend/htsw_reports/reports.py +++ b/htswfrontend/htswfrontend/htsw_reports/reports.py @@ -48,8 +48,8 @@ def report1(request): except ObjectDoesNotExist: return HttpResponse("ERROR: Affiliation Record Not Found for: '"+AFL+"'") - if request.user.username == 'caltech': - if AFL.find('ENCODE') < 0: return HttpResponse('Record Not Found
HOME
') + if request.user.username == 'caltech': ## that's a quick ad-hoc solution to display only the relevant, ENCODE related, things for Caltech. + if AFL.find('ENCODE') < 0: return HttpResponse('Record Not Found') TFall = Library.objects.values('antibody').order_by('antibody').distinct() CLLall = Library.objects.values('cell_line').order_by('cell_line').distinct() @@ -64,11 +64,11 @@ def report1(request): ######## str = '' - str += 'HOME' + ##str += 'HOME' ##str += 'Max Replicates: '+MaxRep.replicate.__str__()+'' str += 'Select another '+EXP+' Report: ' if request.user.username == 'caltech': @@ -289,14 +289,14 @@ def report_RM(request): #for RNA-Seq and Methyl-Seq str += '
'+rres[2] else: cnt = rres[1] - if cnt > 0: - str += "
" - str += "%1.2f" % (cnt/1000000.0)+" M" - else: str += "
0 Reads" + #if cnt > 0: + str += "
" + str += "%1.2f" % (cnt/1000000.0)+" M" + #else: str += "
0 Reads" str += "
"+R1.library_id+", "+R1.condition.nickname+", "+R1.library_species.common_name+"
" str += "
\""+R1.library_name+"\"" if R1.libtags().find('Data submitted to DCC') != -1: - str += "
data submitted
" + str += "
DCC-submitted
" str += "
" str += "
" str += '' -- 2.30.2