Mercurial > repos > artbio > bamparse
comparison bamparse.xml @ 0:2a1a2bc6ae8b draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/bamparse commit 4e42cba873625fad03423e65dfffbf4afa91598c
author | artbio |
---|---|
date | Fri, 13 Oct 2017 02:59:36 -0400 |
parents | |
children | ae9ea0488850 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:2a1a2bc6ae8b |
---|---|
1 <tool id="bamparse" name="Count alignments" version="2.0.0"> | |
2 <description>in a BAM file</description> | |
3 <requirements> | |
4 <requirement type="package" version="1.1.2">bowtie</requirement> | |
5 <requirement type="package" version="1.11.2">numpy</requirement> | |
6 <requirement type="package" version="0.11.2.1">pysam</requirement> | |
7 </requirements> | |
8 <stdio> | |
9 <exit_code range="1:" level="fatal" description="Tool exception" /> | |
10 </stdio> | |
11 <command detect_errors="exit_code"><![CDATA[ | |
12 mkdir outputdir && | |
13 #for $file in $input_list | |
14 samtools index '$file' && | |
15 #end for | |
16 python $__tool_directory__/bamparse.py | |
17 --alignments | |
18 #for $file in $input_list | |
19 '$file' | |
20 #end for | |
21 --labels | |
22 #for $file in $input_list | |
23 '$file.element_identifier' | |
24 #end for | |
25 --polarity '$polarity' | |
26 --number '$output_option' | |
27 ]]></command> | |
28 <inputs> | |
29 <param name="input_list" type="data" format="bam" label="Select multiple alignments to parse" multiple="true"/> | |
30 <param name="polarity" type="select" label="how to count sense and antisense reads"> | |
31 <option value="both">count both sense and antisense reads</option> | |
32 <option value="sense">count only sense reads</option> | |
33 <option value="antisense">count only antisense reads</option> | |
34 </param> | |
35 <param name="output_option" type="select" display="radio" label="Select the number of files for results" | |
36 help="Results can be returned either as a single multi-column table or in separate two-column | |
37 datasets (useful for DESeq subsequent analysis)"> | |
38 <option value="unique">A multi-column table</option> | |
39 <option value="multiple">One separate two-columns dataset per input bam alignment</option> | |
40 </param> | |
41 </inputs> | |
42 <outputs> | |
43 <data name="output" format="tabular" label="Counts"> | |
44 <discover_datasets pattern="(?P<designation>.*)\.tabular" ext="tabular" visible="true" assign_primary_output="true" directory="outputdir"/> | |
45 </data> | |
46 </outputs> | |
47 <help> | |
48 | |
49 **What it does** | |
50 | |
51 Counts the number of reads aligned to each reference (@SN, reference NAME) in one or | |
52 several BAM alignments. | |
53 | |
54 Sense, antisense or both sense and antisense alignments can be counted | |
55 | |
56 The library labels in the returned count table are taken from the input bam datasets | |
57 names in the Galaxy history. | |
58 </help> | |
59 <tests> | |
60 <test> | |
61 <param name="input_list" value="alignment1.bam,alignment2.bam" ftype="tabular" /> | |
62 <param name="polarity" value="both" /> | |
63 <param name="output_option" value="unique" /> | |
64 <output name="output" ftype="tabular" file="table.tabular" /> | |
65 </test> | |
66 <test> | |
67 <param name="input_list" value="alignment1.bam,alignment2.bam" ftype="tabular" /> | |
68 <param name="polarity" value="both" /> | |
69 <param name="output_option" value="multiple" /> | |
70 <output name="output" ftype="tabular" file="table0.tabular"> | |
71 <discovered_dataset designation="table1" ftype="tabular" file="table1.tabular" /> | |
72 </output> | |
73 </test> | |
74 </tests> | |
75 </tool> |