From 598cfd0d09f252e87e08e71151404baedf2ff356 Mon Sep 17 00:00:00 2001 From: Frederic Lemoine Date: Fri, 21 Dec 2018 15:10:43 +0100 Subject: [PATCH] Modified tests --- test.sh | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 6bf85fd..efa923c 100755 --- a/test.sh +++ b/test.sh @@ -2066,6 +2066,40 @@ diff expected result diff expected.aa result.aa rm -f input expected result expected.aa result.aa +echo "->goalign phasent" +cat > input <allcodons +GCTGCCGCAGCGTTATTGCTTCTCCTACTGCGTCGCCGACGGAGAAGGAAAAAGAATAACATG +GATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACT +ACCACAACGGGTGGCGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTAGTGTAATGA +TAGC +>allcodons2 +GCTGCAGCGTTATTGCTTCTCCTACTGCGTCGCCGACGGAGAAGGAAAAAGAATAACATG +GATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACT +ACCACAACGGGTGGCGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTATAATGA +EOF +cat > expected <allcodons +ATGGATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACTACCACAACGGGTGG +CGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTAGTGTAATGATAGC +>allcodons2 +ATGGATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACTACCACAACGGGTGG +CGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTATAATGA +EOF + +cat > expected.aa <allcodons +MDDFFCCPPPPQQSSSSSSEETTTTGGGGWHHYYIIIVVVV*** +>allcodons2 +MDDFFCCPPPPQQSSSSSSEETTTTGGGGWHHYYIIIVVV** +EOF + +goalign phasent -i input --unaligned -o result --aa-output result.aa +diff expected result +diff expected.aa result.aa +rm -f input expected result expected.aa result.aa + + echo "->goalign phase reverse" cat > input <allcodons @@ -2087,6 +2121,35 @@ ATGGATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACTACCACAACGGGTGG CGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTATAATGA EOF +goalign phase -i input --unaligned -o result --reverse +diff expected result +rm -f input expected result + +echo "->goalign phasent reverse" +cat > input <allcodons +GCTATCATTACACTACGACAACTATGATAATGTAATAGTGATGCCACCCTCCGCCACCCG +TTGTGGTAGTCTCTTCGCTACTCGATGAGGAAGACTGTTGCGGTGGGGGAGGGCAACAGA +AAAAGTCATCCATGTTATTCTTTTTCCTTCTCCGTCGGCGACGCAGTAGGAGAAGCAATA +ACGCTGCGGCAGC +>allcodons2 +GCTGCAGCGTTATTGCTTCTCCTACTGCGTCGCCGACGGAGAAGGAAAAAGAATAACATG +GATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACT +ACCACAACGGGTGGCGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTATAATGA +EOF +cat > expected <allcodons +ATGGATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACTACCACAACGGGTGG +CGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTAGTGTAATGATAGC +>allcodons2 +ATGGATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACTACCACAACGGGTGG +CGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTATAATGA +EOF +goalign phasent -i input --unaligned -o result --reverse +diff expected result +rm -f input expected result + + echo "->goalign phase reverse cutends" cat > input <allcodons @@ -2108,7 +2171,6 @@ ATGGATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACTACCACAACGGGTGG CGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTA EOF - cat > expected.aa <allcodons MDDFFCCPPPPQQSSSSSSEETTTTGGGGWHHYYIIIVVVV* @@ -2121,6 +2183,39 @@ diff expected result diff expected.aa result.aa rm -f input expected result expected.aa result.aa +echo "->goalign phasent reverse cutends" +cat > input <allcodons +GCTATCATTACACTACGACAACTATGATAATGTAATAGTGATGCCACCCTCCGCCACCCG +TTGTGGTAGTCTCTTCGCTACTCGATGAGGAAGACTGTTGCGGTGGGGGAGGGCAACAGA +AAAAGTCATCCATGTTATTCTTTTTCCTTCTCCGTCGGCGACGCAGTAGGAGAAGCAATA +ACGCTGCGGCAGC +>allcodons2 +GCTGCAGCGTTATTGCTTCTCCTACTGCGTCGCCGACGGAGAAGGAAAAAGAATAACATG +GATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACT +ACCACAACGGGTGGCGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTATAATGA +EOF +cat > expected <allcodons +ATGGATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACTACCACAACGGGTGG +CGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTAGTGTAA +>allcodons2 +ATGGATGACTTTTTCTGTTGCCCTCCCCCACCGCAACAGTCTTCCTCATCGAGTAGCGAAGAGACTACCACAACGGGTGG +CGGAGGGTGGCATCACTATTACATTATCATAGTTGTCGTATAA +EOF + +cat > expected.aa <allcodons +MDDFFCCPPPPQQSSSSSSEETTTTGGGGWHHYYIIIVVVV* +>allcodons2 +MDDFFCCPPPPQQSSSSSSEETTTTGGGGWHHYYIIIVVV* +EOF + +goalign phasent -i input --unaligned -o result --aa-output result.aa --reverse --cut-end +diff expected result +diff expected.aa result.aa +rm -f input expected result expected.aa result.aa + echo "->goalign sw (smith & waterman)" cat > input <