comparison ensembl_cdna_translate.xml @ 8:5c92d0be6514 draft

Uploaded
author jjohnson
date Thu, 14 Dec 2017 13:32:00 -0500
parents d59e3ce10e74
children
comparison
equal deleted inserted replaced
7:d59e3ce10e74 8:5c92d0be6514
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <requirements> 6 <requirements>
7 <requirement type="package" version="0.4.10">requests-cache</requirement> 7 <requirement type="package" version="0.4.10">requests-cache</requirement>
8 <requirement type="package" version="1.62">biopython</requirement> 8 <requirement type="package" version="1.62">biopython</requirement>
9 <requirement type="package" version="3.1.4">twobitreader</requirement>
9 </requirements> 10 </requirements>
10 <stdio> 11 <stdio>
11 <exit_code range="1:" /> 12 <exit_code range="1:" />
12 </stdio> 13 </stdio>
13 <command><![CDATA[ 14 <command><![CDATA[
36 --transcripts '-' 37 --transcripts '-'
37 #end if 38 #end if
38 #end if 39 #end if
39 #if str($output_choice).find('translation') >= 0: 40 #if str($output_choice).find('translation') >= 0:
40 | python '$__tool_directory__/ensembl_cdna_translate.py' -i '-' 41 | python '$__tool_directory__/ensembl_cdna_translate.py' -i '-'
41 --min_length $min_length 42 #if $ref.ref_source == 'cached':
42 #if $enzyme: 43 --twobit='$ref.ref_loc.fields.path'
43 --enzyme '$enzyme' 44 #elif $ref.ref_source == 'history':
45 --twobit='$ref.ref_file'
44 #end if 46 #end if
45 #if $input and str($output_choice).find('transcript_bed') >= 0: 47 --min_length $translations.min_length
48 #if $translations.enzyme:
49 --enzyme '$translations.enzyme'
50 #end if
51 $translations.translate_all
52 #if $features.feature_src == 'history_bed' and str($output_choice).find('transcript_bed') >= 0:
46 --transcripts '$transcript_bed' 53 --transcripts '$transcript_bed'
47 #end if 54 #end if
48 #if str($output_choice).find('translation_bed') >= 0: 55 #if str($output_choice).find('translation_bed') >= 0:
49 --bed '$translation_bed' 56 --bed '$translation_bed'
50 #end if 57 #end if
51 #if str($output_choice).find('translation_fasta') >= 0: 58 #if str($output_choice).find('translation_fasta') >= 0:
52 --fasta '$translation_fasta' 59 --fasta '$translation_fasta'
53 #end if 60 #end if
54 ###if $features.biotypes: 61 #if $features.biotypes:
55 ## --biotypes '$features.biotypes' 62 --biotypes '$features.biotypes'
56 ###end if 63 #end if
57 #end if 64 #end if
58
59 ]]></command> 65 ]]></command>
60 <inputs> 66 <inputs>
61 <param name="species" type="text" value="" label="Ensembl species" > 67 <param name="species" type="text" value="" label="Ensembl species" >
62 <help> 68 <help>
63 </help> 69 </help>
85 <param name="biotypes" type="text" value="" optional="true" label="Restrict Feature translation to these biotypes" > 91 <param name="biotypes" type="text" value="" optional="true" label="Restrict Feature translation to these biotypes" >
86 <expand macro="biotypes_help" /> 92 <expand macro="biotypes_help" />
87 </param> 93 </param>
88 </when> 94 </when>
89 </conditional> 95 </conditional>
90 <!-- 96 <conditional name="ref">
91 <conditional name="translations"> 97 <param name="ref_source" type="select" label="Source for Genomic Sequence Data">
98 <option value="cached">Locally cached twobit</option>
99 <option value="history">History dataset twobit</option>
100 <option value="ensembl_rest">Retrieve sequences from Ensembl (Slow and only for Ensembl Transcripts)</option>
101 </param>
102 <when value="cached">
103 <param name="ref_loc" type="select" label="Select reference 2bit file">
104 <options from_data_table="twobit" />
105 </param>
106 </when>
107 <when value="history">
108 <param name="ref_file" type="data" format="twobit" label="reference 2bit file" />
109 </when>
110 <when value="ensembl_rest"/>
92 </conditional> 111 </conditional>
93 --> 112 <section name="translations" expanded="false" title="Translation Options">
94 113 <param name="min_length" type="integer" value="10" min="1" label="Minimum length of protein translation to report"/>
95 114 <param name="translate_all" type="boolean" truevalue="--all" falsevalue="" checked="false"
96 <param name="translate_all" type="boolean" truevalue="--all" falsevalue="" checked="false" 115 label="Report all translations (Default is non reference protein sequences)"/>
97 label="Report all translations (Default is non reference protein sequences)"/> 116 <param name="enzyme" type="select" optional="true" label="Digest enzyme"
117 help="Remove frags that are in a reference protein">
118 <option value="trypsin">trypsin: ([KR](?=[^P]))|((?&lt;=W)K(?=P))|((?&lt;=M)R(?=P))</option>
119 </param>
120 </section>
98 <param name="output_choice" type="select" multiple="true" display="checkboxes" label="Outputs"> 121 <param name="output_choice" type="select" multiple="true" display="checkboxes" label="Outputs">
99 <option value="transcript_bed">transcripts.bed</option> 122 <option value="transcript_bed">transcripts.bed</option>
100 <option value="translation_bed">translation.bed</option> 123 <option value="translation_bed">translation.bed</option>
101 <option value="translation_fasta">translation.fasta</option> 124 <option value="translation_fasta">translation.fasta</option>
102 </param> 125 </param>
103 <param name="min_length" type="integer" value="7" min="1" label="Minimum length of protein translation to report"/>
104 <param name="enzyme" type="select" optional="true" label="Digest enzyme"
105 help="Remove frags that are in a reference protein">
106 <option value="trypsin">trypsin: ([KR](?=[^P]))|((?&lt;=W)K(?=P))|((?&lt;=M)R(?=P))</option>
107 </param>
108 </inputs> 126 </inputs>
109 <outputs> 127 <outputs>
110 <data name="transcript_bed" format="bed" label="Ensembl $species transcripts.bed"> 128 <data name="transcript_bed" format="bed" label="Ensembl ${species} transcripts.bed">
111 <filter>'transcript_bed' in output_choice</filter> 129 <filter>'transcript_bed' in output_choice</filter>
112 </data> 130 </data>
113 <data name="translation_bed" format="bed" label="Ensembl $species translation.bed"> 131 <data name="translation_bed" format="bed" label="Ensembl ${species} translation.bed">
114 <filter>'translation_bed' in output_choice</filter> 132 <filter>'translation_bed' in output_choice</filter>
115 </data> 133 </data>
116 <data name="translation_fasta" format="fasta" label="Ensembl $species translation.fasta"> 134 <data name="translation_fasta" format="fasta" label="Ensembl ${species} translation.fasta">
117 <filter>'translation_fasta' in output_choice</filter> 135 <filter>'translation_fasta' in output_choice</filter>
118 </data> 136 </data>
119 </outputs> 137 </outputs>
120 <tests> 138 <tests>
121 <test> 139 <test>
122 <param name="species" value="human"/> 140 <param name="species" value="human"/>
141 <param name="feature_src" value="history_bed"/>
123 <param name="input" value="human_transcripts.bed" ftype="bed"/> 142 <param name="input" value="human_transcripts.bed" ftype="bed"/>
143 <param name="ref_source" value="ensembl_rest"/>
124 <param name="output_choice" value="translation_bed,translation_fasta"/> 144 <param name="output_choice" value="translation_bed,translation_fasta"/>
125 <output name="translation_bed"> 145 <output name="translation_bed">
126 <assert_contents> 146 <assert_contents>
127 <has_text text="ENST00000641515" /> 147 <has_text text="ENST00000641515" />
128 </assert_contents> 148 </assert_contents>