comparison picard_BedToIntervalList.xml @ 0:b76a4f17bbbb draft

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