annotate resync.xml @ 1:b0ab279b5add default tip

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