annotate translate_bed_sequences.xml @ 1:639ee511d552

Add biopython requirement
author Jim Johnson <jj@umn.edu>
date Thu, 09 Jan 2014 09:47:50 -0600
parents 57e586ee821e
children 359addb9b9d4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
1 <?xml version="1.0"?>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
2 <tool id="translate_bed_sequences" name="Translate BED Sequences" version="0.0.1">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
3 <description>3 frame translation of BED augmented with a sequence column</description>
1
639ee511d552 Add biopython requirement
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
4 <requirements>
639ee511d552 Add biopython requirement
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
5 <requirement type="package" version="1.62">biopython</requirement>
639ee511d552 Add biopython requirement
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
6 <requirement type="python-module">Bio</requirement>
639ee511d552 Add biopython requirement
Jim Johnson <jj@umn.edu>
parents: 0
diff changeset
7 </requirements>
0
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
8 <command interpreter="python">translate_bed_sequences.py --input "$input"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
9 #if $reference:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
10 --reference $reference
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
11 #else:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
12 --reference ${input.metadata.dbkey}
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
13 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
14 #if $seqtype:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
15 --seqtype $seqtype
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
16 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
17 #if $score_name:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
18 --score_name $score_name
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
19 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
20 #if $filter.filterseqs == 'yes':
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
21 #if $filter.leading_bp:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
22 --leading_bp $filter.leading_bp
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
23 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
24 #if $filter.trailing_bp:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
25 --trailing_bp $filter.trailing_bp
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
26 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
27 #else:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
28 --unfiltered
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
29 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
30 #if $trim.trimseqs == 'no':
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
31 --untrimmed
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
32 #if $trim.max_stop_codons != None:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
33 --max_stop_codons $trim.max_stop_codons
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
34 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
35 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
36 #if $min_length:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
37 --min_length $min_length
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
38 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
39 --output "$output"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
40 </command>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
41 <inputs>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
42 <param name="input" type="data" format="bed" label="BED file with added sequence column"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
43 help="Output from 'Extract Genomic DNA' run on tophat junctions.bed "/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
44 <param name="reference" type="text" value="" optional="true" label="Genome reference name"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
45 help="By default, the database metadata will be used."/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
46 <param name="seqtype" type="text" value="" optional="true" label="The SEQTYPE:STATUS to include in the fasta ID lines"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
47 help="For example: pep:novel"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
48 <param name="score_name" type="text" value="" optional="true" label="Add the bed score field fasta ID line with this tag name"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
49 help="For example: with the tag name 'depth' and bed score 12: depth:12"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
50 <conditional name="filter">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
51 <param name="filterseqs" type="select" label="Filter out translations with stop codons before the splice site">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
52 <option value="yes" selected="true">Yes</option>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
53 <option value="no">No</option>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
54 </param>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
55 <when value="yes">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
56 <param name="leading_bp" type="integer" value="" min="0" optional="true" label="Stop codon filtering start position base pairs"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
57 help="Do not reject translation is stop_codons are within base pairs of the BED start position for positive strand"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
58 <param name="trailing_bp" type="integer" value="" min="0" optional="true" label="Stop codon filtering end position base pairs"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
59 help="Do not reject translation is stop_codons are within base pairs of the BED end position for negative strand"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
60 </when>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
61 <when value="no"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
62 </conditional>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
63 <conditional name="trim">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
64 <param name="trimseqs" type="select" label="Trim translations to stop codons">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
65 <option value="yes" selected="true">Yes</option>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
66 <option value="no">No</option>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
67 </param>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
68 <when value="no">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
69 <param name="max_stop_codons" type="integer" value="" min="0" optional="true" label="Maximum number of stop codons allowed in a translation to be reported"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
70 </when>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
71 </conditional>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
72 <param name="min_length" type="integer" value="" min="0" optional="true" label="Minimum length of a translation to be reported"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
73 </inputs>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
74 <stdio>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
75 <exit_code range="1:" level="fatal" description="Error" />
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
76 </stdio>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
77 <outputs>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
78 <data name="output" metadata_source="input" format="fasta" label="${tool.name} on ${on_string}">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
79 <filter>'found' in str(outputs)</filter>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
80 </data>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
81 </outputs>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
82 <tests>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
83 <test>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
84 <param name="input" value="Extract_Genomic_DNA.bed" ftype="bed" dbkey="hg19"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
85 <param name="reference" value="GRCh37"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
86 <param name="seqtype" value="pep:novel"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
87 <param name="score_name" value="depth"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
88 <output name="output" file="translated_bed_sequences.fa"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
89 </test>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
90 </tests>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
91 <help>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
92 **Translate BED Sequences**
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
93
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
94 This tool takes a BED input file that has been processed
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
95 by the Galaxy tool "Extract Genomic DNA" to add a 13th column with the transcript sequence.
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
96
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
97 It generates a peptide fasta file with the 3-frame translations of the spliced sequence
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
98 defined by each entry in the input BED file.
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
99
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
100
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
101 </help>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
102 </tool>