# HG changeset patch # User artbio # Date 1545695736 18000 # Node ID 29f03c13c7a2aa99da38b5d3be1faa835194ee04 # Parent b585cb347a2687ccc6c22ffa0eb07d48b90f6fbd planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_maps commit da30f7ecca2dff1124a0c14c60f5ddb7731ccd37 diff -r b585cb347a26 -r 29f03c13c7a2 small_rna_maps.xml --- a/small_rna_maps.xml Sun Dec 09 13:30:54 2018 -0500 +++ b/small_rna_maps.xml Mon Dec 24 18:55:36 2018 -0500 @@ -1,4 +1,4 @@ - + numpy @@ -13,19 +13,20 @@ = ${minsize} and sequence_length <= ${maxsize}" -f bam '$file.inputs' >'$file.inputs.name' && - samtools index '$file.inputs.name' && + #import json + #import os + #for $file in $inputs + sambamba view -t \${GALAXY_SLOTS} -F "not unmapped and sequence_length >= ${minsize} and sequence_length <= ${maxsize}" -f bam '$file' -o '$file.element_identifier' && + samtools index '$file.element_identifier' && #end for + ls -la ./ && python '$__tool_directory__'/small_rna_maps.py - --inputs - #for $file in $series - '$file.inputs.name' + --inputs ${ ' '.join(['"%s"' % x.element_identifier for x in $inputs]) } + #set $labels = list() + #for $file in $inputs: + $labels.append(str($file.element_identifier)) #end for - --sample_names - #for $sample in $series - '$sample.inputs.name' - #end for + --sample_names ${ ' '.join(['"%s"' % x for x in $labels]) } --minsize $minsize --maxsize $maxsize #if str($plots_options.plots_options_selector ) == "two_plot": @@ -52,13 +53,11 @@ Rscript '$__tool_directory__'/small_rna_maps.r --first_dataframe '$output_tab' --extra_dataframe '$extra_output_tab' - --normalization - #set $norm = "" - #for $file in $series - #set $norm += str($file.normalization)+' ' - #end for - #set $norm = $norm[:-1] - '$norm' + #if len(str($normalization)) != 1: + --normalization "${ ' '.join( [factor for factor in $normalization.split()]) }" + #else: + --normalization "${ ' '.join( ["1" for factor in $inputs] )}" + #end if #if $ylimits_cond.ylimits == "no": --ymin '' --ymax '' #else: @@ -78,12 +77,10 @@ --output_pdf '$output_pdf' ]]> - - - - + + - - - - - - - - + + @@ -182,10 +173,8 @@ - - - - + + @@ -197,10 +186,8 @@ - - - - + + @@ -213,10 +200,8 @@ - - - - + + @@ -229,10 +214,8 @@ - - - - + + @@ -245,10 +228,8 @@ - - - - + + @@ -263,10 +244,8 @@ - - - - + + @@ -281,10 +260,8 @@ - - - - + + @@ -293,10 +270,8 @@ - - - - + + @@ -305,10 +280,8 @@ - - - - + + @@ -317,14 +290,8 @@ - - - - - - - - + + @@ -333,14 +300,8 @@ - - - - - - - - + + @@ -354,30 +315,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -386,14 +325,8 @@ - - - - - - - - + + @@ -403,14 +336,8 @@ - - - - - - - - + +