annotate picard_BedToIntervalList.xml @ 2:801f5e934011 draft default tip

Uploaded
author devteam
date Thu, 23 Oct 2014 11:40:52 -0400
parents b76a4f17bbbb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
1 <tool name="BedToIntervalList" id="picard_BedToIntervalList" version="1.122.0">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
2 <description>convert coordinate data into picard interval list format</description>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
3 <requirements><requirement type="package" version="1.122.0">picard</requirement></requirements>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
4
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
5 <macros>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
6 <import>picard_macros.xml</import>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
7 </macros>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
8
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
9 <command>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
10 @java_options@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
11
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
12 #set $picard_dict = "localref.dict"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
13 #set $ref_fasta = "localref.fa" ## This is done because picards "likes" .fa extension
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
14
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
15 ln -s "${reference_source.ref_file}" "${ref_fasta}" &amp;&amp;
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
16
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
17 #if str( $reference_source.reference_source_selector ) == "history":
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
18
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
19 java -jar \$JAVA_JAR_PATH/CreateSequenceDictionary.jar REFERENCE="${ref_fasta}" OUTPUT="${picard_dict}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
20 QUIET=true
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
21 VERBOSITY=ERROR
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
22
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
23 &amp;&amp;
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
24
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
25 #else:
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
26
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
27 #set $ref_fasta = str( $reference_source.ref_file.fields.path ) ## getting path of reference fasta file (must end with .fa)
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
28 #set $picard_dict=$ref_fasta[:-2]+"dict" ## replacing .fa with .dict
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
29
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
30 #end if
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
31
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
32 java -jar \$JAVA_JAR_PATH/BedToIntervalList.jar
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
33 INPUT="${inputFile}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
34 OUTPUT="${outFile}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
35
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
36 SEQUENCE_DICTIONARY="${picard_dict}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
37 QUIET=true
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
38 VERBOSITY=ERROR
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
39
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
40 </command>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
41
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
42 <inputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
43
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
44 <conditional name="reference_source">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
45 <param name="reference_source_selector" type="select" label="Load picard dictionary file from">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
46 <option value="cached">Local cache</option>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
47 <option value="history">History</option>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
48 </param>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
49 <when value="cached">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
50 <param name="ref_file" type="select" label="Use dictionary from the list" help="Select genome from the list">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
51 <options from_data_table="picard_indexes">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
52 <filter type="sort_by" column="2" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
53 <validator type="no_options" message="No indexes are available" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
54 </options>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
55 <validator type="no_options" message="A built-in dictionary is not available for the build associated with the selected input file"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
56 </param>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
57 </when>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
58 <when value="history">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
59 <param name="ref_file" type="data" format="fasta" label="Use the following dataset to create dictionary" help="You can upload a FASTA sequence to the history from which Picard will automatically generate dictionary using CreateSequenceDictionary command" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
60 </when>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
61 </conditional>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
62
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
63 <param format="bed" name="inputFile" type="data" label="Select coordinate dataset or dataset collection" help="This can be a bed or interval dataset" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
64
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
65 </inputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
66 <outputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
67 <data name="outFile" format="picard_interval_list" label="${tool.name} on ${on_string}: Picard interval list">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
68 </data>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
69 </outputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
70 <tests>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
71 <test>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
72 <param name="reference_source_selector" value="history" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
73 <param name="ref_file" value="picard_BedToIntervalList_ref.fa" ftype="fasta" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
74 <param name="inputFile" value="picard_BedToIntervalList.bed" ftype="bed"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
75 <output name="outFile" file="picard_BedToIntervalList_test1.pif" ftype="picard_interval_list" lines_diff="2" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
76 </test>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
77 </tests>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
78
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
79 <stdio>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
80 <exit_code range="1:" level="fatal"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
81 </stdio>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
82
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
83 <help>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
84
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
85 .. class:: infomark
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
86
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
87 **Purpose**
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
88
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
89 Convert coordinate data (such as BED or Galaxy Interval) into Picard Interval Format.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
90
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
91 @dataset_collections@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
92
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
93 @description@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
94
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
95 SEQUENCE_DICTIONARY=File
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
96 SD=File The sequence dictionary. You can either use dictionary pre-cached
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
97 on this instance of Galaxy, or create one on teh fly from a FASTA
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
98 file uploaded to history (right pane of the interface).
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
99
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
100
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
101 @more_info@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
102 </help>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
103 </tool>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
104
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
105
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
106
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
107
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
108
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
109
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
110
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
111
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
112
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
113
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
114
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
115
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
116