From 05028a920fed000fa6ec43a85fadc1fed0d0ccab Mon Sep 17 00:00:00 2001 From: John Chilton Date: Sat, 23 Feb 2013 14:09:53 -0600 Subject: [PATCH] Rework some duplication out tophat wrappers using macros. This dmeonstrates how macros can reduce duplication inside a file (e.g. the dbKeyActions macro) and between files (e.g. the own_junctionsConditional macro). --- tools/ngs_rna/tophat2_wrapper.xml | 165 +++++------------------ tools/ngs_rna/tophat_color_wrapper.xml | 175 +++++++------------------ tools/ngs_rna/tophat_macros.xml | 72 ++++++++++ tools/ngs_rna/tophat_wrapper.xml | 165 +++++------------------ 4 files changed, 186 insertions(+), 391 deletions(-) create mode 100644 tools/ngs_rna/tophat_macros.xml diff --git a/tools/ngs_rna/tophat2_wrapper.xml b/tools/ngs_rna/tophat2_wrapper.xml index 5733bbe4a6e..fb0f1d19bca 100644 --- a/tools/ngs_rna/tophat2_wrapper.xml +++ b/tools/ngs_rna/tophat2_wrapper.xml @@ -143,23 +143,12 @@ - - - - - - - - - - - - - - - - - + + + + + + @@ -182,17 +171,7 @@ - - - - - - - - - - - + alignments (number of reads divided by average depth of coverage)" help="0.0 to 1.0 (0 to turn off)" /> @@ -201,40 +180,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -319,83 +265,40 @@ (params['settingsType'] == 'full' and params['fusion_search']['do_search'] == 'Yes') - - - - - - - - - - - - - + - - - - - - - - - - - - - + - - - - - - - - - - - - - + - - - - - - - - - - - - - + - + + tophat_macros.xml + + + + + + + + + + + + + + + + diff --git a/tools/ngs_rna/tophat_color_wrapper.xml b/tools/ngs_rna/tophat_color_wrapper.xml index 72c0a277b29..399d2c9c46c 100644 --- a/tools/ngs_rna/tophat_color_wrapper.xml +++ b/tools/ngs_rna/tophat_color_wrapper.xml @@ -154,23 +154,12 @@ - - - - - - - - - - - - - - - - - + + + + + + @@ -194,17 +183,7 @@ - - - - - - - - - - - + @@ -230,20 +209,8 @@ - - - - - - - - - - - - - - + + @@ -301,17 +268,7 @@ - - - - - - - - - - - + @@ -399,90 +356,50 @@ ( singlePaired['pParams']['indel_search']['allow_indel_search'] == 'Yes' ) ) ) - - - - - - - - - - - - - + - + + + + + + + + + + + tophat_macros.xml + + ( ( ( 'sParams' in singlePaired ) and ( 'indel_search' in singlePaired['sParams'] ) and ( singlePaired['sParams']['indel_search']['allow_indel_search'] == 'Yes' ) ) or ( ( 'pParams' in singlePaired ) and ( 'indel_search' in singlePaired['pParams'] ) and ( singlePaired['pParams']['indel_search']['allow_indel_search'] == 'Yes' ) ) ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/tools/ngs_rna/tophat_macros.xml b/tools/ngs_rna/tophat_macros.xml new file mode 100644 index 00000000000..51ebec16d9a --- /dev/null +++ b/tools/ngs_rna/tophat_macros.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/ngs_rna/tophat_wrapper.xml b/tools/ngs_rna/tophat_wrapper.xml index 234040bc664..83321cdb9d5 100644 --- a/tools/ngs_rna/tophat_wrapper.xml +++ b/tools/ngs_rna/tophat_wrapper.xml @@ -151,23 +151,12 @@ - - - - - - - - - - - - - - - - - + + + + + + @@ -298,17 +287,7 @@ alignments (number of reads divided by average depth of coverage)" help="0.0 to - - - - - - - - - - - + @@ -316,40 +295,7 @@ alignments (number of reads divided by average depth of coverage)" help="0.0 to - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -387,83 +333,40 @@ alignments (number of reads divided by average depth of coverage)" help="0.0 to - - - - - - - - - - - - - + - - - - - - - - - - - - - + - - - - - - - - - - - - - + - - - - - - - - - - - - - + - + + tophat_macros.xml + + + + + + + + + + + + + + + +