comparison small_rna_maps.xml @ 0:6d48150495e3 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_maps commit d4d8106d66b65679a1a685ab94bfcf99cdb7b959
author artbio
date Mon, 24 Jul 2017 06:28:45 -0400
parents
children 40972a8dfab9
comparison
equal deleted inserted replaced
-1:000000000000 0:6d48150495e3
1 <tool id="small_rna_maps" name="small_rna_maps" version="0.9.0">
2 <description></description>
3 <requirements>
4 <requirement type="package" version="1.11.2=py27_0">numpy</requirement>
5 <requirement type="package" version="0.11.2.1=py27_0">pysam</requirement>
6 <requirement type="package" version="1.3.2=r3.3.1_0">r-optparse</requirement>
7 <requirement type="package" version="0.6_28=r3.3.1_0">r-latticeextra</requirement>
8 <requirement type="package" version="2.2.1=r3.3.1_0">r-gridextra</requirement>
9 </requirements>
10 <stdio>
11 <exit_code range="1:" level="fatal" description="Tool exception" />
12 </stdio>
13 <command detect_errors="exit_code"><![CDATA[
14 #for $file in $input
15 samtools index '$file' &&
16 #end for
17 python '$__tool_directory__'/small_rna_maps.py
18 --input
19 #for $file in $input
20 '$file'
21 #end for
22 --sample_name
23 #for $sample in $input
24 '$sample.name'
25 #end for
26 #if $extra_plot == 'Sizes':
27 --sizes '$output_sizes'
28 #end if
29 --output '$output_tab' &&
30 Rscript '$__tool_directory__'/small_rna_maps.r --output_tab '$output_tab'
31 --output_pdf '$output_pdf'
32 #if $extra_plot != 'Sizes':
33 --extra_plot '$extra_plot'
34 #else
35 --sizes $output_sizes
36 #end if
37 ]]></command>
38 <inputs>
39 <param name="input" type="data" format="bam" label="Select multiple alignments to parse" multiple="True"/>
40 <param name="extra_plot" type="select" label="select the type of extra plot in addition to read map">
41 <option value="Coverage">Coverage</option>
42 <option value="Mean">Mean Sizes</option>
43 <option value="Median">Median Sizes</option>
44 <option value="Sizes">Size Distributions</option>
45 </param>
46 </inputs>
47
48 <outputs>
49 <data format="tabular" name="output_tab" label="Map dataframe" />
50 <data format="tabular" name="output_sizes" label="Size dataframe" >
51 <filter>extra_plot == "Sizes"</filter>
52 </data>
53 <data format="pdf" name="output_pdf" label="PDF file" />
54
55 </outputs>
56
57 <tests>
58 <test>
59 <param name="input" value="input1.bam,input2.bam" ftype="bam"/>
60 <param name="extra_plot" value="Mean" />
61 <output file="output.tab" name="output_tab" />
62 <output file="mean.pdf" name="output_pdf" />
63 </test>
64 <test>
65 <param name="input" value="input1.bam,input1.bam" ftype="bam"/>
66 <param name="extra_plot" value="Mean" />
67 <output file="doubled.tab" name="output_tab" />
68 <output file="doubled_mean.pdf" name="output_pdf" />
69 </test>
70 <test>
71 <param name="input" value="input1.bam,input2.bam" ftype="bam"/>
72 <param name="extra_plot" value="Median" />
73 <output file="output.tab" name="output_tab" />
74 <output file="median.pdf" name="output_pdf" />
75 </test>
76 <test>
77 <param name="input" value="input1.bam,input2.bam" ftype="bam"/>
78 <param name="extra_plot" value="Coverage" />
79 <output file="output.tab" name="output_tab" />
80 <output file="coverage.pdf" name="output_pdf" />
81 </test>
82 <test>
83 <param name="input" value="input1.bam,input2.bam" ftype="bam"/>
84 <param name="extra_plot" value="Sizes" />
85 <output file="output.tab" name="output_tab" />
86 <output file="sizes.tab" name="output_sizes" />
87 <output file="sizes.pdf" name="output_pdf" />
88 </test>
89 </tests>
90
91
92 <help>
93
94 **What it does**
95
96 Generate read count maps from alignment BAM files, using pysam and lattice.
97
98 In addition to the read counts (lower graphs), median size, mean size and coverage depth of reads(lower graphs) mapping at a given position are plotted.
99
100 **Inputs**
101
102 bam alignment files that *must* be
103
104 - single-read
105 - sorted
106 - mapping to the same reference
107
108 **Output**
109
110 A pdf file generated by the R package lattice
111
112 One or two dataframes used to plot data
113
114 </help>
115
116 <citations>
117 <citation type="doi">10.1093/bioinformatics/btp352</citation>
118 <citation type="bibtex">@Book{,
119 title = {Lattice: Multivariate Data Visualization with R},
120 author = {Deepayan Sarkar},
121 publisher = {Springer},
122 address = {New York},
123 year = {2008},
124 note = {ISBN 978-0-387-75968-5},
125 url = {http://lmdvr.r-forge.r-project.org},
126 }</citation>
127 </citations>
128 </tool>
129