comparison pairedbamtobed.xml @ 0:c6efe5d78140 draft default tip

Uploaded first version
author brenninc
date Tue, 10 May 2016 12:43:27 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c6efe5d78140
1 <tool id="pairedbamtobed12" name="Paired bam to bed12" version="0.1">
2 <description>Paired Bam to Bed. With samtools sorting by name beforehand and back to required order for galaxy afterwards.</description>
3 <requirements>
4 <requirement type="package" version="1.0">pairedbamtobed12</requirement>
5 <requirement type="package" version="1.2">samtools</requirement>
6 </requirements>
7 <stdio>
8 <exit_code range="1:" level="fatal" description="Error" />
9 </stdio>
10 <command>
11 <![CDATA[
12 samtools sort -n -O bam -T by_name -o sorted_by_name.bam "${input}" ;
13 pairedBamToBed12 -i sorted_by_name.bam > "${output}"
14 ]]>
15 </command>
16 <inputs>
17 <param name="input" format="bam" label="Select BAM dataset to convert to bed" type="data" />
18 </inputs>
19 <outputs>
20 <data format="bed" name="output" label="Bed12 version of ${on_string}" />
21 </outputs>
22 <tests>
23 <!-- test data too large for toolshed
24 See: https://github.com/Christian-B/galaxy_shedtools/tree/master/pairedBamToBed12 -->
25 <!--test>
26 <param ftype="bam" name="input" value="filtered.bam" />
27 <output file="paired.bed" ftype="bed" name="output" />
28 </test-->
29 </tests>
30 <help>
31 <![CDATA[
32 This tools runs pairedbamtobed12 to convert a paired bam file to a bed file.
33
34 As pairedbamtobed12 requires a bam file sorted by name, while galaxy only allows ones sorted by alignment this tool first uses Samtools to reorder the bam file.
35
36
37 ]]>
38 </help>
39 <citations>
40 <citation type="bibtex">
41 @misc{
42 pairedBamToBed12,
43 author = {Nicolas Bertin, Mickaƫl Mendez, Charles Plessy},
44 title = {pairedBamToBed12 on GitHub},
45 url = {https://github.com/Population-Transcriptomics/pairedBamToBed12}
46 }
47 </citation>
48 </citations>
49 </tool>