annotate picard_FilterSamReads.xml @ 32:f9242e01365a draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/picard commit 285fab1660daa944d6833ae1e059b30cb1e88309
author iuc
date Mon, 25 Sep 2023 08:32:17 +0000
parents 2a17c789e0a5
children 3f254c5ced1d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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="FilterSamReads" id="picard_FilterSamReads" version="@TOOL_VERSION@.@WRAPPER_VERSION@">
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
2 <description>include or exclude aligned and unaligned reads and read lists</description>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
3 <macros>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
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
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
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
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
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
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
11 ##Sam Sorting is performed here because FilterSamReads requires input to be in query-sorted order
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 picard
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
14 SortSam
14
465cbb0cf2eb planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 74ee0f0b594075fab7f707aaffb4a7f9dac35f2f
devteam
parents: 13
diff changeset
15 INPUT='$escaped_element_identifier'
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
16 OUTPUT=query_sorted_bam.bam
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
17 SORT_ORDER=queryname
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
18 VALIDATION_STRINGENCY=LENIENT
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
19 QUIET=true
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
20 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
21
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
22 &&
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
23
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
24 picard
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
25 FilterSamReads
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
26 INPUT=query_sorted_bam.bam
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
27 FILTER="${filter_type.filter}"
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
28
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
29 #if ( str( $filter_type.filter ) == "includeReadList" or str( $filter_type.filter ) == "excludeReadList" ):
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
30 READ_LIST_FILE="${filter_type.read_list_file}"
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
31 #end if
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
32
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
33 OUTPUT="${outFile}"
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
34 SORT_ORDER=coordinate
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
35 VALIDATION_STRINGENCY="${validation_stringency}"
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>
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
40 <inputs>
8
3a3234d7a2e8 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents: 5
diff changeset
41 <param name="inputFile" type="data" format="sam,bam" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset"/>
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
42 <conditional name="filter_type">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
43 <param name="filter" type="select" label="Select filtering type" help="FILTER; see Help for deatiled info">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
44 <option value="includeAligned">Include aligned</option>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
45 <option value="excludeAligned">Exclude aligned</option>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
46 <option value="includeReadList">Include read list</option>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
47 <option value="excludeReadList">Exclude read list</option>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
48 </param>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
49 <when value="includeAligned"/> <!-- do nothing -->
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
50 <when value="excludeAligned"/> <!-- do nothing -->
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
51 <when value="includeReadList">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
52 <param name="read_list_file" type="data" format="tabular" label="Dataset containing read names that will be INCLUDED in the output" help="READ_LIST_FILE"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
53 </when>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
54 <when value="excludeReadList">
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
55 <param name="read_list_file" type="data" format="tabular" label="Dataset containing read names that will be EXCLUDED in the output" help="READ_LIST_FILE"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
56 </when>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
57 </conditional>
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
58
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
59 <expand macro="VS" />
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
60
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
61 </inputs>
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
62
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
63 <outputs>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
64 <data format="bam" name="outFile" label="${tool.name} on ${on_string}: filtered BAM"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
65 </outputs>
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
66
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
67 <tests>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
68 <test>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
69 <param name="inputFile" value="picard_FilterSamReads.bam" ftype="bam"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
70 <param name="filter" value="includeReadList"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
71 <param name="read_list_file" value="picard_FilterSamReads_read_list_file.tab" ftype="tabular"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
72 <param name="validation_stringency" value="LENIENT"/>
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
73 <output name="outFile" file="picard_FilterSamReads_include_reads_test1.bam" ftype="bam" lines_diff="4"/>
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
74 </test>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
75 <test>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
76 <param name="inputFile" value="picard_FilterSamReads.bam" ftype="bam"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
77 <param name="filter" value="excludeReadList"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
78 <param name="read_list_file" value="picard_FilterSamReads_read_list_file.tab" ftype="tabular"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
79 <param name="validation_stringency" value="LENIENT"/>
12
05087b27692a planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 7491208ca0c917a053798a48c3e54c3e30e95d92
devteam
parents: 8
diff changeset
80 <output name="outFile" file="picard_FilterSamReads_exclude_reads_test2.bam" ftype="bam" lines_diff="4"/>
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
81 </test>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
82 </tests>
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
83
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
84
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
85 <help>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
86
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
87 **Purpose**
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
88
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
89 Computes a number of metrics that are useful for evaluating coverage and performance of whole genome sequencing experiments.
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
90
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
91 ------
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
92
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
93 .. class:: warningmark
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
94
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
95 **Warning on using this tool on BWA-MEM output**
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
96
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
97 This tool will likely fail on BAM datasets generated by BWA MEM as it generates partial read alignemnts.
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
98
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
99 @dataset_collections@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
100
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
101 @description@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
102
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
103 FILTER=Filter Filter. Required. Possible values:
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
104 includeAligned [OUTPUT SAM/BAM will contain aligned
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
105 reads only. (Note that *both* first and
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
106 second of paired reads must be aligned to be included
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
107 in the OUTPUT SAM or BAM)],
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
108
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
109 excludeAligned [OUTPUT SAM/BAM will contain un-mapped reads only.
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
110 (Note that *both* first and second of pair must be aligned to be
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
111 excluded from the OUTPUT SAM or BAM)]
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
112
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
113 includeReadList [OUTPUT SAM/BAM will contain reads
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
114 that are supplied in the READ_LIST_FILE file]
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
115
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
116 excludeReadList [OUTPUT bam will contain
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
117 reads that are *not* supplied in the READ_LIST_FILE file]}
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
118
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
119 READ_LIST_FILE=File
13
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
120 RLF=File Read List File containing reads that will be included or excluded from the OUTPUT SAM or
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
121 BAM file. Default value: null.
7e6fd3d0f16e planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit bf94a1505c131fb3f67c867b6e1d886780efa42e
devteam
parents: 12
diff changeset
122
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
123 @more_info@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
124
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
125 </help>
19
5053a18d9bc8 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/picard commit 7036343b9ac0a0ffc2ce4f6db465b9298ef05e73
iuc
parents: 14
diff changeset
126 <expand macro="citations" />
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
127 </tool>