annotate bamtools.xml @ 0:76b2f1eee508 draft

Uploaded
author devteam
date Fri, 09 Jan 2015 11:35:08 -0500
parents
children ea3fc1adee75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
1 <?xml version="1.0"?>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
2 <tool id="bamtools" name="Convert, Merge, Randomize" version="0.0.1">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
3 <description>BAM datasets and perform other transformations</description>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
4 <requirements>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
5 <requirement type="package" version="2.3.0_2d7685d2ae">bamtools</requirement>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
6 <requirement type="package" version="0.1.18">samtools</requirement>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
7 </requirements>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
8
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
9 <command>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
10 ##set up input files
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
11
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
12 #for $bam_count, $input_bam in enumerate( $input_bams ):
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
13 ln -s "${input_bam.input_bam}" "localbam_${bam_count}.bam" &amp;&amp;
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
14 ln -s "${input_bam.input_bam.metadata.bam_index}" "localbam_${bam_count}.bam.bai" &amp;&amp;
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
15 #end for
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
16
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
17 #if str( $analysis_type.analysis_type_selector ) == "convert":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
18 #if str( $analysis_type.format_type.format_type_selector ) == "pileup":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
19 #set $reference_fasta_filename = "localref.fa"
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
20 #if str( $analysis_type.format_type.reference_source.reference_source_selector ) == "history":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
21 ln -s "${analysis_type.format_type.reference_source.ref_file}" "${reference_fasta_filename}" &amp;&amp;
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
22 samtools faidx "${reference_fasta_filename}" 2&gt;&amp;1 || echo "Error running samtools faidx for bamtools convert" &gt;&amp;2 &amp;&amp;
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
23 #else:
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
24 #set $reference_fasta_filename = str( $analysis_type.format_type.reference_source.ref_file.fields.path )
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
25 #end if
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
26 #end if
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
27 #end if
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
28
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
29 ##finished setting up inputs
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
30
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
31 ##start bamtools commandline
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
32
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
33 bamtools
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
34
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
35 #if str( $analysis_type.analysis_type_selector ) == "convert":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
36
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
37 convert
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
38
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
39 -format ${analysis_type.format_type.format_type_selector}
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
40
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
41 #if str( $analysis_type.format_type.format_type_selector ) == "pileup":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
42
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
43 ${analysis_type.format_type.mapqual}
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
44 -fasta "${reference_fasta_filename}"
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
45
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
46 #elif str( $analysis_type.format_type.format_type_selector ) == "sam":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
47
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
48 ${analysis_type.format_type.noheader}
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
49
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
50 #end if
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
51
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
52 -out $out_file1
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
53
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
54 #elif str( $analysis_type.analysis_type_selector ) == "count":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
55
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
56 count
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
57 > $out_file1
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
58
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
59 #elif str( $analysis_type.analysis_type_selector ) == "coverage":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
60
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
61 coverage
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
62 -out $out_file1
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
63
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
64 #elif str( $analysis_type.analysis_type_selector ) == "header":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
65
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
66 header
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
67 > $out_file1
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
68
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
69 #elif str( $analysis_type.analysis_type_selector ) == "merge":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
70
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
71 merge
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
72 -out $out_file1
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
73
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
74 #elif str( $analysis_type.analysis_type_selector ) == "random":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
75
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
76 random
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
77 -n ${analysis_type.count}
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
78 -seed ${analysis_type.seed}
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
79 -out $out_file1
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
80
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
81 #elif str( $analysis_type.analysis_type_selector ) == "revert":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
82
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
83 revert
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
84 ${analysis_type.keepDuplicate}
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
85 ${analysis_type.keepQualities}
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
86 -out $out_file1
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
87
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
88 #elif str( $analysis_type.analysis_type_selector ) == "sort":
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
89
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
90 sort
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
91 ${analysis_type.byname}
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
92 -out $out_file1
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
93
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
94 #end if
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
95
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
96 #for $bam_count, $input_bam in enumerate( $input_bams ):
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
97 -in "localbam_${bam_count}.bam"
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
98 #end for
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
99
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
100
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
101 </command>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
102 <inputs>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
103
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
104 <repeat name="input_bams" title="BAM dataset(s) to filter" min="1">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
105 <param name="input_bam" type="data" format="bam" label="BAM dataset" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
106 </repeat>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
107
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
108 <conditional name="analysis_type">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
109 <param name="analysis_type_selector" type="select" label="Select BAM manipulation" help="See help below for detailed description of each tool">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
110 <option value="convert">Convert</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
111 <option value="count">Count</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
112 <option value="coverage">Coverage</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
113 <option value="header">Header</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
114 <option value="merge">Merge</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
115 <option value="random">Random</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
116 <option value="revert">Revert</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
117 <!-- The sort option below is commented out as BAM files in Galaxy are reference sorted by dafault. -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
118 <!-- Allowing users for sort files may break donstream functionality. -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
119 <!-- To enable sort option simply uncomment the line below: -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
120 <!-- <option value="sort">Sort</option> -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
121 </param>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
122 <when value="convert">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
123 <conditional name="format_type">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
124 <param name="format_type_selector" type="select" help="Select what to convert your BAM to">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
125 <option value="bed">BED</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
126 <option value="fasta">FASTA</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
127 <option value="fastq">FASTQ</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
128 <option value="json">JSON</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
129 <option value="pileup">Pileup</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
130 <option value="sam">SAM</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
131 <option value="yaml">YAML</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
132 </param>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
133 <when value="pileup">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
134 <conditional name="reference_source">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
135 <param name="reference_source_selector" type="select" label="Choose the source for the reference list">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
136 <option value="cached">Locally cached</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
137 <option value="history">History</option>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
138 </param>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
139 <when value="cached">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
140 <param name="ref_file" type="select" label="Using reference genome">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
141 <options from_data_table="sam_fa_indexes">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
142 <!--<filter type="data_meta" key="dbkey" ref="input_bam" column="value"/>-->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
143 </options>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
144 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
145 </param>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
146 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
147 <when value="history"> <!-- FIX ME!!!! -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
148 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
149 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
150 </conditional>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
151 <param name="mapqual" type="boolean" truevalue="-mapqual" falsevalue="" label="Print quality scores?" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
152 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
153 <when value="sam">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
154 <param name="noheader" type="boolean" truevalue="-noheader" falsevalue="" label="Do not print header" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
155 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
156 </conditional>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
157 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
158 <when value="count">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
159 <!-- Nothing to be done with count -> just count alignments in the input bam(s) -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
160 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
161 <when value="coverage">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
162 <!-- Nothing to be done with count -> just count alignments in the input bam(s) -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
163 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
164 <when value="header">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
165 <!-- Nothing to be done with count -> just count alignments in the input bam(s) -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
166 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
167 <when value="merge">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
168 <!-- Nothing to be done with count -> just count alignments in the input bam(s) -->
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
169 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
170 <when value="random">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
171 <param name="count" type="integer" value="10000" label="Number of random alignments to grab" help="No duplicate checking is perfomed" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
172 <param name="seed" type="integer" value="1024" label="Random number generator seed" help="Use the same seed for reproducible results" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
173 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
174 <when value="revert">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
175 <param name="keepDuplicate" type="boolean" truevalue="-keepDuplicate" falsevalue="" label="Keep duplicates marked" help="Do not remove duplicate marks" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
176 <param name="keepQualities" type="boolean" truevalue="-keepQualities" falsevalue="" label="Keep base qualities" help="Do not replace qualities with contect of OQ tag" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
177 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
178 <when value="sort">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
179 <param name="byname" type="boolean" truevalue="-byname" falsevalue="" label="Sort by name" help="Checked: sort by name; Unchecked: sort by coordinate"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
180 </when>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
181 </conditional>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
182
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
183 </inputs>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
184 <outputs>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
185 <data format="txt" name="out_file1">
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
186 <change_format>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
187 <when input="analysis_type.format_type.format_type_selector" value="bed" format="bed" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
188 <when input="analysis_type.format_type.format_type_selector" value="fasta" format="fasta" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
189 <when input="analysis_type.format_type.format_type_selector" value="fastq" format="fastq" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
190 <when input="analysis_type.format_type.format_type_selector" value="sam" format="sam" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
191 <when input="analysis_type.format_type.format_type_selector" value="pileup" format="pileup" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
192 <when input="analysis_type.analysis_type_selector" value="coverage" format="tabular" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
193 <when input="analysis_type.analysis_type_selector" value="merge" format="bam" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
194 <when input="analysis_type.analysis_type_selector" value="random" format="bam" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
195 <when input="analysis_type.analysis_type_selector" value="revert" format="bam" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
196 <when input="analysis_type.analysis_type_selector" value="sort" format="bam" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
197 </change_format>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
198 </data>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
199 </outputs>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
200 <tests>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
201 <test>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
202 <param name="input_bam" ftype="bam" value="bamtools-input1.bam"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
203 <param name="analysis_type_selector" value="convert"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
204 <param name="format_type_selector" value="pileup"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
205 <param name="reference_source_selector" value="history" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
206 <param name="mapqual" value="true" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
207 <param name="ref_file" ftype="fasta" value="bamtools-fasta.fa"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
208 <output name="output_bam" file="bamtools-convert-pileup.pu" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
209 </test>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
210 <test>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
211 <param name="input_bam" ftype="bam" value="bamtools-input1.bam"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
212 <param name="analysis_type_selector" value="count"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
213 <output name="output_bam" file="bamtools-count.tab" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
214 </test>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
215 <test>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
216 <param name="input_bam" ftype="bam" value="bamtools-input1.bam"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
217 <param name="analysis_type_selector" value="coverage"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
218 <output name="output_bam" file="bamtools-coverage.tab" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
219 </test>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
220 <test>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
221 <param name="input_bam" ftype="bam" value="bamtools-input1.bam"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
222 <param name="analysis_type_selector" value="header"/>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
223 <output name="output_bam" file="bamtools-header.txt" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
224 </test>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
225 </tests>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
226
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
227 <stdio>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
228 <exit_code range="1:" />
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
229 </stdio>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
230
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
231 <help>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
232
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
233 **What is does**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
234
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
235 BAMTools is a collection of utilities for manipulation on BAM files. It is based on BAMtools suite of tools by Derek Barnett (https://github.com/pezmaster31/bamtools).
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
236 This Galaxy implementation of BAMTools utilities includes seven utilities - Convert, Count, Coverage, Header, Merge, Random, and Revert - decsribed in detail below.
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
237
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
238 -----
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
239
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
240 **Convert**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
241
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
242 Converts BAM dataset(s) into BED, FASTA, FASTQ, JSON, Pileup, SAM, or YAML formats. Note that the conversion to the pileup format requires providing a reference sequence either
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
243 cashed at this Galaxy instance, or provided by you as a FASTA dataset from History.
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
244
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
245 -----
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
246
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
247 **Count**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
248
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
249 Counts a number of alignments in a BAM dataset(s).
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
250
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
251 -----
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
252
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
253 **Coverage**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
254
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
255 Prints per-base coverage for a BAM dataset.
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
256
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
257 -----
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
258
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
259 **Header**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
260
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
261 Prints header from a BAM dataset(s).
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
262
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
263 ------
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
264
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
265 **Merge**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
266
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
267 Merges multiple BAM datasets into a single one. Obviously, you need to select multiple BAMs as input, which is done by pressing the "**Add new BAM dataset(s) to filter**" button.
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
268
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
269 ------
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
270
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
271 **Random**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
272
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
273 Grabs a specified number of random lines from BAM dataset(s).
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
274
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
275 ------
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
276
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
277 **Revert**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
278
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
279 Removes duplicate marks and restores original (non-recalibrated) base qualities.
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
280
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
281 -----
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
282
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
283 .. class:: infomark
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
284
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
285 **More information**
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
286
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
287 Additional information about BAMtools can be found at https://github.com/pezmaster31/bamtools/wiki
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
288
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
289 </help>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
290 <citations>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
291 <citation type="doi">10.1093/bioinformatics/btr174</citation>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
292 </citations>
76b2f1eee508 Uploaded
devteam
parents:
diff changeset
293 </tool>