From 4e2e95fd7d84be1b95d509a748340667b83ce207 Mon Sep 17 00:00:00 2001 From: grenaud Date: Thu, 3 Dec 2020 15:16:43 +0100 Subject: [PATCH] changed name of utils.h to libgab.h --- Makefile | 8 ++--- PutProgramInHeader.h | 2 +- PutProgramInHeaderHTS.h | 2 +- libgab.cpp | 3 ++ utils.h => libgab.h | 74 ++++++++++++++++++++--------------------- targetTest.cpp | 2 +- testRecons.cpp | 2 +- testUtils.cpp | 2 +- utils.cpp | 3 -- 9 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 libgab.cpp rename utils.h => libgab.h (94%) delete mode 100644 utils.cpp diff --git a/Makefile b/Makefile index 9f82232..37fb9b3 100644 --- a/Makefile +++ b/Makefile @@ -47,8 +47,8 @@ samtools_target = $(SAMTOOLS)-$(wildcard $(SAMTOOLS)) samtools_present = $(SAMTOOLS)-$(SAMTOOLS) samtools_absent = $(SAMTOOLS)- -all: | $(bamtools_target) $(samtools_target) utils.o testUtils targetTest PutProgramInHeaderHTS.o gzstream/gzstream.o FastQObj.o FastQParser.o libgab.a -# all: utils.o testUtils ReconsReferenceBAM.o PutProgramInHeader.o PutProgramInHeaderHTS.o gzstream/gzstream.o FastQObj.o FastQParser.o testRecons testRecons.o +all: | $(bamtools_target) $(samtools_target) libgab.o testUtils targetTest PutProgramInHeaderHTS.o gzstream/gzstream.o FastQObj.o FastQParser.o libgab.a +# all: libgab.o testUtils ReconsReferenceBAM.o PutProgramInHeader.o PutProgramInHeaderHTS.o gzstream/gzstream.o FastQObj.o FastQParser.o testRecons testRecons.o $(bamtools_present): @@ -88,8 +88,8 @@ targetTest: targetTest.o libgab.a gzstream/libgzstream.a testRecons: testRecons.o libgab.a ${BAMTOOLSLIBOBJ} ReconsReferenceBAM.o gzstream/libgzstream.a ${CXX} $(LDFLAGS) -o $@ $^ $(LDLIBS) -libgab.a: utils.o - ar cr libgab.a utils.o +libgab.a: libgab.o + ar cr libgab.a libgab.o test: all ./test.sh diff --git a/PutProgramInHeader.h b/PutProgramInHeader.h index b2ce915..02cc653 100644 --- a/PutProgramInHeader.h +++ b/PutProgramInHeader.h @@ -19,7 +19,7 @@ #include #include -#include "utils.h" +#include "libgab.h" using namespace std; using namespace BamTools; diff --git a/PutProgramInHeaderHTS.h b/PutProgramInHeaderHTS.h index 9eee847..35b8bf8 100644 --- a/PutProgramInHeaderHTS.h +++ b/PutProgramInHeaderHTS.h @@ -13,7 +13,7 @@ /* #include */ -#include "utils.h" +#include "libgab.h" using namespace std; diff --git a/libgab.cpp b/libgab.cpp new file mode 100644 index 0000000..4bbc3d0 --- /dev/null +++ b/libgab.cpp @@ -0,0 +1,3 @@ +#include "libgab.h" + + diff --git a/utils.h b/libgab.h similarity index 94% rename from utils.h rename to libgab.h index 375b2a5..04a12d8 100644 --- a/utils.h +++ b/libgab.h @@ -1,5 +1,5 @@ -#ifndef utils_h -#define utils_h +#ifndef libgab_h +#define libgab_h #include @@ -120,7 +120,7 @@ inline int base2int(const char c){ return 3; if(_c == 'T') return 4; - cerr<<"utils.h base2int() Invalid base "< toReturn; *\/ */ @@ -613,7 +613,7 @@ T destringify( const string& s ){ istringstream i(s); T x; if (!(i >> x)){ - cerr<<"Utils.cpp: destringify() Unable to convert string=\""<& x, const vector& y){ if(x.size() == 0){ - cerr<<"Utils.h correlation() ERROR: the size of x is zero"< vectorDist(const vector & toEvaluate){ m2=toEvaluate[0]; m1=toEvaluate[1]; if(m2>m1){ - cerr<<"utils.h vectorDist() vector is unsorted"< vectorDist(const vector & toEvaluate){ for(unsigned int i=2;im){ - cerr<<"utils.h vectorDist() vector is unsorted"< #include -#include "utils.h" +#include "libgab.h" using namespace std; int randIn(int n){ diff --git a/testRecons.cpp b/testRecons.cpp index a7c5533..f2a2d0a 100644 --- a/testRecons.cpp +++ b/testRecons.cpp @@ -15,7 +15,7 @@ #include "api/BamAux.h" #include "ReconsReferenceBAM.h" -#include "utils.h" +#include "libgab.h" using namespace std; diff --git a/testUtils.cpp b/testUtils.cpp index 0295295..da9a6cf 100644 --- a/testUtils.cpp +++ b/testUtils.cpp @@ -9,7 +9,7 @@ #include #include -#include "utils.h" +#include "libgab.h" using namespace std; int randIn(int n){ diff --git a/utils.cpp b/utils.cpp deleted file mode 100644 index 67cfb5a..0000000 --- a/utils.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#include "utils.h" - -