From 8c619c476db39efcd819a5a687318402296276ca Mon Sep 17 00:00:00 2001 From: Rami Rauch Date: Fri, 16 Jan 2009 21:53:09 +0000 Subject: [PATCH] adjusted Projects XML schema to add new CALC type --- .../htswfrontend/analys_track/main.py | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/htswfrontend/htswfrontend/analys_track/main.py b/htswfrontend/htswfrontend/analys_track/main.py index 015a69c..dd265e3 100644 --- a/htswfrontend/htswfrontend/analys_track/main.py +++ b/htswfrontend/htswfrontend/analys_track/main.py @@ -66,17 +66,44 @@ def getProjects(request): outputfile += '\n' if (t.apply_calc == 'QuEST' or t.apply_calc == 'WingPeaks' or t.apply_calc == 'MACS'): outputfile += '\n' - outputfile += '\n' - outputfile += '\n' + if t.subject1: + outputfile += '\n' + if t.subject2: + outputfile += '\n' + else: + outputfile += '\nBackground Library Missing' + else: + outputfile += '\nSignal Library Missing' + outputfile += '\n'+t.task_params.__str__()+'' outputfile += '\n' + + if (t.apply_calc == 'Methylseq'): + outputfile += '\n' + if t.subject1: + outputfile += '\n' + if t.subject2: + outputfile += '\n' + else: + outputfile += '\nMsp1 Library Missing' + else: + outputfile += '\nHpa2 Library Missing' + outputfile += '\n'+t.task_params.__str__()+'' + outputfile += '\n' if (t.apply_calc == 'ProfileReads' or t.apply_calc == 'qPCR'): outputfile += '\n<'+t.apply_calc+' TaskId="'+t.id.__str__()+'" Name="'+t.task_name+'" Genome="'+t.subject1.library_species.use_genome_build+'" Library="'+t.subject1.library_id+'"/>' if (t.apply_calc == 'CompareLibs'): outputfile += '\n' - outputfile += '\n' - outputfile += '\n' + if t.subject1: + outputfile += '\n' + else: + outputfile += '\nLibrary Missing' + if t.subject2: + outputfile += '\n' + else: + outputfile += '\nLibrary Missing' + outputfile += '\n'+t.task_params.__str__()+'' outputfile += '\n' #if (t.apply_calc == 'ComparePeakCalls'): -- 2.30.2