annotate picard_MarkDuplicates.xml @ 1:5f1da1eadb39 draft default tip

add symlinked macros file
author avowinkel
date Mon, 06 Jul 2015 14:48:21 -0400
parents 5166ed57b1c4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
1 <tool name="MarkDuplicates" id="picard_MarkDuplicates" version="1.135">
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
2 <description>examine aligned records in BAM datasets to locate duplicate molecules</description>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
3 <macros>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
4 <import>picard_macros.xml</import>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
5 </macros>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
6 <expand macro="requirements" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
7 <command>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
8 @java_options@
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
9
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
10 java -jar \$JAVA_JAR_PATH/picard.jar
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
11 MarkDuplicates
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
12
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
13 INPUT="${inputFile}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
14 OUTPUT="${outFile}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
15
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
16 METRICS_FILE="${metrics_file}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
17 #for $element in $comments:
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
18 COMMENT="${element.comment}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
19 #end for
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
20 REMOVE_DUPLICATES="${remove_duplicates}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
21 ASSUME_SORTED="${assume_sorted}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
22
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
23 DUPLICATE_SCORING_STRATEGY="${duplicate_scoring_strategy}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
24
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
25 #import pipes
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
26 READ_NAME_REGEX=${ pipes.quote( str( $read_name_regex ) ) or "''" }
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
27 OPTICAL_DUPLICATE_PIXEL_DISTANCE="${optical_duplicate_pixel_distance}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
28
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
29 VALIDATION_STRINGENCY="${validation_stringency}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
30 QUIET=true
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
31 VERBOSITY=ERROR
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
32
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
33 </command>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
34 <inputs>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
35 <param format="bam" name="inputFile" type="data" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
36 <repeat name="comments" title="Comment" min="0" help="You can provide multiple comments">
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
37 <param name="comment" type="text" size="50" label="Add this comment to BAM dataset"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
38 </repeat>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
39 <param name="remove_duplicates" type="boolean" label="If true do not write duplicates to the output file instead of writing them with appropriate flags set" help="REMOVE_DUPLICATES; default=False"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
40 <param name="assume_sorted" type="boolean" label="Assume the input file is already sorted" checked="true" truevalue="true" falsevalue="false" help="ASSUME_SORTED; default=True"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
41
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
42 <param name="duplicate_scoring_strategy" type="select" label="The scoring strategy for choosing the non-duplicate among candidates" help="DUPLICATE_SCORING_STRATEGY; default=SUM_OF_BASE_QUALITIES">
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
43 <option value="SUM_OF_BASE_QUALITIES">SUM_OF_BASE_QUALITIES</option>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
44 <option value="TOTAL_MAPPED_REFERENCE_LENGTH">TOTAL_MAPPED_REFERENCE_LENGTH</option>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
45 </param>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
46
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
47
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
48 <param name="read_name_regex" type="text" size="40" value="[a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*." label="Regular expression that can be used to parse read names in the incoming SAM/BAM dataset" help="READ_NAME_REGEX; Read names are parsed to extract three variables: tile/region, x coordinate and y coordinate. These values are used to estimate the rate of optical duplication in order to give a more accurate estimated library size. See help below for more info; default=[a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*.">
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
49 <sanitizer>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
50 <valid initial="string.printable">
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
51 </valid>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
52 </sanitizer>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
53 </param>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
54 <param name="optical_duplicate_pixel_distance" type="integer" value="100" min="0" max="500" label="The maximum offset between two duplicte clusters in order to consider them optical duplicates" help="OPTICAL_DUPLICATE_PIXEL_DISTANCE; default=100"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
55
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
56 <expand macro="VS" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
57
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
58 </inputs>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
59
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
60 <outputs>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
61 <data format="txt" name="metrics_file" label="${tool.name} on ${on_string}: MarkDuplicate metrics"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
62 <data format="bam" name="outFile" label="${tool.name} on ${on_string}: MarkDuplicates BAM output"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
63 </outputs>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
64
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
65 <tests>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
66 <test>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
67 <param name="inputFile" value="picard_MarkDuplicates.bam" ftype="bam"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
68 <param name="comment" value="test-run"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
69 <param name="assume_sorted" value="True"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
70 <param name="remove_duplicates" value="True"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
71 <param name="read_name_regex" value="[a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*."/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
72 <param name="optical_duplicate_pixel_distance" value="100"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
73 <param name="duplicate_scoring_strategy" value="SUM_OF_BASE_QUALITIES"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
74 <param name="validation_stringency" value="LENIENT"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
75 <output name="outFile" file="picard_MarkDuplicates_test1.bam" ftype="bam" lines_diff="2"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
76 </test>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
77 </tests>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
78
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
79 <stdio>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
80 <exit_code range="1:" level="fatal"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
81 </stdio>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
82
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
83 <help>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
84
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
85 **Purpose**
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
86
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
87 Examines aligned records in the supplied SAM or BAM dataset to locate duplicate molecules. All records are then written to the output file with the duplicate records flagged.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
88
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
89 @dataset_collections@
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
90
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
91 @description@
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
92
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
93 COMMENT=String
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
94 CO=String Comment(s) to include in the output file's header. This option may be specified 0 or
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
95 more times.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
96
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
97 REMOVE_DUPLICATES=Boolean If true do not write duplicates to the output file instead of writing them with
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
98 appropriate flags set. Default value: false.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
99
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
100 READ_NAME_REGEX=String Regular expression that can be used to parse read names in the incoming SAM file. Read
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
101 names are parsed to extract three variables: tile/region, x coordinate and y coordinate.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
102 These values are used to estimate the rate of optical duplication in order to give a more
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
103 accurate estimated library size. Set this option to null to disable optical duplicate
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
104 detection. The regular expression should contain three capture groups for the three
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
105 variables, in order. It must match the entire read name. Note that if the default regex
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
106 is specified, a regex match is not actually done, but instead the read name is split on
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
107 colon character. For 5 element names, the 3rd, 4th and 5th elements are assumed to be
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
108 tile, x and y values. For 7 element names (CASAVA 1.8), the 5th, 6th, and 7th elements
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
109 are assumed to be tile, x and y values. Default value:
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
110 [a-zA-Z0-9]+:[0-9]:([0-9]+):([0-9]+):([0-9]+).*.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
111
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
112 DUPLICATE_SCORING_STRATEGY=ScoringStrategy
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
113 DS=ScoringStrategy The scoring strategy for choosing the non-duplicate among candidates. Default value:
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
114 SUM_OF_BASE_QUALITIES. Possible values: {SUM_OF_BASE_QUALITIES, TOTAL_MAPPED_REFERENCE_LENGTH}
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
115
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
116 OPTICAL_DUPLICATE_PIXEL_DISTANCE=Integer
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
117 The maximum offset between two duplicte clusters in order to consider them optical
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
118 duplicates. This should usually be set to some fairly small number (e.g. 5-10 pixels)
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
119 unless using later versions of the Illumina pipeline that multiply pixel values by 10, in
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
120 which case 50-100 is more normal. Default value: 100.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
121
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
122 @more_info@
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
123
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
124 </help>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
125 </tool>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
126
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
127