upstream-extended/iuc/tools/seqtk/seqtk_mergefa.xml
1<?xml version="1.0"?>
2<tool id="seqtk_mergefa" name="seqtk_mergefa" version="@TOOL_VERSION@+galaxy1" profile="22.05">
3 <description>Merge two FASTA/Q files into a FASTA file output</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="bio_tools"/>
8 <expand macro="requirements"/>
9 <expand macro="stdio"/>
10 <command><![CDATA[
11seqtk mergefa
12-q $q
13$i
14$m
15$r
16$h
17'$in_fa1'
18'$in_fa2'
19#echo "| pigz -p ${GALAXY_SLOTS:-1} --no-name --no-time" if $in_fa1.is_of_type('fasta.gz', 'fastq.gz') else "" # > '$default'
20 ]]></command>
21 <configfiles>
22 <configfile filename="outputs.json">
23#set $ext = None
24#if $in_fa1.is_of_type('fasta.gz', 'fastq.gz')
25 #set $ext = "fasta.gz"
26#else
27 #set $ext = "fasta"
28#end if
29{"default": {"ext": "$ext"}}
30 </configfile>
31 </configfiles>
32 <inputs>
33 <param name="in_fa1" type="data" format="fasta,fastq,fasta.gz,fastq.gz" label="Input FASTA/Q file #1"/>
34 <param name="in_fa2" type="data" format="fasta,fastq,fasta.gz,fastq.gz" label="Input FASTA/Q file #2"/>
35 <param argument="-q" type="integer" value="0" label="Quality threshold (for FASTQ)"/>
36 <param argument="-i" type="boolean" truevalue="-i" falsevalue="" checked="false" label="Take intersection" />
37 <param argument="-m" type="boolean" truevalue="-m" falsevalue="" checked="false" label="Pick least ambiguous, mask conflicts and uncertainties" help="Tries to pick the least ambiguous symbol from the two inputs, but masks contradictory bases in the inputs as x in the merged result and converts the merged base to lowercase where one of the input bases is an N." />
38 <param argument="-r" type="boolean" truevalue="-r" falsevalue="" checked="false" label="Pick a random allele from het" />
39 <param argument="-h" type="boolean" truevalue="-h" falsevalue="" checked="false" label="Suppress hets in the input" />
40 </inputs>
41 <outputs provided_metadata_file="outputs.json">
42 <data name="default" format="auto" label="${tool.name} on ${on_string}" />
43 </outputs>
44 <tests>
45 <test>
46 <param name="in_fa1" value="seqtk_mergefa1.fa"/>
47 <param name="in_fa2" value="seqtk_mergefa2.fa"/>
48 <output name="default" file="seqtk_mergefa.out" ftype="fasta"/>
49 </test>
50 <test>
51 <param name="in_fa1" value="seqtk_mergefa1.fa"/>
52 <param name="in_fa2" value="seqtk_mergefa2.fa"/>
53 <param name="m" value="True" />
54 <output name="default" file="seqtk_mergefa2.out" ftype="fasta"/>
55 </test>
56 <test>
57 <param name="in_fa1" value="seqtk_mergefa1.fa.gz" ftype="fasta.gz"/>
58 <param name="in_fa2" value="seqtk_mergefa2.fa.gz" ftype="fasta.gz"/>
59 <param name="m" value="True" />
60 <output name="default" file="seqtk_mergefa2.out.gz" ftype="fasta.gz"/>
61 </test>
62 </tests>
63 <help><![CDATA[
64**What it does**
65
66This tool merges two FASTA or FASTQ files into a single FASTA file using IUPAC ambiguity codes where appropriate.
67When differences occur between the sequences, ambiguity codes are used to represent possible variations.
68
69Example::
70
71 >seq1
72 ACTGACTGAAA
73
74 >seq2
75 ACTGAMTGCGN
76
77will result in::
78
79 >seq1
80 ACTGAMTGMRN
81
82If the `-m` option is in use, however, the tool will pick the least ambiguous base if there is no contradiction between the symbols in the inputs. Conflicts are indicated by using x in the merged sequence and the picked base is converted to lowercase if the less specific symbol is an N to express uncertainty.
83With this logic the input sequences above will result in the merge result::
84
85 >seq1
86 ACTGACTGxxa
87
88@ATTRIBUTION@
89 ]]></help>
90 <expand macro="citation" />
91</tool>