annotate picard_DownsampleSam.xml @ 9:5eaa8a968300 draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 1869970193a1878acbc0f8a79b81dd02b37f1dc1
author devteam
date Fri, 09 Oct 2015 17:43:13 -0400
parents 3a3234d7a2e8
children 05087b27692a
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="Downsample SAM/BAM" id="picard_DownsampleSam" version="@TOOL_VERSION@.0">
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
2 <description>Downsample a file to retain a subset of the reads</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" />
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
7 <command>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
8 @java_options@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
9 java -jar
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
10 \$JAVA_JAR_PATH/picard.jar
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
11 DownsampleSam
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
12 INPUT="${inputFile}"
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
13 OUTPUT="${outFile}"
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
14 PROBABILITY=${probability}
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
15 RANDOM_SEED=${seed}
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
16 QUIET=true
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
17 VERBOSITY=ERROR
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
18 VALIDATION_STRINGENCY=${validation_stringency}
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
19 </command>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
20 <inputs>
3d4f1fa26f0e Uploaded
devteam
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" />
9
5eaa8a968300 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 1869970193a1878acbc0f8a79b81dd02b37f1dc1
devteam
parents: 8
diff changeset
22 <param name="probability" type="float" 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" />
5eaa8a968300 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/picard commit 1869970193a1878acbc0f8a79b81dd02b37f1dc1
devteam
parents: 8
diff changeset
23 <param name="seed" type="integer" label="Random seed value" help="RANDOM_SEED; default=1" value="1" />
5
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
24
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
25 <expand macro="VS" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
26
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
27 </inputs>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
28
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
29 <stdio>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
30 <exit_code range="1:" level="fatal"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
31 </stdio>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
32
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
33 <outputs>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
34 <data name="outFile" format="bam" label="${tool.name} on ${on_string}: downsampled BAM"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
35 </outputs>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
36
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
37 <tests>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
38 <test>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
39 <param name="inputFile" value="picard_DownsampleSam.bam" ftype="bam" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
40 <param name="probability" value="0.1" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
41 <param name="seed" value="1024" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
42 <param name="validation_stringency" value="LENIENT" />
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
43 <output name="outFile" file="picard_DownsampleSam_test1.bam" ftype="bam"/>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
44 </test>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
45 </tests>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
46 <help>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
47
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
48 .. class:: infomark
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
49
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
50 **Purpose**
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
51
3d4f1fa26f0e Uploaded
devteam
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.
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
53
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
54 @dataset_collections@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
55
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
56 @description@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
57
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
58 INPUT=File
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
59 I=File The input SAM or BAM file to downsample. Required.
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
60
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
61 OUTPUT=File
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
62 O=File The output, downsampled, SAM or BAM file to write. Required.
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
63
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
64 RANDOM_SEED=Long
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
65 R=Long Random seed to use if reproducibilty is desired. Setting to null will cause multiple
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
66 invocations to produce different results.
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
67
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
68 PROBABILITY=Double
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
69 P=Double The probability of keeping any individual read, between 0 and 1.
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
70
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
71
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
72
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
73 @more_info@
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
74 </help>
3d4f1fa26f0e Uploaded
devteam
parents:
diff changeset
75 </tool>