annotate picard_BedToIntervalList.xml @ 2:4aa5b444fd42 draft default tip

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