Source code

Download source archive ↓

upstream-extended/iuc/tools/seqtk/seqtk_mergepe.xml

1<?xml version="1.0"?>
2<tool id="seqtk_mergepe" name="seqtk_mergepe" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
3    <description>interleave two unpaired FASTA/Q files for a paired-end file</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 mergepe
12'$in_fq1'
13'$in_fq2'
14 #echo "| pigz -p ${GALAXY_SLOTS:-1} --no-name --no-time" if $in_fq1.is_of_type('fasta.gz', 'fastq.gz') else "" # > '$default'
15    ]]></command>
16    <inputs>
17        <param name="in_fq1" type="data" format="fasta,fastq,fasta.gz,fastq.gz" label="Input FASTA/Q file #1"/>
18        <param name="in_fq2" type="data" format="fasta,fastq,fasta.gz,fastq.gz" label="Input FASTA/Q file #2"/>
19    </inputs>
20    <outputs>
21        <data name="default" format_source="in_fq1" label="${tool.name} on ${on_string}: interleaved paired-end"/>
22    </outputs>
23    <tests>
24        <test>
25            <param name="in_fq1" value="paired_dat1.fq" ftype="fastqsanger"/>
26            <param name="in_fq2" value="paired_dat2.fq" ftype="fastqsanger"/>
27            <output name="default" file="paired_dat.fq" ftype="fastqsanger"/>
28        </test>
29        <test>
30            <param name="in_fq1" value="paired_dat1.fq.gz" ftype="fastqsanger.gz"/>
31            <param name="in_fq2" value="paired_dat2.fq.gz" ftype="fastqsanger.gz"/>
32            <output name="default" file="paired_dat.fq.gz" ftype="fastqsanger.gz"/>
33        </test>
34    </tests>
35    <help><![CDATA[
36**What it does**
37
38Merge two files which constitute a paired-end file into a single, interleaved, paired-end FASTA/Q file
39
40::
41
42    # r1.fq
43    @test-6/1
44    AGCTTGACGC
45    +
46    ?.HCF@C>>F
47
48    # r2.fq
49    @test-6/2
50    TGCGAAGACC
51    +
52    >2?A?A@@7?
53
54will produce the following paired file:
55
56::
57
58    @test-6/1
59    AGCTTGACGC
60    +
61    ?.HCF@C>>F
62    @test-6/2
63    TGCGAAGACC
64    +
65    >2?A?A@@7?
66
67While this may not have been an illuminating example, it is important to note
68that this tool will properly interleave data. For example if you have the ids:
69
70::
71
72    @r-1/1
73    @r-2/1
74    @r-3/1
75    @r-4/1
76
77and
78
79::
80
81    @r-1/2
82    @r-2/2
83    @r-3/2
84    @r-4/2
85
86These will be interleaved as
87
88::
89
90    @r-1/1
91    @r-1/2
92    @r-2/1
93    @r-2/2
94    @r-3/1
95    @r-3/2
96    @r-4/1
97    @r-4/2
98
99@ATTRIBUTION@
100    ]]></help>
101    <expand macro="citation" />
102</tool>