From fa140a9f660eab2459e21b0b637b129d7de24c02 Mon Sep 17 00:00:00 2001 From: M Bernt Date: Tue, 10 Jan 2023 18:08:18 +0100 Subject: [PATCH] hiccorrectmatrix: is writing to input file (#4670) * hiccorrectmatrix: is wrinting to input file so we need to copy it * skip from_workdir * fix URLs * workaround for a bug regarding parallel processing that will be fixed in 3.7 * add missing options to CLI see https://github.com/galaxyproject/tools-iuc/issues/4085 * more fixes: - redundant name and argument - 1 wrong parameter name in test - 1 wrong option value and one missing option text * fix duplicated output labels --- tools/hicexplorer/hicAggregateContacts.xml | 4 ++-- tools/hicexplorer/hicConvertFormat.xml | 25 ++++++++++++---------- tools/hicexplorer/hicCorrectMatrix.xml | 22 +++++++++---------- tools/hicexplorer/hicCorrelate.xml | 4 ++-- tools/hicexplorer/hicDetectLoops.xml | 2 +- tools/hicexplorer/hicDifferentialTAD.xml | 3 ++- tools/hicexplorer/hicNormalize.xml | 2 +- tools/hicexplorer/hicPCA.xml | 8 +++---- tools/hicexplorer/hicPlotMatrix.xml | 2 +- tools/hicexplorer/hicPlotSVL.xml | 2 +- tools/hicexplorer/hicTransform.xml | 2 +- tools/hicexplorer/macros.xml | 4 ++-- 12 files changed, 42 insertions(+), 38 deletions(-) diff --git a/tools/hicexplorer/hicAggregateContacts.xml b/tools/hicexplorer/hicAggregateContacts.xml index 6029cb2f44f..d9b1837a0a0 100644 --- a/tools/hicexplorer/hicAggregateContacts.xml +++ b/tools/hicexplorer/hicAggregateContacts.xml @@ -182,10 +182,10 @@ - + - + diff --git a/tools/hicexplorer/hicConvertFormat.xml b/tools/hicexplorer/hicConvertFormat.xml index 222059aa392..554e06132ec 100644 --- a/tools/hicexplorer/hicConvertFormat.xml +++ b/tools/hicexplorer/hicConvertFormat.xml @@ -88,16 +88,8 @@ --outputFormat $outputSingleMultiple_conditional.outputFormat_conditional.outputFormat_selector --outFileName 'matrix.$outputSingleMultiple_conditional.outputFormat_conditional.outputFormat_selector' - #if $outputSingleMultiple_conditional.outputFormat_conditional.outputFormat_selector == 'ginteractions': - && mv 'matrix.${outputSingleMultiple_conditional.outputFormat_conditional.outputFormat_selector}.tsv' matrix_out - #else: - && mv 'matrix.$outputSingleMultiple_conditional.outputFormat_conditional.outputFormat_selector' matrix_out - #end if - #end if - - ### Set up links to matrices to have correct ending - #if $outputSingleMultiple_conditional.outputSingleMultiple_selector == 'multipleMatrix': + #else if $outputSingleMultiple_conditional.outputSingleMultiple_selector == 'multipleMatrix': #if $outputSingleMultiple_conditional.resolutionOrManyToOne_conditional.resolutionOrManyToOne_selector == 'resolution_option': #set xml_path = $outputSingleMultiple_conditional.resolutionOrManyToOne_conditional.inputFormat_conditional #if $xml_path.inputFormat_selector == 'optionCool': @@ -206,6 +198,17 @@ --matrices $m #end if --outFileName matrix.mcool + #end if + $storeAppliedCorrection + $enforceInteger + + #if $outputSingleMultiple_conditional.outputSingleMultiple_selector == 'singleMatrix': + #if $outputSingleMultiple_conditional.outputFormat_conditional.outputFormat_selector == 'ginteractions': + && mv 'matrix.${outputSingleMultiple_conditional.outputFormat_conditional.outputFormat_selector}.tsv' matrix_out + #else: + && mv 'matrix.$outputSingleMultiple_conditional.outputFormat_conditional.outputFormat_selector' matrix_out + #end if + #else if $outputSingleMultiple_conditional.outputSingleMultiple_selector == 'multipleMatrix': && mv matrix.mcool matrix_out #end if ]]> @@ -237,10 +240,10 @@ - - + + diff --git a/tools/hicexplorer/hicCorrectMatrix.xml b/tools/hicexplorer/hicCorrectMatrix.xml index 699f4e93406..e3d0b6e126f 100644 --- a/tools/hicexplorer/hicCorrectMatrix.xml +++ b/tools/hicexplorer/hicCorrectMatrix.xml @@ -6,7 +6,7 @@ @@ -68,7 +68,7 @@ - + @@ -78,19 +78,19 @@ - + - - + - - + - + @@ -108,13 +108,13 @@ - + mode['mode_selector'] == "correct" - + mode['mode_selector'] == "diagnostic_plot" diff --git a/tools/hicexplorer/hicCorrelate.xml b/tools/hicexplorer/hicCorrelate.xml index 3debcb3a077..0bb54cd63d4 100644 --- a/tools/hicexplorer/hicCorrelate.xml +++ b/tools/hicexplorer/hicCorrelate.xml @@ -55,8 +55,8 @@ - - + + diff --git a/tools/hicexplorer/hicDetectLoops.xml b/tools/hicexplorer/hicDetectLoops.xml index a0089e6f58c..341b3c265c9 100644 --- a/tools/hicexplorer/hicDetectLoops.xml +++ b/tools/hicexplorer/hicDetectLoops.xml @@ -71,7 +71,7 @@ - + diff --git a/tools/hicexplorer/hicDifferentialTAD.xml b/tools/hicexplorer/hicDifferentialTAD.xml index a0a3f7bb31f..f606f7ba581 100644 --- a/tools/hicexplorer/hicDifferentialTAD.xml +++ b/tools/hicexplorer/hicDifferentialTAD.xml @@ -61,7 +61,8 @@ - + + diff --git a/tools/hicexplorer/hicPCA.xml b/tools/hicexplorer/hicPCA.xml index 41932b95c1e..d8b39b4046a 100644 --- a/tools/hicexplorer/hicPCA.xml +++ b/tools/hicexplorer/hicPCA.xml @@ -95,13 +95,13 @@ - + pearsonMatrix - + - + obsexpMatrix @@ -228,7 +228,7 @@ _________________ | For more information about HiCExplorer please consider our documentation on readthedocs.io_ .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html -.. _`Lieberman-Aiden et al. (2009)`: https://doi.org/10.1126%2Fscience.1181369 +.. _`Lieberman-Aiden et al. (2009)`: https://doi.org/10.1126/science.1181369 ]]> diff --git a/tools/hicexplorer/hicPlotMatrix.xml b/tools/hicexplorer/hicPlotMatrix.xml index 3af39f1108a..bf98d62ab19 100644 --- a/tools/hicexplorer/hicPlotMatrix.xml +++ b/tools/hicexplorer/hicPlotMatrix.xml @@ -141,7 +141,7 @@ - + diff --git a/tools/hicexplorer/hicPlotSVL.xml b/tools/hicexplorer/hicPlotSVL.xml index 00ac3f02a6d..708a54e1833 100644 --- a/tools/hicexplorer/hicPlotSVL.xml +++ b/tools/hicexplorer/hicPlotSVL.xml @@ -66,7 +66,7 @@ - + diff --git a/tools/hicexplorer/hicTransform.xml b/tools/hicexplorer/hicTransform.xml index dcd7aa9a863..5a163b04c1f 100644 --- a/tools/hicexplorer/hicTransform.xml +++ b/tools/hicexplorer/hicTransform.xml @@ -95,7 +95,7 @@ _________________ | For more information about HiCExplorer please consider our documentation on readthedocs.io_ .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html -.. _`Lieberman-Aiden et al. (2009)`: https://doi.org/10.1126%2Fscience.1181369 +.. _`Lieberman-Aiden et al. (2009)`: https://doi.org/10.1126/science.1181369 ]]> diff --git a/tools/hicexplorer/macros.xml b/tools/hicexplorer/macros.xml index 94fdf349441..78709cdcb5d 100644 --- a/tools/hicexplorer/macros.xml +++ b/tools/hicexplorer/macros.xml @@ -1,7 +1,7 @@ \${GALAXY_SLOTS:-4} 3.6 - 0 + 1 #if $use_range.select_use_range == "yes_use_range": --range $use_range.range_min:$use_range.range_max @@ -333,7 +333,7 @@ - +