annotate riboplot.xml @ 0:ca58e9466cbf

First commit
author Vimalkumar Velayudhan <vimal@biotechcoder.com>
date Mon, 29 Jun 2015 16:38:36 +0100
parents
children 1e9797878349
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
1 <tool id="riboplot" name="riboplot" version="0.1.0">
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
2 <description>Plot and output read counts for a single transcript in an alignment (BAM)
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
3 </description>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
4 <requirements>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
5 <requirement type="package" version="1.2.1">matplotlib</requirement>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
6 <requirement type="package" version="0.7.7">pysam</requirement>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
7 <requirement type="package" version="0.1.18">samtools</requirement>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
8 </requirements>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
9 <stdio>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
10 <exit_code range="1:" level="fatal" description="Error" />
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
11 </stdio>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
12 <command interpreter="python">./riboplot/riboplot.py
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
13 --ribo_file "${ribo_file}"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
14 --transcriptome_fasta "${transcriptome_fasta}"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
15 --transcript_name "${transcript_name}"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
16 #if $rnacov.rnacov_select=="yes"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
17 --rna_file "${rna_file}"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
18 #end if
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
19 --read_length "${read_length}"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
20 --read_offset "${read_offset}"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
21 --html_file "${html_file}"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
22 --output_path "${html_file.files_path}"
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
23 ## --debug
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
24 </command>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
25 <inputs>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
26 <param name="ribo_file" type="data" format="bam" label="Ribo-Seq alignment file in BAM format"/>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
27 <param name="transcriptome_fasta" type="data" format="fasta" label="FASTA format file of the transcriptome"/>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
28 <param name="transcript_name" type="text" label="Name of the transcript to plot (as in FASTA)" size="40">
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
29 <validator type="expression" message="Please input a single transcript name">len(value.split(',')) == 1</validator>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
30 <validator type="empty_field" message="Field requires a value"/>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
31 <sanitizer>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
32 <valid>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
33 <add value="|"/>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
34 </valid>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
35 </sanitizer>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
36 </param>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
37 <conditional name="rnacov">
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
38 <param name="rnacov_select" type="select" label="Include RNA Coverage">
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
39 <option value="no">No</option>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
40 <option value="yes">Yes</option>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
41 </param>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
42 <when value="yes">
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
43 <param name="rna_file" type="data" format="bam" label="RNA-Seq alignment file in BAM format"/>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
44 </when>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
45 </conditional>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
46 <param name="read_length" type="integer" label="Read length to consider" value="28"/>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
47 <param name="read_offset" type="integer" label="Offset" value="0"/>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
48 </inputs>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
49 <outputs>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
50 <data format="html" name="html_file" label="riboplot (HTML report)"/>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
51 </outputs>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
52 <help>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
53 </help>
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
54 </tool>