Package: art-nextgen-simulation-tools / 20160605+dfsg-2

fix-test-comparison.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 16 Feb 2016 15:19:22 +0100
Description: There is one single difference between the created
 sam files which is the different command line.  This patch is
 removing the diff and comparing files that should be really equal.

--- a/examples/run_test_examples_454.sh
+++ b/examples/run_test_examples_454.sh
@@ -31,6 +31,7 @@ $art_454 -a -s -B ./amplicon_reference.f
 $art_454 -a -s -r 777 ./testSeq.fa ./single_454_t1 10
 $art_454 -a -s -r 777 ./testSeq.fa ./single_454_t2 10
 # compare difference
-echo "compare difference of two simulation datasets"
-diff  single_454_t1.sam  single_454_t2.sam
+echo "compare difference of two simulation datasets after normalising known difference"
+sed 's?^\(@PG.*testSeq\.fa \./single_454_t\)2?\11?' single_454_t2.sam > single_454_t2_normalised.sam
+diff  single_454_t1.sam  single_454_t2_normalised.sam