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