Mercurial > repos > iuc > seqkit_translate
comparison seqkit_translate.xml @ 0:03d16c43b765 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqkit commit 3dbd70c33e5adb451abd1cbd195c2e244c2b0c59
| author | iuc |
|---|---|
| date | Mon, 27 May 2024 09:39:02 +0000 |
| parents | |
| children | 9b0187864272 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:03d16c43b765 |
|---|---|
| 1 <tool id="seqkit_translate" name="SeqKit translate" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
| 2 <description>nucleotid to protein sequence</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="bio_tools"/> | |
| 7 <expand macro="requirements"/> | |
| 8 <command detect_errors="exit_code"><![CDATA[ | |
| 9 seqkit translate | |
| 10 '$input' | |
| 11 -o '$output' | |
| 12 #if $translate_or_remove_unknown.selector == 'trimming': | |
| 13 $translate_or_remove_unknown.trim | |
| 14 #elif $translate_or_remove_unknown.selector == 'translate': | |
| 15 $translate_or_remove_unknown.allow_unknown_codon | |
| 16 #end if | |
| 17 $append_frame | |
| 18 $clean | |
| 19 #if $frame | |
| 20 -f '$frame' | |
| 21 #end if | |
| 22 $init_codon_as_M | |
| 23 #if $transl_table | |
| 24 -T '$transl_table' | |
| 25 #end if | |
| 26 | |
| 27 ]]></command> | |
| 28 <inputs> | |
| 29 <param name="input" type="data" format="fasta,fasta.gz,fastqsanger,fastqsanger.gz" label="Input file"/> | |
| 30 <param argument="--frame" type="select" multiple="true" label="Frame(s) to translate" > | |
| 31 <option value="1" selected="true">1 (default)</option> | |
| 32 <option value="2" selected="false">2</option> | |
| 33 <option value="3" selected="false">3</option> | |
| 34 <option value="-1" selected="false">-1</option> | |
| 35 <option value="-2" selected="false">-2</option> | |
| 36 <option value="-3" selected="false">-3</option> | |
| 37 <option value="6" selected="false">All 6 frames</option> | |
| 38 </param> | |
| 39 <param argument="--append-frame" type="boolean" truevalue="--append-frame" falsevalue="" checked="false" label="Append frame information to sequence ID ?" /> | |
| 40 <param argument="--transl-table" type="select" label="Translate table / genetic code to use" > | |
| 41 <option value="1" selected="true">1: The Standard Code (default)</option> | |
| 42 <option value="2" selected="false">2: The Vertebrate Mitochondrial Code</option> | |
| 43 <option value="3" selected="false">3: The Yeast Mitochondrial Code</option> | |
| 44 <option value="4" selected="false">4: The Mold, Protozoan, and Coelenterate Mitochondrial Code and the Mycoplasma/Spiroplasma Code</option> | |
| 45 <option value="5" selected="false">5: The Invertebrate Mitochondrial Code</option> | |
| 46 <option value="6" selected="false">6: The Ciliate, Dasycladacean and Hexamita Nuclear Code</option> | |
| 47 <option value="9" selected="false">9: The Echinoderm and Flatworm Mitochondrial Code</option> | |
| 48 <option value="10" selected="false">10: The Euplotid Nuclear Code</option> | |
| 49 <option value="11" selected="false">11: The Bacterial, Archaeal and Plant Plastid Code</option> | |
| 50 <option value="12" selected="false">12: The Alternative Yeast Nuclear Code</option> | |
| 51 <option value="13" selected="false">13: The Ascidian Mitochondrial Code</option> | |
| 52 <option value="14" selected="false">14: The Alternative Flatworm Mitochondrial Code</option> | |
| 53 <option value="16" selected="false">16: Chlorophycean Mitochondrial Code</option> | |
| 54 <option value="21" selected="false">21: Trematode Mitochondrial Code</option> | |
| 55 <option value="22" selected="false">22: Scenedesmus obliquus Mitochondrial Code</option> | |
| 56 <option value="23" selected="false">23: Thraustochytrium Mitochondrial Code</option> | |
| 57 <option value="24" selected="false">24: Pterobranchia Mitochondrial Code</option> | |
| 58 <option value="25" selected="false">25: Candidate Division SR1 and Gracilibacteria Code</option> | |
| 59 <option value="26" selected="false">26: Pachysolen tannophilus Nuclear Code</option> | |
| 60 <option value="27" selected="false">27: Karyorelict Nuclear</option> | |
| 61 <option value="28" selected="false">28: Condylostoma Nuclear</option> | |
| 62 <option value="29" selected="false">29: Mesodinium Nuclear</option> | |
| 63 <option value="30" selected="false">30: Peritrich Nuclear</option> | |
| 64 <option value="31" selected="false">31: Blastocrithidia Nuclear</option> | |
| 65 </param> | |
| 66 <param argument="--clean" type="boolean" truevalue="--clean" falsevalue="" checked="false" label="Change all STOP codon positions from the '*' character to 'X' (an unknown residue) ?" /> | |
| 67 <conditional name="translate_or_remove_unknown" > | |
| 68 <param name="selector" type="select" label="Translate or remove unknown code ?" > | |
| 69 <option value="trimming">Remove all 'X' and '*' characters</option> | |
| 70 <option value="translate">Translate unknown code to 'X'</option> | |
| 71 </param> | |
| 72 <when value="trimming"> | |
| 73 <param argument="--trim" type="boolean" truevalue="--trim" falsevalue="" checked="false" label="Remove all 'X' and '*' characters from the right end of the translation" /> | |
| 74 </when> | |
| 75 <when value="translate"> | |
| 76 <param argument="--allow-unknown-codon" type="boolean" truevalue="--allow-unknown-codon" falsevalue="" checked="false" label="Translate unknown code to 'X' ?" /> | |
| 77 </when> | |
| 78 </conditional> | |
| 79 <param argument="--init-codon-as-M" type="boolean" truevalue="--init-codon-as-M" falsevalue="" checked="false" label="Translate initial codon at beginning to 'M'" /> | |
| 80 </inputs> | |
| 81 <outputs> | |
| 82 <data name="output" format_source="input" label="${tool.name} on ${on_string}"/> | |
| 83 </outputs> | |
| 84 <tests> | |
| 85 <!-- 1. fastq --> | |
| 86 <test expect_num_outputs="1"> | |
| 87 <param name="input" value="input1.fastq.gz" ftype="fastqsanger.gz"/> | |
| 88 <output decompress="true" name="output" file="translate_output3.fastq.gz" ftype="fastqsanger.gz"/> | |
| 89 </test> | |
| 90 <!-- 2. fasta --> | |
| 91 <test expect_num_outputs="1"> | |
| 92 <param name="input" value="input1.fasta.gz" ftype="fasta.gz"/> | |
| 93 <conditional name="translate_or_remove_unknown"> | |
| 94 <param name="allow_unknown_codon" value="true"/> | |
| 95 </conditional> | |
| 96 <param name="append_frame" value="true"/> | |
| 97 <param name="clean" value="true"/> | |
| 98 <param name="frame" value="2,3" /> | |
| 99 <param name="init_codon_as_M" value="true" /> | |
| 100 <param name="transl_table" value="3" /> | |
| 101 <output decompress="true" name="output" file="translate_output1.fasta.gz" ftype="fasta.gz"/> | |
| 102 </test> | |
| 103 <!-- 3. fastq + trim --> | |
| 104 <test expect_num_outputs="1"> | |
| 105 <param name="input" value="input1.fastq.gz" ftype="fastqsanger.gz"/> | |
| 106 <conditional name="translate_or_remove_unknown"> | |
| 107 <param name="trim" value="true" /> | |
| 108 </conditional> | |
| 109 <output decompress="true" name="output" file="translate_output2.fastq.gz" ftype="fastqsanger.gz"/> | |
| 110 </test> | |
| 111 </tests> | |
| 112 <help> | |
| 113 **What it does** | |
| 114 | |
| 115 Translate DNA/RNA to protein sequence (supporting ambiguous bases) | |
| 116 | |
| 117 </help> | |
| 118 <expand macro="citations"/> | |
| 119 </tool> |
