annotate picard_DownsampleSam.xml @ 23:0688aff54e92 draft

Uploaded
author devteam
date Wed, 12 Feb 2014 18:02:38 -0500
parents 3abc76f7fa12
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
1 <tool name="Downsample SAM" id="picard_DownsampleSam" version="1.106.0">
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
2 <!-- found on https://bitbucket.org/bwlang/galaxy-dist/src/ca5ded2e18a9ef802c31429e3cb861e8775b24d0/tools/picard/picard_DownsampleSam.xml -->
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
3 <requirements><requirement type="package" version="1.106.0">picard</requirement></requirements>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
4 <command interpreter="python">
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
5 picard_wrapper.py
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
6 --input=$inputFile
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
7 --output=$outFile
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
8 --probability=$probability
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
9 --seed=$seed
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
10 -j "\$JAVA_JAR_PATH/DownsampleSam.jar"
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
11 </command>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
12 <inputs>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
13 <param format="sam" name="inputFile" type="data" label="SAM dataset to be downsampled"
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
14 help="If empty, upload or import a SAM dataset." />
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
15 <param name="probability" type="float" size="5" label="Probability (between 0 and 1) that any given read will be kept" help="specify 1 to keep all reads, 0.1 to keep 10% of the reads" value="1" />
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
16 <param name="seed" type="integer" size="5" label="Random seed value" help="(same seed + same probability = same set of reads kept)" value="1" />
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
17
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
18 </inputs>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
19 <outputs>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
20 <data name="outFile" format="sam" label="${tool.name} on ${on_string}">
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
21 </data>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
22 </outputs>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
23 <tests>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
24 <test>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
25 <!-- Commands:
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
26 cp test-data/phiX.fasta .
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
27 samtools faidx phiX.fasta
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
28 java -jar CreateSequenceDictionary.jar R=phiX.fasta O=phiX.dict URI=phiX.fasta TRUNCATE_NAMES_AT_WHITESPACE=false SPECIES=phiX174
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
29 java -jar ReorderSam.jar VALIDATION_STRINGENCY=LENIENT I=test-data/picard_RS_input1.bam O=picard_RS_output1.bam REFERENCE=phiX.fasta ALLOW_INCOMPLETE_DICT_CONCORDANCE=false ALLOW_CONTIG_LENGTH_DISCORDANCE=false
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
30 -->
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
31 <param name="inputFile" value="picard_RS_input1.sam" />
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
32 <param name="probability" value="0.1" />
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
33 <param name="seed" value="2" />
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
34 <output name="outFile" file="picard_RS_output1.sam" ftype="sam" />
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
35 </test>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
36 </tests>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
37 <help>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
38
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
39 .. class:: infomark
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
40
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
41 **Purpose**
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
42
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
43 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.
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
44
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
45 **Picard documentation**
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
46
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
47 This is a Galaxy wrapper for DownsampleSam, a part of the external package Picard-tools_.
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
48
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
49 .. _Picard-tools: http://www.google.com/search?q=picard+samtools
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
50
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
51 ------
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
52
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
53 .. class:: warningmark
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
54
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
55 **Warning on SAM/BAM quality**
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
56
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
57 Many SAM/BAM files produced externally and uploaded to Galaxy do not fully conform to SAM/BAM specifications. Galaxy deals with this by using the **LENIENT**
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
58 flag when it runs Picard, which allows reads to be discarded if they're empty or don't map. This appears
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
59 to be the only way to deal with SAM/BAM that cannot be parsed.
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
60
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
61
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
62 </help>
3abc76f7fa12 Uploaded
devteam
parents:
diff changeset
63 </tool>