1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
Author: Tim Booth <tbooth@ceh.ac.uk>
Origin: Specific to package
Bug: None
Last-Update: 2011-04-28
The upstream software is built so as to run from the build environment and look for
data in ../Data. In Debian the binaries belong in /usr/bin and the data belongs
in /usr/share. With this patch the binaries will run from any directory.
A better fix would be to allow setting of the Data directory via an environment variable
or a variable passed to MAKE at build time. This could be contributed back to upstream.
--- a/SeqNoise/SeqNoise.h
+++ b/SeqNoise/SeqNoise.h
@@ -113,7 +113,7 @@ typedef struct s_Master
/********DEFAULTS***********/
#define DEF_SIGMA 30.0
#define DEF_CUT 0.08
-#define LOOKUP_FILE "../Data/Tran.dat"
+#define LOOKUP_FILE "/usr/share/ampliconnoise/Data/Tran.dat"
/***************************/
/******Programming Constants************/
--- a/SeqDist/SeqDist.h
+++ b/SeqDist/SeqDist.h
@@ -71,7 +71,7 @@ typedef struct s_Data
/* User defined structures */
-#define LOOKUP_FILE "../Data/Tran.dat"
+#define LOOKUP_FILE "/usr/share/ampliconnoise/Data/Tran.dat"
typedef struct s_Align
--- a/PyroNoiseM/PyroNoiseM.h
+++ b/PyroNoiseM/PyroNoiseM.h
@@ -36,7 +36,7 @@
#define OVERCALL_THRESH 6.0 /*?*/
-#define LOOKUP_FILE "../Data/LookUp_E123.dat"
+#define LOOKUP_FILE "/usr/share/ampliconnoise/Data/LookUp_E123.dat"
#define OUT_FILE_STUB "-out"
#define INIT_FILE "-lin"
--- a/PyroNoise/PyroNoise.h
+++ b/PyroNoise/PyroNoise.h
@@ -37,7 +37,7 @@
#define OVERCALL_THRESH 6.0 /*?*/
-#define LOOKUP_FILE "../Data/LookUp_E123.dat"
+#define LOOKUP_FILE "/usr/share/ampliconnoise/Data/LookUp_E123.dat"
#define OUT_FILE_STUB "-out"
#define INIT_FILE "-lin"
--- a/Perseus/Perseus.h
+++ b/Perseus/Perseus.h
@@ -90,7 +90,7 @@ typedef struct s_Data
#define WEIGHTDELIM '_'
#define N_BASES 4
-#define LOOKUP_FILE "../Data/Tran.dat"
+#define LOOKUP_FILE "/usr/share/ampliconnoise/Data/Tran.dat"
#ifndef min
#define min(x, y) ((x) < (y) ? (x) : (y))
--- a/PyroDist/PyroDist.h
+++ b/PyroDist/PyroDist.h
@@ -34,7 +34,7 @@
#define LEFT 1
#define UP 2
-#define LOOKUP_FILE "../Data/LookUp_E123.dat"
+#define LOOKUP_FILE "/usr/share/ampliconnoise/Data/LookUp_E123.dat"
#define MAX_PACKET_SIZE 1048576
#define BINS 1000
|