comparison bcftools_plugin_counts.xml @ 3:136dc00f36c9 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit 9df9b52baf62b70fbcfc3fbe965d7197d4e8738e
author iuc
date Tue, 31 Jan 2017 12:43:46 -0500
parents 06cd2a0252dc
children 902fd5bfb7f6
comparison
equal deleted inserted replaced
2:19be3905440b 3:136dc00f36c9
26 @INPUT_FILE@ | tee counts_file.txt 26 @INPUT_FILE@ | tee counts_file.txt
27 && sed 's/^.* \([a-zA-Z]*\):[ ]*\([0-9]*\)$/\1 \2/' counts_file.txt | python $transform > "$output_file" 27 && sed 's/^.* \([a-zA-Z]*\):[ ]*\([0-9]*\)$/\1 \2/' counts_file.txt | python $transform > "$output_file"
28 ]]> 28 ]]>
29 </command> 29 </command>
30 <configfiles> 30 <configfiles>
31 <configfile name="transform"> 31 <configfile name="transform"><![CDATA[
32 from __future__ import print_function
32 import sys 33 import sys
33 header = [] 34 header = []
34 value = [] 35 value = []
35 for line in sys.stdin: 36 for line in sys.stdin:
36 h,v = line.strip().split() 37 h,v = line.strip().split()
37 header.append(h) 38 header.append(h)
38 value.append(v) 39 value.append(v)
39 print >> sys.stdout, '#%s\n' % '\t'.join(header) 40 print( '#%s' % '\t'.join(header) )
40 print >> sys.stdout, '%s\n' % '\t'.join(value) 41 print( '%s' % '\t'.join(value) )
42 ]]>
41 </configfile> 43 </configfile>
42 </configfiles> 44 </configfiles>
43 <inputs> 45 <inputs>
44 <expand macro="macro_input" /> 46 <expand macro="macro_input" />
45 <section name="sec_restrict" expanded="false" title="Restrict to"> 47 <section name="sec_restrict" expanded="false" title="Restrict to">