annotate tool1/tool1.xml @ 0:9cc0f9a8912e draft default tip

Uploaded
author ambarishk
date Thu, 21 Apr 2016 06:45:57 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
1 <tool id="tool1" name="tool1" version="0.01">
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
2 <description>grep command</description>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
3
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
4 <command interpreter="python">
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
5
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
6 tool1.py --script_path "$runMe" --interpreter "python"
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
7 --tool_name "tool1"
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
8
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
9 --output_dir "./" --output_tab "$output1"
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
10
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
11 </command>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
12 <inputs>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
13 <param name="job_name" type="text" size="60" label="Supply a name for the outputs to remind you what they contain" value="tool1"/>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
14
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
15
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
16 </inputs>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
17 <outputs>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
18 <data format="ab1" name="output1" label="${job_name}"/>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
19
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
20 </outputs>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
21 <configfiles>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
22 <configfile name="runMe">
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
23 import re
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
24 hand = open('/home/guest/word.txt')
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
25 for line in hand:
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
26 line = line.rstrip()
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
27 if re.search('is', line) :
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
28 print line
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
29 </configfile>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
30 </configfiles>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
31 <tests>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
32
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
33 <test>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
34
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
35 <param name="job_name" value="test1"/>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
36 <param name="runMe" value="$runMe"/>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
37 <output name="output1="tool1_test1_output.xls" ftype="tabular"/>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
38
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
39 </test>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
40
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
41 </tests>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
42 <help>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
43
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
44
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
45 get the line.
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
46
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
47 **Script**
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
48 Pressing execute will run the following code over your input file and generate some outputs in your history::
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
49
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
50
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
51 import re
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
52 hand = open('/home/guest/word.txt')
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
53 for line in hand:
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
54 line = line.rstrip()
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
55 if re.search('is', line) :
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
56 print line
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
57
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
58 **Attribution**
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
59 This Galaxy tool was created by admin@ngsap.com at 13/04/2016 19:49:50
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
60 using the Galaxy Tool Factory.
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
61
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
62 See https://bitbucket.org/fubar/galaxytoolfactory for details of that project
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
63 Please cite: Creating re-usable tools from scripts: The Galaxy Tool Factory. Ross Lazarus; Antony Kaspi; Mark Ziemann; The Galaxy Team.
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
64 Bioinformatics 2012; doi: 10.1093/bioinformatics/bts573
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
65
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
66
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
67 This tool was autogenerated from a user provided script using the Galaxy Tool Factory 2
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
68 https://toolshed.g2.bx.psu.edu/view/fubar/tool_factory_2
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
69 </help>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
70 <citations>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
71
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
72 <citation type="doi">10.1093/bioinformatics/bts573</citation>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
73 </citations>
9cc0f9a8912e Uploaded
ambarishk
parents:
diff changeset
74 </tool>