# HG changeset patch # User bgruening # Date 1570443493 14400 # Node ID fd067a1143f32d63a034acbce721a547696da85e # Parent 3f6715821198c6a6cf4aed9a9270ce8ab75cce9e "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/intarna commit 6529d7f585194b5a8bed7c19707dc918f18ec6fc" diff -r 3f6715821198 -r fd067a1143f3 intarna.xml --- a/intarna.xml Tue Apr 10 12:24:44 2018 -0400 +++ b/intarna.xml Mon Oct 07 06:18:13 2019 -0400 @@ -1,416 +1,480 @@ - + Efficient RNA-RNA interaction prediction incorporating accessibility and seeding of interaction sites. - + - + - - - - - - - - - - - - - - - - - - - - - - + - - + + - + - + - - + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - + + + - - - - - - - - - - - - - + + + + + - + - intarna + intarna - - - - IntaRNA --version - - "." - ## --qAccConstr $advancedOptions.query.qAccConstr - ## #end if --qIntLoopMax $advancedOptions.query.qIntLoopMax #if $advancedOptions.query.qRegion --qRegion '$advancedOptions.query.qRegion' #end if - ## Target param. - --target '$advancedOptions.target._target' + --target '$advancedOptions.target.target' --tAcc $advancedOptions.target.tAcc_cond.tAcc #if $advancedOptions.target.tAcc_cond.tAcc == "P" or $advancedOptions.target.tAcc_cond.tAcc == "E" --tAccFile '$advancedOptions.target.tAcc_cond.tAccFile' #end if --tAccW $advancedOptions.target.tAccW --tAccL $advancedOptions.target.tAccL - ## #if $advancedOptions.target.tAccConstr <> "." - ## --tAccConstr $advancedOptions.target.tAccConstr - ## #end if --tIntLoopMax $advancedOptions.target.tIntLoopMax #if $advancedOptions.target.tRegion --tRegion '$advancedOptions.target.tRegion' #end if - ## Seed param. - $advancedOptions.seed.noSeed - --seedBP $advancedOptions.seed.seedBP - --seedMaxUP $advancedOptions.seed.seedMaxUP - --seedQMaxUP $advancedOptions.seed.seedQMaxUP - --seedTMaxUP $advancedOptions.seed.seedTMaxUP - --seedMaxE $advancedOptions.seed.seedMaxE - --seedMinPu $advancedOptions.seed.seedMinPu - --seedQRange '$advancedOptions.seed.seedQRange' - --seedTRange '$advancedOptions.seed.seedTRange' - - ## Interaction param. + #if $advancedOptions.seed.noSeed + $advancedOptions.seed.noSeed + #else + --seedBP $advancedOptions.seed.seedBP + --seedMaxE $advancedOptions.seed.seedMaxE + --seedMinPu $advancedOptions.seed.seedMinPu + #if $advancedOptions.seed.seedMaxUP > 0 + --seedMaxUP $advancedOptions.seed.seedMaxUP + #end if + #if $advancedOptions.seed.seedQMaxUP + --seedQMaxUP $advancedOptions.seed.seedQMaxUP + #end if + #if $advancedOptions.seed.seedTMaxUP + --seedTMaxUP $advancedOptions.seed.seedTMaxUP + #end if + #if $advancedOptions.seed.seedQRange + --seedQRange '$advancedOptions.seed.seedQRange' + #end if + #if $advancedOptions.seed.seedTRange + --seedTRange '$advancedOptions.seed.seedTRange' + #end if + #end if + ## SHAPE param. + #if $advancedOptions.shape.qShape + --qShape '$advancedOptions.shape.qShape' + #end if + #if $advancedOptions.shape.tShape + --tShape '$advancedOptions.shape.tShape' + #end if + ## Prediction param. --mode $advancedOptions.interaction.mode - --pred $advancedOptions.interaction.pred - --energy $advancedOptions.interaction.energy - #if $advancedOptions.interaction.energyVRNA - --energyVRNA '$advancedOptions.interaction.energyVRNA' + --model $advancedOptions.interaction.model + --energy V + --energyVRNA '$advancedOptions.interaction.energyVRNA' + --temperature $advancedOptions.interaction.temperature + #if $advancedOptions.interaction.windowWidth + --windowWidth $advancedOptions.interaction.windowWidth + --windowOverlap $advancedOptions.interaction.windowOverlap #end if - --temperature $advancedOptions.interaction.temperature - + ##Output param. - --out ./temp_tabular_output - --outMode $advancedOptions.output.outMode + ## create temporary output file to be converted to tab-separated output (see below) + --out STDOUT + --outMode C + --outCsvCols '$advancedOptions.output.outCsvCols' + --outCsvSort '$advancedOptions.output.outCsvSort' --outNumber $advancedOptions.output.outNumber --outOverlap $advancedOptions.output.outOverlap --outMaxE $advancedOptions.output.outMaxE --outDeltaE $advancedOptions.output.outDeltaE - #if $advancedOptions.output.outCsvCols - --outCsvCols '$advancedOptions.output.outCsvCols' - #end if + ## add additional output files #if $advancedOptions.output.add_output_cond.selector == "add" - #if str($advancedOptions.output.add_output_cond.add_output.value) != 'None' - #for j in $advancedOptions.output.add_output_cond.add_output.value: - --$j $getVar($j) - #end for - #end if + #if str($advancedOptions.output.add_output_cond.add_output.value) != 'None' + #for $outFile in $advancedOptions.output.add_output_cond.add_output.value: + #if $outFile == 'qAcc' or $outFile == 'tAcc' + #set curOutFile = str($outFile) + ':intarna_' + str($outFile) + '.led' + #else + #if $outFile == 'qAcc' or $outFile == 'tAcc' or $outFile == 'qPu' or $outFile == 'tPu' + #set curOutFile = str($outFile) + ':intarna_' + str($outFile) + '.lpu' + #else + #set curOutFile = str($outFile) + ':intarna_' + str($outFile) + '.tabular' + #end if + #end if + --out '$curOutFile' + #end for + #end if #end if - #elif $advancedOptions.advancedSelector == "basic" ## Query parameters - --query '$advancedOptions.query._query' + --query '$advancedOptions.query.query' --qAcc $advancedOptions.query.qAcc_cond.qAcc #if $advancedOptions.query.qAcc_cond.qAcc == "P" or $advancedOptions.query.qAcc_cond.qAcc == "E" --qAccFile '$advancedOptions.query.qAcc_cond.qAccFile' #end if --qAccW $advancedOptions.query.qAccW --qAccL $advancedOptions.query.qAccL - ## Target param. - --target '$advancedOptions.target._target' + --target '$advancedOptions.target.target' --tAcc $advancedOptions.target.tAcc_cond.tAcc #if $advancedOptions.target.tAcc_cond.tAcc == "P" or $advancedOptions.target.tAcc_cond.tAcc == "E" --tAccFile '$advancedOptions.target.tAcc_cond.tAccFile' #end if --tAccW $advancedOptions.target.tAccW --tAccL $advancedOptions.target.tAccL - ## Seed param. - $advancedOptions.seed.noSeed - --seedBP $advancedOptions.seed.seedBP - --seedMaxUP $advancedOptions.seed.seedMaxUP - - ## Interaction param. + #if $advancedOptions.seed.noSeed + $advancedOptions.seed.noSeed + #else + --seedBP $advancedOptions.seed.seedBP + --seedMaxUP $advancedOptions.seed.seedMaxUP + #end if + ## Prediction param. --mode $advancedOptions.interaction.mode - - ##Output param. - --out ./temp_tabular_output - --outMode $advancedOptions.output.outMode + ## Output param. + ## create temporary output file to be converted to tab-separated output (see below) + --out STDOUT --outNumber $advancedOptions.output.outNumber --outOverlap $advancedOptions.output.outOverlap - #if $advancedOptions.output.outCsvCols - --outCsvCols '$advancedOptions.output.outCsvCols' - #end if + --outMode C + --outCsvCols '$advancedOptions.output.outCsvCols' + --outCsvSort '$advancedOptions.output.outCsvSort' #end if - && sed 's/\t/ /g' ./temp_tabular_output > ./temp_output_no_tabs - && sed 's/;/\t/g' ./temp_output_no_tabs > '$outfile' - - ]]> + + ## Multithreading param. + --threads "\${GALAXY_SLOTS:-1}" + ## convert semicolon-separated output to tab-separated file + | sed 's/\t/ /g' | sed 's/;/\t/g' > '$outfile' + ## convert additional semicolon-separated output to tab-separated file + #if $advancedOptions.advancedSelector == "advanced" + #if $advancedOptions.output.add_output_cond.selector == "add" + #if str($advancedOptions.output.add_output_cond.add_output.value) != 'None' + #for $outFile in $advancedOptions.output.add_output_cond.add_output.value: + #if $outFile != 'qAcc' and $outFile != 'tAcc' and $outFile != 'qPu' and $outFile != 'tPu' + #set curOutFile = 'intarna_' + str($outFile) + '*.tabular' + && sed -i 's/\t/ /g' $curOutFile + && sed -i 's/;/\t/g' $curOutFile + #end if + #end for + #end if + #end if + #end if +]]> - - + -
- - - - +
+ + +
-
- - - - - +
+ + +
- - - - - - - - + + + + + + + +
+
+ +
-
- - - - +
+ + + + + - - - + + + + - - + + +
- - - - + + + - + - + - - - - - + + + + + + + + + + + - + -
-
- +
+
-
- +
+
- +
- +
- +
- - - - - - + + + + (( + advancedOptions['advancedSelector'] == "advanced" and + advancedOptions['output']['add_output_cond']['selector'] == "add" and + 'spotProb' in advancedOptions['output']['add_output_cond']['add_output'] + )) + + + + + + (( + advancedOptions['advancedSelector'] == "advanced" and + advancedOptions['output']['add_output_cond']['selector'] == "add" and + 'qSpotProb' in advancedOptions['output']['add_output_cond']['add_output'] + )) + + + + + + (( + advancedOptions['advancedSelector'] == "advanced" and + advancedOptions['output']['add_output_cond']['selector'] == "add" and + 'tSpotProb' in advancedOptions['output']['add_output_cond']['add_output'] + )) + + + + (( advancedOptions['advancedSelector'] == "advanced" and advancedOptions['output']['add_output_cond']['selector'] == "add" and - 'outQAccFile' in advancedOptions['output']['add_output_cond']['add_output'] + 'qMinE' in advancedOptions['output']['add_output_cond']['add_output'] )) - - + + + (( advancedOptions['advancedSelector'] == "advanced" and advancedOptions['output']['add_output_cond']['selector'] == "add" and - 'outTAccFile' in advancedOptions['output']['add_output_cond']['add_output'] + 'tMinE' in advancedOptions['output']['add_output_cond']['add_output'] )) - - + + + (( advancedOptions['advancedSelector'] == "advanced" and advancedOptions['output']['add_output_cond']['selector'] == "add" and - 'outQPuFile' in advancedOptions['output']['add_output_cond']['add_output'] + 'pMinE' in advancedOptions['output']['add_output_cond']['add_output'] )) - - + + + + + (( + advancedOptions['advancedSelector'] == "advanced" and + advancedOptions['output']['add_output_cond']['selector'] == "add" and + 'qAcc' in advancedOptions['output']['add_output_cond']['add_output'] + )) + + + + (( advancedOptions['advancedSelector'] == "advanced" and advancedOptions['output']['add_output_cond']['selector'] == "add" and - 'outTPuFile' in advancedOptions['output']['add_output_cond']['add_output'] + 'tAcc' in advancedOptions['output']['add_output_cond']['add_output'] + )) + + + + + + (( + advancedOptions['advancedSelector'] == "advanced" and + advancedOptions['output']['add_output_cond']['selector'] == "add" and + 'qPu' in advancedOptions['output']['add_output_cond']['add_output'] )) - + + + + + (( + advancedOptions['advancedSelector'] == "advanced" and + advancedOptions['output']['add_output_cond']['selector'] == "add" and + 'tPu' in advancedOptions['output']['add_output_cond']['add_output'] + )) + + + - +
- + +
+
+ +
+
+ +
+ + + +
+
- + +
+
+ + + +
- + + + + + + + + +
- - -`_, is a general and fast approach to the prediction of RNA-RNA interactions incorporating both the accessibility of interacting sites as well as the existence of a user-definable seed interaction. We successfully applied IntaRNA to the prediction of bacterial sRNA targets and determined the exact locations of the interactions with a higher accuracy than competing programs. - .. class:: infomark - Please refer to `IntaRNA github repository `_ for use cases and additional information. - - **Input** - - - RNA sequences in *FASTA* format - - **Output** - RNA-RNA interaction information in CSV format and additional information/files on demand ]]> - - 10.1093/nar/gkx279 10.1093/nar/gku359 10.1093/bioinformatics/btn544 - diff -r 3f6715821198 -r fd067a1143f3 test-data/intarna_result.tabular --- a/test-data/intarna_result.tabular Tue Apr 10 12:24:44 2018 -0400 +++ b/test-data/intarna_result.tabular Mon Oct 07 06:18:13 2019 -0400 @@ -1,4 +1,4 @@ id1 start1 end1 id2 start2 end2 subseqDP hybridDP E -mRNA1 85 95 ncRNA1 21 32 GUGGUGAGGAG&CUCCUCACACAC (((((((((((&)))))))).))) -11.8783 -mRNA1 52 58 ncRNA2 28 34 UCAGUUA&UGACUGA (((((((&))))))) -3.08648 -mRNA2 86 97 ncRNA1 20 31 UGUGUGACGAGU&ACUCCUCACACA (((((((.((((&)))).))))))) -8.16744 +mRNA1 85 95 ncRNA1 21 32 GUGGUGAGGAG&CUCCUCACACAC (((((((((((&)))))))).))) -11.86 +mRNA2 86 97 ncRNA1 20 31 UGUGUGACGAGU&ACUCCUCACACA (((((((.((((&)))).))))))) -8.17 +mRNA1 52 58 ncRNA2 28 34 UCAGUUA&UGACUGA (((((((&))))))) -3.08