From 5ed637b233920f37ebbd5dba17ebb1590c7f1813 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 12 Oct 2011 19:26:51 +0000 Subject: [PATCH] adding tests for write_fastq_files git-svn-id: http://biopieces.googlecode.com/svn/trunk@1556 74ccb610-7750-0410-82ae-013aeee3265d --- bp_test/in/write_fastq_files.in | 19 +++++++++++++++++++ .../ILLUMINA-52179E.fastq | 4 ++++ .../write_fastq_files.out.1/ILLUMINA.fastq | 8 ++++++++ bp_test/test/test_write_fastq_files | 11 +++++++++++ 4 files changed, 42 insertions(+) create mode 100644 bp_test/in/write_fastq_files.in create mode 100644 bp_test/out/write_fastq_files.out.1/ILLUMINA-52179E.fastq create mode 100644 bp_test/out/write_fastq_files.out.1/ILLUMINA.fastq create mode 100755 bp_test/test/test_write_fastq_files diff --git a/bp_test/in/write_fastq_files.in b/bp_test/in/write_fastq_files.in new file mode 100644 index 0000000..af87078 --- /dev/null +++ b/bp_test/in/write_fastq_files.in @@ -0,0 +1,19 @@ +SEQ: TTCGGCATCGGCGGCGACGTTGGCGGCGGGGCCGGGCGGGTCGANNNCAT +SEQ_LEN: 50 +SCORES: ffeaffd`ce`eecccKLT`bT^]bYHV^BBBBBBBBBBBBBBBBBBBBB +--- +SEQ_NAME: ILLUMINA +SEQ: CATGGCGTATGCCAGACGGCCAGAACGATGGCCGCCGGGCTTCANNNAAG +SEQ_LEN: 50 +SCORES: eeeecac^dddddddeffe`f`fdece\aefeeffcccc\`a``BBBBBB +--- +SEQ_NAME: ILLUMINA +SEQ: CGGTACTGATCGAGTGTCAGGCTGTTGATCGCCGCGGGCGGGGGTNNGAC +SEQ_LEN: 50 +SCORES: db`dadddddeeeeedeeeeccdddfffffcdaddbac`d_BBBBBBBBB +--- +SEQ_NAME: ILLUMINA-52179E +SEQ: CTGATGCATGAAGATAGTCGGATGCACAATATACACGGCTAACGCNNAGG +SEQ_LEN: 50 +SCORES: ffffcfffffded^eddddddbdcdeedcefecfefdffecabccBB`b` +--- diff --git a/bp_test/out/write_fastq_files.out.1/ILLUMINA-52179E.fastq b/bp_test/out/write_fastq_files.out.1/ILLUMINA-52179E.fastq new file mode 100644 index 0000000..6b11b1f --- /dev/null +++ b/bp_test/out/write_fastq_files.out.1/ILLUMINA-52179E.fastq @@ -0,0 +1,4 @@ +@ILLUMINA-52179E +CTGATGCATGAAGATAGTCGGATGCACAATATACACGGCTAACGCNNAGG ++ +ffffcfffffded^eddddddbdcdeedcefecfefdffecabccBB`b` diff --git a/bp_test/out/write_fastq_files.out.1/ILLUMINA.fastq b/bp_test/out/write_fastq_files.out.1/ILLUMINA.fastq new file mode 100644 index 0000000..ed900a7 --- /dev/null +++ b/bp_test/out/write_fastq_files.out.1/ILLUMINA.fastq @@ -0,0 +1,8 @@ +@ILLUMINA +CATGGCGTATGCCAGACGGCCAGAACGATGGCCGCCGGGCTTCANNNAAG ++ +eeeecac^dddddddeffe`f`fdece\aefeeffcccc\`a``BBBBBB +@ILLUMINA +CGGTACTGATCGAGTGTCAGGCTGTTGATCGCCGCGGGCGGGGGTNNGAC ++ +db`dadddddeeeeedeeeeccdddfffffcdaddbac`d_BBBBBBBBB diff --git a/bp_test/test/test_write_fastq_files b/bp_test/test/test_write_fastq_files new file mode 100755 index 0000000..2168c26 --- /dev/null +++ b/bp_test/test/test_write_fastq_files @@ -0,0 +1,11 @@ +#!/bin/bash + +source "$BP_DIR/bp_test/lib/test.sh" + +mkdir $tmp_dir + +run "$bp -I $in -d $tmp_dir -k SEQ_NAME -x" +assert_no_diff_dir $tmp_dir $out.1 +clean + +rm -rf $tmp_dir -- 2.39.5