annotate picard_DownsampleSam.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="Downsample SAM/BAM" id="picard_DownsampleSam" version="1.135">
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
2 <description>Downsample a file to retain a subset of the reads</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 java -jar
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
10 \$JAVA_JAR_PATH/picard.jar
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
11 DownsampleSam
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
12 INPUT="${inputFile}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
13 OUTPUT="${outFile}"
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
14 PROBABILITY=${probability}
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
15 RANDOM_SEED=${seed}
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
16 QUIET=true
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
17 VERBOSITY=ERROR
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
18 VALIDATION_STRINGENCY=${validation_stringency}
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
19 </command>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
20 <inputs>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
21 <param format="sam,bam" name="inputFile" type="data" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM or BAM dataset" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
22 <param name="probability" type="float" size="4" min="0.0" max="1.0" label="Probability (between 0 and 1) that any given read will be kept" help="PROBABILITY; specify 1 to keep all reads, 0.1 to keep 10% of the reads" value="1" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
23 <param name="seed" type="integer" size="5" label="Random seed value" help="RANDOM_SEED; default=1" value="1" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
24
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
25 <expand macro="VS" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
26
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
27 </inputs>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
28
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
29 <stdio>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
30 <exit_code range="1:" level="fatal"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
31 </stdio>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
32
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
33 <outputs>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
34 <data name="outFile" format="bam" label="${tool.name} on ${on_string}: downsampled BAM"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
35 </outputs>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
36
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
37 <tests>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
38 <test>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
39 <param name="inputFile" value="picard_DownsampleSam.bam" ftype="bam" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
40 <param name="probability" value="0.1" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
41 <param name="seed" value="1024" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
42 <param name="validation_stringency" value="LENIENT" />
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
43 <output name="outFile" file="picard_DownsampleSam_test1.bam" ftype="bam"/>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
44 </test>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
45 </tests>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
46 <help>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
47
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
48 .. class:: infomark
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
49
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
50 **Purpose**
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
51
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
52 Randomly down-sample a SAM or BAM file to retain a random subset of the reads. Mate-pairs are either both kept or both discarded. Reads marked as not primary alignments are all discarded. Each read is given a probability P of being retained - results with the exact same input in the same order and with the same value for RANDOM_SEED will produce the same results.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
53
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
54 @dataset_collections@
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
55
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
56 @description@
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
57
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
58 INPUT=File
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
59 I=File The input SAM or BAM file to downsample. Required.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
60
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
61 OUTPUT=File
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
62 O=File The output, downsampled, SAM or BAM file to write. Required.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
63
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
64 RANDOM_SEED=Long
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
65 R=Long Random seed to use if reproducibilty is desired. Setting to null will cause multiple
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
66 invocations to produce different results.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
67
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
68 PROBABILITY=Double
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
69 P=Double The probability of keeping any individual read, between 0 and 1.
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
70
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
71
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
72
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
73 @more_info@
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
74 </help>
5166ed57b1c4 Uploaded version 1.135
avowinkel
parents:
diff changeset
75 </tool>