From 8d721ab5f7a6d9f8de388dc9720eb6a430ea10bf Mon Sep 17 00:00:00 2001 From: martinahansen Date: Tue, 10 Apr 2012 19:03:10 +0000 Subject: [PATCH] upgraded tests for read_fastq git-svn-id: http://biopieces.googlecode.com/svn/trunk@1786 74ccb610-7750-0410-82ae-013aeee3265d --- bp_test/in/read_fastq.in.1 | 8 ++++++++ bp_test/in/read_fastq.in.2 | 12 ++++++++++++ bp_test/in/read_fastq.in.2.gz | Bin 0 -> 115 bytes bp_test/out/read_fastq.out.1 | 13 ++++--------- bp_test/out/read_fastq.out.2 | 14 ++++++++++++-- bp_test/out/read_fastq.out.3 | 8 ++++---- bp_test/test/test_read_fastq | 10 +++++----- 7 files changed, 45 insertions(+), 20 deletions(-) create mode 100644 bp_test/in/read_fastq.in.1 create mode 100644 bp_test/in/read_fastq.in.2 create mode 100644 bp_test/in/read_fastq.in.2.gz diff --git a/bp_test/in/read_fastq.in.1 b/bp_test/in/read_fastq.in.1 new file mode 100644 index 0000000..c070506 --- /dev/null +++ b/bp_test/in/read_fastq.in.1 @@ -0,0 +1,8 @@ +@sanger +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ++ +!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHI +@illumina1.8 +eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ++ +!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJ diff --git a/bp_test/in/read_fastq.in.2 b/bp_test/in/read_fastq.in.2 new file mode 100644 index 0000000..99cfaa0 --- /dev/null +++ b/bp_test/in/read_fastq.in.2 @@ -0,0 +1,12 @@ +@solexa +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ++ +;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh +@illumina1.3 +ccccccccccccccccccccccccccccccccccccccccc ++ +@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh +@illumina1.5 +ddddddddddddddddddddddddddddddddddddddd ++ +BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh diff --git a/bp_test/in/read_fastq.in.2.gz b/bp_test/in/read_fastq.in.2.gz new file mode 100644 index 0000000000000000000000000000000000000000..77cce5eb73da34c6e6b6a0ed79017c6a37d51d4f GIT binary patch literal 115 zcmV-(0F3`1iwFp1f`m^119W+G0COnL&q=LFKSt-6AOU$kY$A_ VR|;_eXaTXt0|0CwVniwd003EgFZKWc literal 0 HcmV?d00001 diff --git a/bp_test/out/read_fastq.out.1 b/bp_test/out/read_fastq.out.1 index 4944eb4..0d70eb8 100644 --- a/bp_test/out/read_fastq.out.1 +++ b/bp_test/out/read_fastq.out.1 @@ -3,13 +3,8 @@ SEQ: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa SEQ_LEN: 41 SCORES: @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh --- -SEQ_NAME: solexa -SEQ: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -SEQ_LEN: 46 -SCORES: ;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh ---- -SEQ_NAME: illumina1.3 -SEQ: ccccccccccccccccccccccccccccccccccccccccc -SEQ_LEN: 41 -SCORES: @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh +SEQ_NAME: illumina1.8 +SEQ: eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +SEQ_LEN: 42 +SCORES: @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi --- diff --git a/bp_test/out/read_fastq.out.2 b/bp_test/out/read_fastq.out.2 index 11fa8ee..a8451fb 100644 --- a/bp_test/out/read_fastq.out.2 +++ b/bp_test/out/read_fastq.out.2 @@ -1,5 +1,15 @@ -SEQ_NAME: sanger -SEQ: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +SEQ_NAME: solexa +SEQ: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb +SEQ_LEN: 46 +SCORES: ;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh +--- +SEQ_NAME: illumina1.3 +SEQ: ccccccccccccccccccccccccccccccccccccccccc SEQ_LEN: 41 SCORES: @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh --- +SEQ_NAME: illumina1.5 +SEQ: ddddddddddddddddddddddddddddddddddddddd +SEQ_LEN: 39 +SCORES: BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh +--- diff --git a/bp_test/out/read_fastq.out.3 b/bp_test/out/read_fastq.out.3 index ae6f2a8..923c528 100644 --- a/bp_test/out/read_fastq.out.3 +++ b/bp_test/out/read_fastq.out.3 @@ -1,5 +1,5 @@ -SEQ_NAME: sanger -SEQ: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -SEQ_LEN: 41 -SCORES: CCDDEFFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh +SEQ_NAME: solexa +SEQ: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb +SEQ_LEN: 46 +SCORES: ;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh --- diff --git a/bp_test/test/test_read_fastq b/bp_test/test/test_read_fastq index 0e3f3df..6c59764 100755 --- a/bp_test/test/test_read_fastq +++ b/bp_test/test/test_read_fastq @@ -2,18 +2,18 @@ source "$BP_DIR/bp_test/lib/test.sh" -run "$bp -i $in -O $tmp" +run "$bp -i $in.1 -O $tmp" assert_no_diff $tmp $out.1 clean -run "$bp -i $in.gz -O $tmp" -assert_no_diff $tmp $out.1 +run "$bp -i $in.2 -O $tmp" +assert_no_diff $tmp $out.2 clean -run "$bp -i $in -n 1 -O $tmp" +run "$bp -i $in.2.gz -O $tmp" assert_no_diff $tmp $out.2 clean -run "$bp -i $in -n 1 -s -O $tmp" +run "$bp -i $in.2 -n 1 -O $tmp" assert_no_diff $tmp $out.3 clean -- 2.39.5