annotate picard_BedToIntervalList.xml @ 6:4ff1e04010e6 draft

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