Mercurial > repos > ecology > aligned_to_consensus
comparison consalign.xml @ 0:0ccbe1c20fc3 draft default tip
planemo upload for repository https://github.com/ColineRoyaux/Galaxy_tool_projects/tree/main/consensus_from_alignments commit ecc21de8f368c6a95c57d4e6511ed42af9e72a66
| author | ecology |
|---|---|
| date | Tue, 25 Apr 2023 10:05:29 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:0ccbe1c20fc3 |
|---|---|
| 1 <tool id="aligned_to_consensus" name="Consensus sequence from aligned FASTA" version="@VERSION@"> | |
| 2 <description></description> | |
| 3 <macros> | |
| 4 <import>consalign_macros.xml</import> | |
| 5 </macros> | |
| 6 <requirements> | |
| 7 <requirement type="package" version="0.1.4">r-bioseq</requirement> | |
| 8 <requirement type="package" version="1.0.14">r-ptxqc</requirement> | |
| 9 </requirements> | |
| 10 <command detect_errors="exit_code"><![CDATA[ | |
| 11 Rscript | |
| 12 '$__tool_directory__/consensus_from_alignments.R' | |
| 13 '$input' | |
| 14 '$seqtype' | |
| 15 '$method' | |
| 16 '$gaps' | |
| 17 '$outog' | |
| 18 '$output' | |
| 19 ]]> | |
| 20 </command> | |
| 21 <inputs> | |
| 22 <param name="input" type="data" format="fasta" label="Input fasta file with at least two sequences"/> | |
| 23 <param name="seqtype" type="select" label="Type of sequence" multiple="false" optional="false" display="radio"> | |
| 24 <option value="DNA" selected="true">DNA</option> | |
| 25 <option value="RNA">RNA</option> | |
| 26 <option value="AA">Amino Acid</option> | |
| 27 </param> | |
| 28 <param name="method" type="select" label="Consensus method when differences are found between sequences" multiple="false" optional="false" display="radio"> | |
| 29 <option value="chr_ambiguity" selected="true">Use an ambiguous nucleotide</option> | |
| 30 <option value="chr_majority">Use the most frequent nucleotide</option> | |
| 31 </param> | |
| 32 <param name="gaps" type="boolean" checked="no" label="Take account of gaps?" help="/!\ If gaps are at the same place in all the sequences don't check 'no', you'll face an error"/> | |
| 33 <param name="outog" type="boolean" checked="no" label="Output consensus sequence AND original sequences in the FASTA file?" help="/!\ If gaps are at the same place in all the sequences don't check 'no', you'll face an error"/> | |
| 34 </inputs> | |
| 35 <outputs> | |
| 36 <data name="output" from_work_dir="output.fasta" format="fasta" label="Consensus sequence of ${input.display_name}"/> | |
| 37 </outputs> | |
| 38 <tests> | |
| 39 <test> | |
| 40 <param name="input" value="test_file.fasta"/> | |
| 41 <param name="seqtype" value="DNA"/> | |
| 42 <param name="method" value="chr_ambiguity"/> | |
| 43 <param name="gaps" value="false"/> | |
| 44 <param name="outog" value="false"/> | |
| 45 <output name="output"> | |
| 46 <assert_contents> | |
| 47 <has_n_lines n="2"/> | |
| 48 </assert_contents> | |
| 49 </output> | |
| 50 </test> | |
| 51 </tests> | |
| 52 <help><![CDATA[ | |
| 53 ===================================================== | |
| 54 Get consensus sequence from several aligned sequences | |
| 55 ===================================================== | |
| 56 | |
| 57 This tool uses the seq_consensus function from the bioseq package. @WARNING@ If gaps are at the same place in all the sequences don't check 'no' in the gaps parameter, | |
| 58 you'll face an error. | |
| 59 | |
| 60 Input can be any fasta file containing at least two aligned sequences. | |
| 61 | |
| 62 Output is a FASTA file containing the computed consensus sequence (along with original sequences if you want to). | |
| 63 ]]></help> | |
| 64 <citations> | |
| 65 <citation type="doi">10.1111/2041-210X.13490</citation> | |
| 66 </citations> | |
| 67 </tool> |
