0
|
1 <tool id="resync" name="resync: Paired-end resynchronization" version="1.0">
|
|
2 <description>Resynchronize a pair of paired-end fastq files</description>
|
|
3 <command interpreter="perl">
|
|
4 resync.pl $input1 $input2 $output1 $output2
|
|
5 </command>
|
|
6 <inputs>
|
|
7 <param name="input1" type="data" format="fastq" label="Input 1"/>
|
|
8 <param name="input2" type="data" format="fastq" label="Input 2"/>
|
|
9 </inputs>
|
|
10 <stdio>
|
|
11 <exit_code range="1:" level="fatal" description="Bad input dataset" />
|
|
12 </stdio>
|
|
13 <outputs>
|
|
14 <data format_source="input1" name="output1" label="resync ${input1.name}"/>
|
|
15 <data format_source="input2" name="output2" label="resync ${input2.name}"/>
|
|
16 </outputs>
|
|
17 <tests>
|
|
18 <test>
|
1
|
19 <param name="input1" ftype="fastq" value="reads1.fastqsanger" />
|
|
20 <param name="input2" ftype="fastq" value="reads2.fastqsanger" />
|
|
21 <!-- synchronized files should remain unchanged -->
|
|
22 <output name="output1" file="reads1.fastqsanger" />
|
|
23 <output name="output2" file="reads2.fastqsanger" />
|
|
24 </test>
|
|
25 <test>
|
|
26 <param name="input1" ftype="fastq" value="reads1.fastqsanger" />
|
|
27 <param name="input2" ftype="fastq" value="reads_unsync_2.fastqsanger" />
|
|
28 <output name="output1">
|
|
29 <!-- unsynchronized files should remove unpaired read -->
|
|
30 <assert_contents>
|
|
31 <has_text text="@HWUSI-EAS1737:7:1:4411:1170#CAGATC/1" />
|
|
32 <not_has_text text="@HWUSI-EAS1737:7:1:16187:1196#CAGATC/1" />
|
|
33 </assert_contents>
|
|
34 </output>
|
|
35 <output name="output2">
|
|
36 <!-- unsynchronized files should remove unpaired read -->
|
|
37 <assert_contents>
|
|
38 <has_text text="@HWUSI-EAS1737:7:1:4411:1170#CAGATC/2" />
|
|
39 <not_has_text text="@HWUSI-EAS1737:7:1:16187:1196#CAGATC/2" />
|
|
40 </assert_contents>
|
|
41 </output>
|
0
|
42 </test>
|
|
43 </tests>
|
|
44 <help>
|
|
45 Resynchronize a pair of paired-end fastq files.
|
|
46
|
|
47 Reads in two potentially unsynchronized fastq files and writes out two synchronized fastq files.
|
|
48
|
|
49 This script can handle Casava 1.8.0 style read IDs, and pre 1.8.0 style ids.
|
|
50 Other types of read ID formats may cause a terminal error.
|
|
51
|
|
52 The synchronized files have properly paired reads, with singelton reads removed.
|
|
53
|
|
54 </help>
|
|
55 </tool>
|