annotate teste_out/teste_out.xml @ 0:a3d3dc004a88 draft default tip

Uploaded
author lucasfsilva
date Thu, 12 Mar 2015 16:36:22 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
1 <tool id="teste_out" name="teste_out" version="0.01">
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
2 <description>teste_tools_lucas</description>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
3
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
4 <command interpreter="python">
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
5
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
6 teste_out.py --script_path "$runMe" --interpreter "python"
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
7 --tool_name "teste_out"
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
8
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
9
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
10 --input_formats None
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
11 #for intab in $input1:
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
12 --input_tab "${intab},${intab.name}"
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
13 #end for
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
14
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
15 --output_dir "./" --output_tab "$output1"
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
16
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
17 </command>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
18 <inputs>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
19 <param name="input_tab" multiple="true" type="data" format="None" label="Select one or more None input files from your history"
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
20 help="Multiple inputs may be selected assuming the script can deal with them..."/>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
21 <param name="job_name" type="text" size="60" label="Supply a name for the outputs to remind you what they contain" value="teste_out"/>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
22
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
23
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
24 </inputs>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
25 <outputs>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
26 <data format="txt" name="output1" label="${job_name}"/>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
27
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
28 </outputs>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
29 <configfiles>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
30 <configfile name="runMe">
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
31 import sys
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
32 import os
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
33 import argparse
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
34
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
35 argp=argparse.ArgumentParser()
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
36 argp.add_argument('--innames',default=None)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
37 argp.add_argument('--inpaths',default=None)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
38 argp.add_argument('--outpath',default=None)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
39 argp.add_argument('--case_sensitive',default=0)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
40 argp.add_argument('--additional_parameters',default=[],action="append")
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
41 argp.add_argument('otherargs', nargs=argparse.REMAINDER)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
42 args = argp.parse_args()
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
43
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
44
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
45 f= open(args.outpath,'w')
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
46 if args.case_sensitive == 0:
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
47 f.write('teste:\t'.join(args.innames.split(",")).upper())
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
48 else:
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
49 f.write('teste:\t'.join(args.innames.split(",")))
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
50 f.close()
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
51 </configfile>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
52 </configfiles>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
53 <tests>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
54
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
55 <test>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
56 <param name="input_tab" value="dataset_20.dat,dataset_22.dat" />
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
57 <param name="job_name" value="test1"/>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
58 <param name="runMe" value="$runMe"/>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
59 <output name="output1="teste_out_test1_output.xls" ftype="tabular"/>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
60
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
61 </test>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
62
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
63 </tests>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
64 <help>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
65
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
66
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
67 **What it Does**
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
68 teste
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
69
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
70 **Script**
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
71 Pressing execute will run the following code over your input file and generate some outputs in your history::
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
72
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
73
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
74 import sys
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
75 import os
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
76 import argparse
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
77
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
78 argp=argparse.ArgumentParser()
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
79 argp.add_argument('--innames',default=None)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
80 argp.add_argument('--inpaths',default=None)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
81 argp.add_argument('--outpath',default=None)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
82 argp.add_argument('--case_sensitive',default=0)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
83 argp.add_argument('--additional_parameters',default=[],action="append")
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
84 argp.add_argument('otherargs', nargs=argparse.REMAINDER)
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
85 args = argp.parse_args()
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
86
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
87
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
88 f= open(args.outpath,'w')
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
89 if args.case_sensitive == 0:
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
90 f.write('teste:\t'.join(args.innames.split(",")).upper())
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
91 else:
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
92 f.write('teste:\t'.join(args.innames.split(",")))
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
93 f.close()
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
94
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
95 **Attribution**
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
96 This Galaxy tool was created by bioinfolucas@gmail.com at 12/03/2015 17:34:22
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
97 using the Galaxy Tool Factory.
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
98
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
99 See https://bitbucket.org/fubar/galaxytoolfactory for details of that project
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
100 Please cite: Creating re-usable tools from scripts: The Galaxy Tool Factory. Ross Lazarus; Antony Kaspi; Mark Ziemann; The Galaxy Team.
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
101 Bioinformatics 2012; doi: 10.1093/bioinformatics/bts573
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
102
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
103
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
104 This tool was autogenerated from a user provided script using the Galaxy Tool Factory 2
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
105 https://toolshed.g2.bx.psu.edu/view/fubar/tool_factory_2
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
106 </help>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
107 <citations>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
108
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
109 <citation type="doi">10.1093/bioinformatics/bts573</citation>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
110 </citations>
a3d3dc004a88 Uploaded
lucasfsilva
parents:
diff changeset
111 </tool>