Mercurial > repos > rnateam > locarna_pairwise
view locarna_pairwise.xml @ 4:4839df2b2f6b draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/rna_tools/locarna commit 94c141a71ef115279f1090f782b6f5cdeea9c277
author | bgruening |
---|---|
date | Mon, 19 Aug 2024 18:52:50 +0000 |
parents | f3f08a777c10 |
children |
line wrap: on
line source
<tool id="locarna_pairwise" name="LocARNA Pairwise Aligner" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> <description> Pairwise Simultaneous Alignment and Folding of RNAs (locarna, sparse) </description> <macros> <import>macros.xml</import> </macros> <expand macro="requirements" /> <expand macro="stdio" /> <expand macro="version" /> <command><![CDATA[ #if str($alignment_mode.alignment_mode_selector) == "sparse" sparse #else locarna #end if '$inputA' '$inputB' ## --width 60 ## -------------------- alignment mode and specific options ----------------# #if str($alignment_mode.alignment_mode_selector) == "global_locarna" #if str($alignment_mode.free_endgaps) != "----" --free-endgaps $alignment_mode.free_endgaps #end if #else if str($alignment_mode.alignment_mode_selector) == "local_locarna" --sequ-local on #else if str($alignment_mode.alignment_mode_selector) == "structure_local_locarna" --struct-local on #else if str($alignment_mode.alignment_mode_selector) == "structure_sequence_local_locarna" --sequ-local on --struct-local on #end if @SCORING_ARGS@ @FOLDING_ARGS@ $Folding.alifold_consensus_dp --consensus-structure $Folding.consensus_structure @HEURISTIC_ARGS@ #if str($alignment_mode.alignment_mode_selector) == "sparse" @HEURISTIC_SPARSE_ARGS@ #end if @CONSTRAINT_ARGS@ ## -------------------- output ----------------# #if 'stockholm' in str($outputs).split(",") --stockholm '$stockholm' #end if #if 'clustal' in str($outputs).split(",") --clustal '$clustal' #end if #if 'clustal_strict' in str($outputs).split(",") and (not 'clustal' in str($outputs).split(",")) --clustal '$clustal_strict' #end if #if 'pp' in str($outputs).split(",") --pp '$pp' #end if @STDOUT_ARGS@ #if 'clustal' in str($outputs).split(",") and 'clustal_strict' in str($outputs).split(",") && cp $clustal $clustal_strict #end if #if 'clustal_strict' in str($outputs).split(",") && cp '$clustal_strict' '$clustal_strict~' && sed '/^#/d' '$clustal_strict~' >'$clustal_strict' #end if ]]></command> <inputs> <param name="inputA" type="data" format="fasta,clustal,txt" label="Sequence A" help="First sequence in fasta, clustal, dp_ps, or PP2.0 format"/> <param name="inputB" type="data" format="fasta,clustal,txt" label="Sequence B" help="Second sequence in fasta, clustal, dp_ps, or PP2.0 format"/> <conditional name="alignment_mode"> <param name="alignment_mode_selector" type="select" label="Alignment mode" help="Note that local alignment mode usually requires to turn off the 'max-diff' heuristic (maximal difference for alignment traces)."> <option value="global_locarna">Global alignment(LocARNA)</option> <option value="local_locarna">Local alignment (LocARNA)</option> <option value="sparse">Global fast alignment (SPARSE)</option> <option value="structure_sequence_local_locarna">Structure and sequence local alignment (LocARNA)</option> <option value="structure_local_locarna">Structure local, sequence global alignment (LocARNA)</option> </param> <when value="global_locarna"> <param name="free_endgaps" type="select" label="Free endgaps" help="Specify whether gaps at the ends (all, 5', or 3' ends) of the sequences should be penalized or allowed for free."> <option value="----">None</option> <option value="++++">All</option> <option value="+-+-">5' ends</option> <option value="-+-+">3' ends</option> <option value="++--">first sequence</option> <option value="--++">second sequence</option> <option value="+---">sequence A, 5' end</option> <option value="-+--">sequence A, 3' end</option> <option value="--+-">sequence B, 5' end</option> <option value="---+">sequence B, 3' end</option> </param> </when> <when value="local_locarna"> </when> <when value="sparse"> <section name="HeuristicsSparse" title="Heuristic parameters for SPARSE"> <expand macro="common_heuristic_parameters_sparse" /> </section> </when> <when value="structure_sequence_local_locarna" /> <when value="structure_local_locarna" /> </conditional> <param name="outputs" type="select" display="checkboxes" multiple="true" label="Output options"> <option value="clustal_strict" selected="true">Output alignment in ClustalW format</option> <option value="clustal" selected="false">Output alignment in constraint-annotated ClustalW format</option> <option value="stockholm" selected="false">Output alignment in Stockholm format</option> <option value="pp" selected="false">Output alignment in LocARNA's PP 2.0 format</option> </param> <param name="stdout_verbosity" type="select" label="Standard output verbosity"> <option value="--quiet">Don't report standard output</option> <option value="">Non verbose</option> <option value="--verbose">Verbose</option> </param> <section name="Scoring" title="Scoring parameters"> <expand macro="common_scoring_parameters" /> </section> <section name="Folding" title="RNA folding parameters"> <expand macro="common_folding_parameters" /> <expand macro="alifold_consensus_parameter" /> <param name="consensus_structure" type="select" label="Consensus structure type" help="Type of consensus structures written to screen and stockholm output"> <!-- <option value="mea">mea</option>--> <option value="none">none</option> <option value="alifold">alifold</option> </param> </section> <section name="Heuristics" title="Heuristic parameters"> <expand macro="common_heuristic_parameters" /> <expand macro="max_diff_parameters_aln" /> </section> <section name="Constraints" title="Constraint parameters"> <expand macro="common_constraint_parameters" /> </section> </inputs> <outputs> <expand macro="standard_outupt" /> <data format="clustal" name="clustal" label="${tool.name} on ${on_string}: alignment (annotated clustal)"> <filter>'clustal' in outputs</filter> </data> <data format="clustal" name="clustal_strict" label="${tool.name}on ${on_string}: alignment (clustal)"> <filter>'clustal_strict' in outputs</filter> </data> <data format="stockholm" name="stockholm" label="${tool.name} on ${on_string}: alignment (stockholm)"> <filter>'stockholm' in outputs</filter> </data> <data format="txt" name="pp" label="${tool.name} on ${on_string}: alignment (PP 2.0)"> <filter>'pp' in outputs</filter> </data> </outputs> <tests> <test expect_num_outputs="1"> <param name="inputA" value="tRNA_2-1.fa" /> <param name="inputB" value="tRNA_2-2.fa" /> <param name="outputs" value="clustal" /> <output name="clustal" file="tRNA_2.aln" lines_diff="2" /> </test> <test expect_num_outputs="2"> <param name="inputA" value="haca.snoRNA-1.aln" /> <param name="inputB" value="haca.snoRNA-2.aln" /> <param name="outputs" value="clustal_strict,clustal" /> <output name="clustal" file="haca.snoRNA-c.aln" lines_diff="2" /> <output name="clustal_strict" file="haca.snoRNA.aln" lines_diff="2" /> </test> </tests> <help><![CDATA[ **LocARNA -- Pairwise alignment of RNAs** Pairwise RNA alignment tools of the LocARNA suite (locarna, sparse). These tools perform variants of simultaneous RNA folding and alignment. They can be adapted to specific needs by a broad range of parameters: * *scoring* of the alignment, e.g. influencing the cost of insertions/deletions and the weight of sequence vs. structure similarity. * *RNA folding*, which control the secondary RNA structure prediciton. * *heuristics*, which trade alignment accuracy vs. computation speed. The huge complexity of simultaneous alignment and folding generally requires some heuristics for reasonable computation times. Some alignment instances and alignment modes will require relaxation of the default heuristics; in particular, local, constrained, and free end gap alignment, will often require turning off the "maximal difference for alignment traces" heuristic. * *constraints*, which can be applied to include prior knowledge to improve the quality of results and/or speed of computation. **Input.** Input consists of two sequences or alignments, which are specified in fasta, clustal, stockholm, or LocARNA pp format. Optionally, one can specify structure and anchor constraints in these input files. **Output.** The final pairwise alignment is reported in standard and/or variants of the clustal and stockholm format, as well as LocARNA's own pp format. For more information, see .. __: http://www.bioinf.uni-freiburg.de/Software/LocARNA/ ]]></help> <expand macro="citations" /> </tool>