# HG changeset patch # User earlhaminst # Date 1568803060 14400 # Node ID 0a189243186daadde28b47624ee1ef0e22139979 # Parent c67bd5acbae2d1504c0c5cba7d97afc54ce9606a planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/t_coffee commit 88e1592fa528db1941bce52c588d4347a69cc745 diff -r c67bd5acbae2 -r 0a189243186d filter_by_fasta_ids.py --- a/filter_by_fasta_ids.py Wed Apr 25 11:15:13 2018 -0400 +++ b/filter_by_fasta_ids.py Wed Sep 18 06:37:40 2019 -0400 @@ -35,15 +35,11 @@ def main(): - ''' the main function''' - used_sequences = set() work_summary = {'wanted': 0, 'found': 0, 'duplicates': 0} - targets = [] with open(sys.argv[1]) as f_target: - for line in f_target.readlines(): - targets.append(">%s" % line.strip().upper()) + targets = [">%s" % _.strip().upper() for _ in f_target] work_summary['wanted'] = len(targets) diff -r c67bd5acbae2 -r 0a189243186d t_coffee.xml --- a/t_coffee.xml Wed Apr 25 11:15:13 2018 -0400 +++ b/t_coffee.xml Wed Sep 18 06:37:40 2019 -0400 @@ -7,47 +7,45 @@ - t_coffee -version | grep Version +t_coffee -version | grep Version - - temp.fasta && - #end if + temp.fasta && +#end if - #set $method_opt = '' - #if $method01 - #set $method_opt += str($method01) + ',' - #end if - #if $method02 - #set $method_opt += str($method02) + ',' - #end if - #if $method03 - #set $method_opt += str($method03) + ',' +#set $method_opt = '' +#if $method01 + #set $method_opt += str($method01) + ',' +#end if +#if $method02 + #set $method_opt += str($method02) + ',' +#end if +#if $method03 + #set $method_opt += str($method03) + ',' +#end if +#if $method_opt + #set $method_opt = '-method ' + $method_opt[:-1] +#end if + +#set $output_opt = '' +#if $outputs + #set $outputs_arr = str($outputs).split(',') + #for $o in $outputs_arr + #if $o != 'dnd' + #set $output_opt += $o + ',' #end if - #if $method_opt - #set $method_opt = '-method ' + $method_opt[:-1] - #end if + #end for +#else + #set $outputs_arr = [] +#end if +#if $output_opt + #set $output_opt = '-output ' + $output_opt[:-1] +#end if - #set $output_opt = '' - #if $outputs - #set $outputs_arr = str($outputs).split(',') - #for $o in $outputs_arr - #if $o != 'dnd' - #set $output_opt += $o + ',' - #end if - #end for - #else - #set $outputs_arr = [] - #end if - #if $output_opt - #set $output_opt = '-output ' + $output_opt[:-1] - #end if - - t_coffee '$input' $method_opt $output_opt -n_core \${GALAXY_SLOTS:-1} -run_name t_coffee_out -quiet -]]> - +t_coffee '$input' $method_opt $output_opt -n_core \${GALAXY_SLOTS:-1} -run_name t_coffee_out -quiet + ]]> @@ -147,7 +145,7 @@ - + 1ihvA NF-RVYYRDSRDPVWKGPA-KLLWKGEGAV-------VIQDN-------S DI--------------KVVPRRKAK-----IIRD - + ]]> 10.1006/jmbi.2000.4042