annotate bedToBam.xml @ 0:a993f4a9aeaa draft default tip

Uploaded
author brenninc
date Thu, 12 May 2016 06:20:51 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
1 <!-- adapted from https://toolshed.g2.bx.psu.edu/view/iuc/bedtools/f8b7dc21b4ee
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
2 Added the samtools sort and samtools requirement as bam files must be outpit sorted -->
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
3 <tool id="bedtools_bedtobam_sorted" name="BED to sorted BAM" version="@WRAPPER_VERSION@.0">
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
4 <description>converter</description>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
5 <macros>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
6 <import>macros.xml</import>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
7 </macros>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
8 <expand macro="requirements" >
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
9 <requirement type="package" version="1.2">samtools</requirement>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
10 </expand>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
11 <expand macro="stdio" />
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
12 <command>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
13 <![CDATA[
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
14 bedtools bedtobam
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
15 $bed12
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
16 -mapq $mapq
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
17 -g $genome
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
18 -i '$input'
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
19 > unsorted.bam &&
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
20 samtools sort -@ \${GALAXY_SLOTS:-1} -o '$output' -O bam -T dataset 'unsorted.bam'
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
21 ]]>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
22 </command>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
23 <inputs>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
24 <param format="bed" name="input" type="data" label="Convert the following BED file to BAM"/>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
25 <param name="bed12" type="boolean" truevalue="-bed12" falsevalue="" checked="false"
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
26 label="Indicate that the input BED file is in BED12 (a.k.a 'blocked' BED) format"
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
27 help="If Selected, bedToBam will convert blocked BED features (e.g., gene annotaions) into 'spliced' BAM alignments by creating an appropriate CIGAR string. (-bed12)"/>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
28 <expand macro="genome" />
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
29 <param name="mapq" type="integer" value="255"
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
30 label="Set a mapping quality (SAM MAPQ field) value for all BED entries" help="(-mapq)"/>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
31 </inputs>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
32 <outputs>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
33 <data format="bam" name="output" metadata_source="input" label="${input.name} (as BAM)"/>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
34 </outputs>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
35 <tests>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
36 <test>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
37 <param name="input" value="bedToBam1.bed" ftype="bed" />
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
38 <param name="genome" value="mm9_chr1.len" ftype="tabular" />
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
39 <output name="output" file="sortedBedToBam_result.bam" lines_diff="4" ftype="bam" />
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
40 </test>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
41 </tests>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
42 <help>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
43 <![CDATA[
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
44 **What it does**
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
45
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
46 bedToBam converts features in a feature file to BAM format. This is useful as an efficient means of storing large genome annotations in a compact, indexed format for visualization purposes.
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
47
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
48 @REFERENCES@
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
49 ]]>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
50 </help>
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
51 <expand macro="citations" />
a993f4a9aeaa Uploaded
brenninc
parents:
diff changeset
52 </tool>