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