annotate trixIndex.xml @ 0:3de4fbd488a1 draft default tip

planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
author yating-l
date Wed, 16 May 2018 17:33:35 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
1 <?xml version="1.0"?>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
2 <tool id="ucsc_trix_index_generator" name="UCSC Trix Index Generator" version="1.0">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
3 <description>Create UCSC Trix index from a tab-delimited text file or a Fasta file</description>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
4 <requirements>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
5 <requirement type="package" version="1.0">ucsc_tools_340_for_BLAT</requirement>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
6 </requirements>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
8 #if $input_type.input_type_selector == "fasta":
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
9 python $__tool_directory__/extractHeaders.py $input_type.input_file tab_file
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
10 &&
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
11 ixIxx tab_file ${index_ix} ${index_ixx}
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
12 #else:
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
13 ixIxx $input_type.input_file ${index_ix} ${index_ixx}
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
14 #end if
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
15 ]]></command>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
16 <inputs>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
17 <conditional name="input_type">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
18 <param name="input_type_selector" type="select" label="Choose the format" argument="--file_type">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
19 <option value="tab">Tabular</option>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
20 <option value="fasta" selected="True">Fasta</option>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
21 </param>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
22 <when value="tab">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
23 <param name="input_file" type="data" format="tabular" label="Tabular File" argument="-f"/>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
24 </when>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
25 <when value="fasta">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
26 <param name="input_file" type="data" format="fasta" label="Fasta File" argument="-f"/>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
27 </when>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
28 </conditional>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
29 </inputs>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
30 <outputs>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
31 <collection name="trix_index" type="list" label="${tool.name} on ${on_string}:Trix index">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
32 <data name="index_ix" format="txt" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
33 <data name="index_ixx" format="txt" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
34 </collection>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
35 </outputs>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
36 <tests>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
37 <test>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
38 <param name="input_type_selector" value="fasta" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
39 <param name="input_file" value="dmel-hits-translation-r6.11.fasta" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
40 <output_collection name="trix_index" type="list">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
41 <element name="index_ix" value="out.ix" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
42 <element name="index_ixx" value="out.ixx" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
43 </output_collection>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
44 </test>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
45 <test>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
46 <param name="input_type_selector" value="tab" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
47 <param name="input_file" value="dmel-hits-tab" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
48 <output_collection name="trix_index" type="list">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
49 <element name="index_ix" value="out.ix" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
50 <element name="index_ixx" value="out.ixx" />
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
51 </output_collection>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
52 </test>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
53 </tests>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
54 <help>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
55 <![CDATA[
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
56 UCSC Trix Index Generator
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
57 ==========================
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
58
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
59 Generate UCSC Trix index from a Fasta file or a Tabular file
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
60 -------------------------------------------------------------
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
61
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
62 ixIxx - Create indices for simple line-oriented file of format
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
63
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
64 Reference: https://genome.ucsc.edu/goldenpath/help/trix.html
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
65
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
66 Source code:
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
67 ============
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
68
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
69 http://hgdownload.cse.ucsc.edu/admin/exe/
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
70
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
71 ]]></help>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
72 <citations>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
73 <citation type="bibtex">
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
74 @article{Kent01062002,
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
75 author = {Kent, W. James and Sugnet, Charles W. and Furey, Terrence S. and Roskin, Krishna M. and Pringle, Tom H. and Zahler, Alan M. and Haussler, and David},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
76 title = {The Human Genome Browser at UCSC},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
77 volume = {12},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
78 number = {6},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
79 pages = {996-1006},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
80 year = {2002},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
81 doi = {10.1101/gr.229102},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
82 URL = {http://genome.cshlp.org/content/12/6/996.abstract},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
83 eprint = {http://genome.cshlp.org/content/12/6/996.full.pdf+html},
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
84 journal = {Genome Research}
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
85 }
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
86 </citation>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
87 </citations>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
88 </tool>
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
89
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
90
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
91
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
92
3de4fbd488a1 planemo upload commit 81955d80a45c04ad4874f19f43c36ca608b3735e
yating-l
parents:
diff changeset
93