annotate translate_bed_sequences.xml @ 0:57e586ee821e

Uploaded
author jjohnson
date Wed, 08 Jan 2014 18:33:29 -0500
parents
children 639ee511d552
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>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
4 <command interpreter="python">translate_bed_sequences.py --input "$input"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
5 #if $reference:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
6 --reference $reference
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
7 #else:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
8 --reference ${input.metadata.dbkey}
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
9 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
10 #if $seqtype:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
11 --seqtype $seqtype
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
12 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
13 #if $score_name:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
14 --score_name $score_name
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
15 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
16 #if $filter.filterseqs == 'yes':
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
17 #if $filter.leading_bp:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
18 --leading_bp $filter.leading_bp
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
19 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
20 #if $filter.trailing_bp:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
21 --trailing_bp $filter.trailing_bp
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
22 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
23 #else:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
24 --unfiltered
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
25 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
26 #if $trim.trimseqs == 'no':
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
27 --untrimmed
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
28 #if $trim.max_stop_codons != None:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
29 --max_stop_codons $trim.max_stop_codons
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
30 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
31 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
32 #if $min_length:
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
33 --min_length $min_length
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
34 #end if
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
35 --output "$output"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
36 </command>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
37 <inputs>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
38 <param name="input" type="data" format="bed" label="BED file with added sequence column"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
39 help="Output from 'Extract Genomic DNA' run on tophat junctions.bed "/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
40 <param name="reference" type="text" value="" optional="true" label="Genome reference name"
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
41 help="By default, the database metadata will be used."/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
42 <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
43 help="For example: pep:novel"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
44 <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
45 help="For example: with the tag name 'depth' and bed score 12: depth:12"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
46 <conditional name="filter">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
47 <param name="filterseqs" type="select" label="Filter out translations with stop codons before the splice site">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
48 <option value="yes" selected="true">Yes</option>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
49 <option value="no">No</option>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
50 </param>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
51 <when value="yes">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
52 <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
53 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
54 <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
55 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
56 </when>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
57 <when value="no"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
58 </conditional>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
59 <conditional name="trim">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
60 <param name="trimseqs" type="select" label="Trim translations to stop codons">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
61 <option value="yes" selected="true">Yes</option>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
62 <option value="no">No</option>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
63 </param>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
64 <when value="no">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
65 <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
66 </when>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
67 </conditional>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
68 <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
69 </inputs>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
70 <stdio>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
71 <exit_code range="1:" level="fatal" description="Error" />
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
72 </stdio>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
73 <outputs>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
74 <data name="output" metadata_source="input" format="fasta" label="${tool.name} on ${on_string}">
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
75 <filter>'found' in str(outputs)</filter>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
76 </data>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
77 </outputs>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
78 <tests>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
79 <test>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
80 <param name="input" value="Extract_Genomic_DNA.bed" ftype="bed" dbkey="hg19"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
81 <param name="reference" value="GRCh37"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
82 <param name="seqtype" value="pep:novel"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
83 <param name="score_name" value="depth"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
84 <output name="output" file="translated_bed_sequences.fa"/>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
85 </test>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
86 </tests>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
87 <help>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
88 **Translate BED Sequences**
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
89
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
90 This tool takes a BED input file that has been processed
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
91 by the Galaxy tool "Extract Genomic DNA" to add a 13th column with the transcript sequence.
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
92
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
93 It generates a peptide fasta file with the 3-frame translations of the spliced sequence
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
94 defined by each entry in the input BED file.
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
95
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
96
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
97 </help>
57e586ee821e Uploaded
jjohnson
parents:
diff changeset
98 </tool>