annotate picard_BedToIntervalList.xml @ 14:465cbb0cf2eb draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 74ee0f0b594075fab7f707aaffb4a7f9dac35f2f
author devteam
date Wed, 07 Dec 2016 14:56:30 -0500
parents 7e6fd3d0f16e
children 5053a18d9bc8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
3a3234d7a2e8 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents: 5
diff changeset
1 <tool name="BedToIntervalList" id="picard_BedToIntervalList" version="@TOOL_VERSION@.0">
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
2 <description>convert coordinate data into picard interval list format</description>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
3 <macros>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
4 <import>picard_macros.xml</import>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
5 </macros>
8
3a3234d7a2e8 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents: 5
diff changeset
6 <expand macro="requirements" />
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
8 @java_options@
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
9 @symlink_element_identifier@
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
10 #set $picard_dict = "localref.dict"
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
11 #set $ref_fasta = "localref.fa" ## This is done because picards "likes" .fa extension
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
12
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
13 ln -s "${reference_source.ref_file}" "${ref_fasta}" &&
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
14
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
15 #if str( $reference_source.reference_source_selector ) == "history":
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
16
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
17 picard CreateSequenceDictionary REFERENCE="${ref_fasta}" OUTPUT="${picard_dict}"
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
18 QUIET=true
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
19 VERBOSITY=ERROR
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
20
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
21 &&
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
22
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
23 #else:
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
24
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
25 #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
26 #set $picard_dict=$ref_fasta[:-2]+"dict" ## replacing .fa with .dict
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
27
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
28 #end if
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
29
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
30 picard
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
31 BedToIntervalList
14
465cbb0cf2eb planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 74ee0f0b594075fab7f707aaffb4a7f9dac35f2f
devteam
parents: 13
diff changeset
32 INPUT='$escaped_element_identifier'
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
33 OUTPUT="${outFile}"
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
34
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
35 SEQUENCE_DICTIONARY="${picard_dict}"
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
36 QUIET=true
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
37 VERBOSITY=ERROR
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
38
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
39 ]]></command>
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
40
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
41 <inputs>
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
42
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
43 <conditional name="reference_source">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
44 <param name="reference_source_selector" type="select" label="Load picard dictionary file from">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
45 <option value="cached">Local cache</option>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
46 <option value="history">History</option>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
47 </param>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
48 <when value="cached">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
49 <param name="ref_file" type="select" label="Use dictionary from the list" help="Select genome from the list">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
50 <options from_data_table="picard_indexes">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
51 <filter type="sort_by" column="2" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
52 <validator type="no_options" message="No indexes are available" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
53 </options>
3d4f1fa26f0e Uploaded
devteam
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"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
55 </param>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
56 </when>
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
57 <when value="history">
5
3d4f1fa26f0e Uploaded
devteam
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" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
59 </when>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
60 </conditional>
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
61
5
3d4f1fa26f0e Uploaded
devteam
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" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
63
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
64 </inputs>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
65 <outputs>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
66 <data name="outFile" format="picard_interval_list" label="${tool.name} on ${on_string}: Picard interval list">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
67 </data>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
68 </outputs>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
69 <tests>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
70 <test>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
71 <param name="reference_source_selector" value="history" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
72 <param name="ref_file" value="picard_BedToIntervalList_ref.fa" ftype="fasta" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
73 <param name="inputFile" value="picard_BedToIntervalList.bed" ftype="bed"/>
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
74 <output name="outFile" file="picard_BedToIntervalList_test1.pif" ftype="picard_interval_list" lines_diff="8" />
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
75 </test>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
76 </tests>
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
77
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
78
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
79 <help>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
80
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
81 .. class:: infomark
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
82
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
83 **Purpose**
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
84
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
85 Convert coordinate data (such as BED or Galaxy Interval) into Picard Interval Format.
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
86
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
87 @dataset_collections@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
88
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
89 @description@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
90
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
91 SEQUENCE_DICTIONARY=File
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
92 SD=File The sequence dictionary. You can either use dictionary pre-cached
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
93 on this instance of Galaxy, or create one on teh fly from a FASTA
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
94 file uploaded to history (right pane of the interface).
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
95
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
96
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
97 @more_info@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
98 </help>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
99 </tool>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
100
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
101
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
102
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
103
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
104
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