annotate sam_pileup.xml @ 4:a3b4ad6858ff draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
author devteam
date Thu, 06 Feb 2020 07:11:33 -0500
parents 3ff8935743a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
1 <tool id="sam_pileup" name="Generate pileup" version="1.1.3" profile="16.04">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
2 <description>from BAM dataset</description>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
3 <requirements>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
4 <requirement type="package" version="0.1.16">samtools</requirement>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
5 </requirements>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
6 <command><![CDATA[
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
7 ln -s '$input1' input1.bam &&
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
8 ln -s '${input1.metadata.bam_index}' 'input1.bam.bai' &&
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
9 #if $refOrHistory.reference == 'history':
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
10 ln -s '$refOrHistory.ownFile' reference.fasta &&
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
11 samtools faidx reference.fasta &&
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
12 #end if
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
13 samtools pileup
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
14 #if $lastCol == 'yes':
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
15 -s
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
16 #end if
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
17 #if $indels == 'yes':
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
18 -i
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
19 #end if
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
20 -M $mapCap
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
21 #if $c.consensus == 'yes':
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
22 -c
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
23 -T $c.theta
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
24 -N $c.hapNum
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
25 -r $c.fraction
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
26 -I $c.phredProb
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
27 #end if
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
28 -f
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
29 #if $refOrHistory.reference == 'indexed':
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
30 '${refOrHistory.index.fields.path}'
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
31 #else:
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
32 reference.fasta
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
33 #end if
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
34 input1.bam
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
35 > '$output1'
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
36 ]]></command>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
37 <inputs>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
38 <conditional name="refOrHistory">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
39 <param name="reference" type="select" label="Will you select a reference genome from your history or use a built-in index?">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
40 <option value="indexed">Use a built-in index</option>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
41 <option value="history">Use one from the history</option>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
42 </param>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
43 <when value="indexed">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
44 <param name="input1" type="data" format="bam" label="Select the BAM file to generate the pileup file for">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
45 <validator type="unspecified_build" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
46 <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
47 </param>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
48 <param name="index" type="select" label="Using reference genome">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
49 <options from_data_table="fasta_indexes">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
50 <filter type="data_meta" ref="input1" key="dbkey" column="1" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
51 <validator type="no_options" message="No reference genome is available for the build associated with the selected input dataset" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
52 </options>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
53 </param>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
54 </when>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
55 <when value="history">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
56 <param name="input1" type="data" format="bam" label="Select the BAM file to generate the pileup file for" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
57 <param name="ownFile" argument="-f" type="data" format="fasta" label="Select a reference genome" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
58 </when>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
59 </conditional>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
60 <param name="lastCol" argument="-s" type="select" label="Whether or not to print the mapping quality as the last column" help="Makes the output easier to parse, but is space inefficient">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
61 <option value="no">Do not print the mapping quality as the last column</option>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
62 <option value="yes">Print the mapping quality as the last column</option>
0
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
63 </param>
4
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
64 <param name="indels" argument="-i" type="select" label="Whether or not to print only output pileup lines containing indels">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
65 <option value="no">Print all lines</option>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
66 <option value="yes">Print only lines containing indels</option>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
67 </param>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
68 <param name="mapCap" argument="-M" type="integer" value="60" label="Where to cap mapping quality" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
69 <conditional name="c">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
70 <param name="consensus" argument="-c" type="select" label="Call consensus according to MAQ model?">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
71 <option selected="true" value="no">No</option>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
72 <option value="yes">Yes</option>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
73 </param>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
74 <when value="no" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
75 <when value="yes">
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
76 <param name="theta" argument="-T" type="float" value="0.85" label="Theta parameter (error dependency coefficient) in the MAQ consensus calling model" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
77 <param name="hapNum" argument="-N" type="integer" value="2" label="Number of haplotypes in the sample" help="Greater than or equal to 2" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
78 <param name="fraction" argument="-r" type="float" value="0.001" label="Expected fraction of differences between a pair of haplotypes" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
79 <param name="phredProb" argument="-I" type="integer" value="40" label="Phred probability of an indel in sequencing/prep" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
80 </when>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
81 </conditional>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
82 </inputs>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
83 <outputs>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
84 <data name="output1" format="tabular" label="${tool.name} on ${on_string}: converted pileup" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
85 </outputs>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
86 <tests>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
87 <test>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
88 <!--
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
89 Bam to pileup command:
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
90 samtools faidx chr_m.fasta
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
91 samtools pileup -M 60 -f chr_m.fasta test-data/sam_pileup_in1.bam > sam_pileup_out1.pileup
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
92 chr_m.fasta is the prefix of the index
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
93 -->
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
94 <param name="reference" value="history" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
95 <param name="input1" value="sam_pileup_in1.bam" ftype="bam" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
96 <param name="ownFile" value="chr_m.fasta" ftype="fasta" dbkey="equCab2" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
97 <param name="lastCol" value="no" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
98 <param name="indels" value="no" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
99 <param name="mapCap" value="60" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
100 <param name="consensus" value="no" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
101 <output name="output1" file="sam_pileup_out1.pileup" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
102 </test>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
103 <!--
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
104 <test>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
105 Bam to pileup command:
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
106 samtools pileup -M 60 -c -T 0.85 -N 2 -r 0.001 -I 40 -f chr_m.fasta test-data/sam_pileup_in1.bam > sam_pileup_out2.pileup
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
107 chr_m.fasta is the prefix of the index
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
108 <param name="reference" value="indexed" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
109 <param name="input1" value="sam_pileup_in1.bam" ftype="bam" dbkey="equCab2" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
110 <param name="index" value="chr_m" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
111 <param name="lastCol" value="no" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
112 <param name="indels" value="no" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
113 <param name="mapCap" value="60" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
114 <param name="consensus" value="yes" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
115 <param name="theta" value="0.85" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
116 <param name="hapNum" value="2" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
117 <param name="fraction" value="0.001" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
118 <param name="phredProb" value="40" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
119 <output name="output1" file="sam_pileup_out2.pileup" />
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
120 </test>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
121 -->
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
122 </tests>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
123 <help><![CDATA[
0
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
124 **What it does**
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
125
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
126 Uses SAMTools_' pileup command to produce a pileup dataset from a provided BAM dataset. It generates two types of pileup datasets depending on the specified options. If *Call consensus according to MAQ model?* option is set to **No**, the tool produces simple pileup. If the option is set to **Yes**, a ten column pileup dataset with consensus is generated. Both types of datasets are briefly summarized below.
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
127
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
128 .. _SAMTools: http://samtools.sourceforge.net/samtools.shtml
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
129
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
130 ------
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
131
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
132 **Types of pileup datasets**
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
133
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
134 The description of pileup format below is largely based on information that can be found on SAMTools Pileup_ documentation page. The 6- and 10-column variants are described below.
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
135
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
136 .. _Pileup: http://samtools.sourceforge.net/pileup.shtml
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
137
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
138 **Six column pileup**::
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
139
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
140 1 2 3 4 5 6
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
141 ---------------------------------
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
142 chrM 412 A 2 ., II
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
143 chrM 413 G 4 ..t, IIIH
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
144 chrM 414 C 4 ...a III2
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
145 chrM 415 C 4 TTTt III7
4
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
146
0
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
147 where::
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
148
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
149 Column Definition
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
150 ------- ----------------------------
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
151 1 Chromosome
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
152 2 Position (1-based)
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
153 3 Reference base at that position
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
154 4 Coverage (# reads aligning over that position)
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
155 5 Bases within reads where (see Galaxy wiki for more info)
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
156 6 Quality values (phred33 scale, see Galaxy wiki for more)
4
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
157
0
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
158 **Ten column pileup**
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
159
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
160 The `ten-column` (consensus_) pileup incorporates additional consensus information generated with *-c* option of *samtools pileup* command::
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
161
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
162
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
163 1 2 3 4 5 6 7 8 9 10
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
164 ------------------------------------------------
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
165 chrM 412 A A 75 0 25 2 ., II
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
166 chrM 413 G G 72 0 25 4 ..t, IIIH
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
167 chrM 414 C C 75 0 25 4 ...a III2
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
168 chrM 415 C T 75 75 25 4 TTTt III7
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
169
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
170 where::
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
171
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
172 Column Definition
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
173 ------- --------------------------------------------------------
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
174 1 Chromosome
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
175 2 Position (1-based)
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
176 3 Reference base at that position
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
177 4 Consensus bases
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
178 5 Consensus quality
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
179 6 SNP quality
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
180 7 Maximum mapping quality
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
181 8 Coverage (# reads aligning over that position)
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
182 9 Bases within reads where (see Galaxy wiki for more info)
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
183 10 Quality values (phred33 scale, see Galaxy wiki for more)
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
184
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
185
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
186 .. _consensus: http://samtools.sourceforge.net/cns0.shtml
4
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
187 ]]></help>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
188 <citations>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
189 <citation type="doi">10.1093/bioinformatics/btp352</citation>
a3b4ad6858ff "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/sam_pileup commit 8301d37348be25a038b3c63b049b1178d05f5003"
devteam
parents: 2
diff changeset
190 </citations>
0
95612c159681 Uploaded tool tarball.
devteam
parents:
diff changeset
191 </tool>