Mercurial > repos > devteam > bam_to_sam
comparison bam_to_sam.xml @ 3:c1419fa820c6 draft
Uploaded
author | devteam |
---|---|
date | Wed, 18 Mar 2015 15:44:51 -0400 |
parents | c09a20532957 |
children | af7c50162f0b |
comparison
equal
deleted
inserted
replaced
2:c09a20532957 | 3:c1419fa820c6 |
---|---|
1 <tool id="bam_to_sam" name="BAM-to-SAM" version="1.0.4"> | 1 <tool id="bam_to_sam" name="BAM-to-SAM" version="1.0.6"> |
2 <requirements> | 2 <macros> |
3 <requirement type="package" version="0.1.19">samtools</requirement> | 3 <import>macros.xml</import> |
4 </requirements> | 4 </macros> |
5 <description>converts BAM format to SAM format</description> | 5 <expand macro="requirements"></expand> |
6 <command interpreter="python"> | 6 <expand macro="version_command"></expand> |
7 bam_to_sam.py | 7 <expand macro="stdio"></expand> |
8 --input1=$input1 | 8 <description>converts BAM format to SAM format</description> |
9 --output1=$output1 | 9 <command> |
10 $header | 10 <![CDATA[ |
11 </command> | 11 samtools sort -O bam -@ \${GALAXY_SLOTS:-1} "$input1" -o sorted_input.bam -T temp && |
12 <inputs> | 12 samtools view sorted_input.bam $header -o $output1 -@ \${GALAXY_SLOTS:-1} |
13 <param name="input1" type="data" format="bam" label="BAM File to Convert" /> | 13 ]]> |
14 <param name="header" type="boolean" truevalue="--header" falsevalue="" checked="False" label="Include header in output" /> | 14 </command> |
15 </inputs> | 15 <inputs> |
16 <outputs> | 16 <param format="bam" label="BAM File to Convert" name="input1" type="data" /> |
17 <data format="sam" name="output1" label="${tool.name} on ${on_string}: converted SAM" /> | 17 <param checked="False" falsevalue="" label="Include header in output" name="header" truevalue="-h" type="boolean" /> |
18 </outputs> | 18 </inputs> |
19 <tests> | 19 <outputs> |
20 <test> | 20 <data format="sam" label="${tool.name} on ${on_string}: converted SAM" name="output1" /> |
21 <!-- | 21 </outputs> |
22 Bam-to-Sam command: | 22 <tests> |
23 samtools view -o bam_to_sam_out1.sam test-data/bam_to_sam_in1.bam | 23 <test> |
24 bam_to_sam_in1.bam can be created from bam_to_sam_in1.sam | 24 <param ftype="bam" name="input1" value="bam_to_sam_in1.bam" /> |
25 --> | 25 <param name="header" value="" /> |
26 <param name="input1" value="bam_to_sam_in1.bam" ftype="bam" /> | 26 <output file="bam_to_sam_out1.sam" name="output1" sorted="True" /> |
27 <param name="header" value="" /> | 27 </test> |
28 <output name="output1" file="bam_to_sam_out1.sam" sorted="True" /> | 28 <test> |
29 </test> | 29 <param ftype="bam" name="input1" value="bam_to_sam_in2.bam" /> |
30 <test> | 30 <param name="header" value="" /> |
31 <!-- | 31 <output file="bam_to_sam_out2.sam" name="output1" sorted="True" /> |
32 Bam-to-Sam command: | 32 </test> |
33 samtools view -o bam_to_sam_out2.sam test-data/bam_to_sam_in2.bam | 33 <test> |
34 bam_to_sam_in2.bam can be created from bam_to_sam_in2.sam | 34 <param ftype="bam" name="input1" value="bam_to_sam_in1.bam" /> |
35 --> | 35 <param name="header" value="True" /> |
36 <param name="input1" value="bam_to_sam_in2.bam" ftype="bam" /> | 36 <output file="bam_to_sam_out3.sam" name="output1" sorted="True" /> |
37 <param name="header" value="" /> | 37 </test> |
38 <output name="output1" file="bam_to_sam_out2.sam" sorted="True" /> | 38 </tests> |
39 </test> | 39 <help> |
40 <test> | 40 <![CDATA[ |
41 <!-- | |
42 Bam-to-Sam command: | |
43 samtools view -h -o bam_to_sam_out3.sam test-data/bam_to_sam_in1.bam | |
44 bam_to_sam_in1.bam can be created from bam_to_sam_in1.sam | |
45 --> | |
46 <param name="input1" value="bam_to_sam_in1.bam" ftype="bam" /> | |
47 <param name="header" value="--header" /> | |
48 <output name="output1" file="bam_to_sam_out3.sam" sorted="True" lines_diff="6" /><!-- header param not working in func tests so won't produce correct 6-line header (fine in browser) --> | |
49 </test> | |
50 </tests> | |
51 <help> | |
52 | 41 |
53 **What it does** | 42 **What it does** |
54 | 43 |
55 This tool uses the SAMTools_ toolkit to produce a SAM file from a BAM file. | 44 This tool uses the SAMTools_ toolkit to produce a SAM file from a BAM file. |
56 | 45 |
57 .. _SAMTools: http://samtools.sourceforge.net/samtools.shtml | 46 .. _SAMTools: http://samtools.sourceforge.net/samtools.shtml |
58 | 47 ]]> |
59 </help> | 48 </help> |
60 <citations> | 49 <expand macro="citations"></expand> |
61 <citation type="doi">10.1093/bioinformatics/btp352</citation> | |
62 </citations> | |
63 </tool> | 50 </tool> |