]> git.donarmstrong.com Git - biopieces.git/commitdiff
added tests for translate_seq
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 24 Nov 2010 15:11:08 +0000 (15:11 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 24 Nov 2010 15:11:08 +0000 (15:11 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1169 74ccb610-7750-0410-82ae-013aeee3265d

bp_test/in/translate_seq.in [new file with mode: 0644]
bp_test/out/translate_seq.out.1 [new file with mode: 0644]
bp_test/out/translate_seq.out.2 [new file with mode: 0644]
bp_test/test/test_translate_seq [new file with mode: 0755]

diff --git a/bp_test/in/translate_seq.in b/bp_test/in/translate_seq.in
new file mode 100644 (file)
index 0000000..6fd765e
--- /dev/null
@@ -0,0 +1,3 @@
+SEQ_NAME: test1
+SEQ: ATGCACATTCGACTAGCATCGACGACGCGAGCGACGACGACGATGCGACTAGCTTA
+---
diff --git a/bp_test/out/translate_seq.out.1 b/bp_test/out/translate_seq.out.1
new file mode 100644 (file)
index 0000000..202a91b
--- /dev/null
@@ -0,0 +1,30 @@
+SEQ: MHIRLASTTRATTTMRLA
+SEQ_LEN: 18
+SEQ_NAME: test1
+FRAME: 1
+---
+SEQ: CTFD*HRRRERRRRCD*L
+SEQ_LEN: 18
+SEQ_NAME: test1
+FRAME: 2
+---
+SEQ: AHSTSIDDASDDDDATSL
+SEQ_LEN: 18
+SEQ_NAME: test1
+FRAME: 3
+---
+SEQ: *ASRIVVVARVVDASRMC
+SEQ_LEN: 18
+SEQ_NAME: test1
+FRAME: -1
+---
+SEQ: KLVASSSSLASSMLVECA
+SEQ_LEN: 18
+SEQ_NAME: test1
+FRAME: -2
+---
+SEQ: S*SHRRRRSRRRC*SNVH
+SEQ_LEN: 18
+SEQ_NAME: test1
+FRAME: -3
+---
diff --git a/bp_test/out/translate_seq.out.2 b/bp_test/out/translate_seq.out.2
new file mode 100644 (file)
index 0000000..3950fa2
--- /dev/null
@@ -0,0 +1,10 @@
+SEQ: MHIRLASTTRATTTMRLA
+SEQ_LEN: 18
+SEQ_NAME: test1
+FRAME: 1
+---
+SEQ: *ASRIVVVARVVDASRMC
+SEQ_LEN: 18
+SEQ_NAME: test1
+FRAME: -1
+---
diff --git a/bp_test/test/test_translate_seq b/bp_test/test/test_translate_seq
new file mode 100755 (executable)
index 0000000..9ca6069
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+source "$BP_DIR/bp_test/lib/test.sh"
+
+run "$bp -I $in -O $tmp"
+assert_no_diff $tmp $out.1
+clean
+
+run "$bp -I $in -f '1,-1' -O $tmp"
+assert_no_diff $tmp $out.2
+clean