annotate picard_BedToIntervalList.xml @ 1:5f1da1eadb39 draft default tip

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