Browse code

Compatibility with Rhtslib 1.99.1

Daniel C. Jones authored on 03/10/2022 16:36:34
Showing 7 changed files

... ...
@@ -7,11 +7,11 @@ Description: This package implements a model of per-position sequencing
7 7
         bias in high-throughput sequencing data using a simple Bayesian
8 8
         network, the structure and parameters of which are trained on a
9 9
         set of aligned reads and a reference genome sequence.
10
-Author: Daniel Jones <dcjones@cs.washington.edu>
11
-Maintainer: Daniel Jones <dcjones@cs.washington.edu>
10
+Author: Daniel Jones <djones3@fredhutch.org>
11
+Maintainer: Daniel Jones <djones3@fredhutch.org>
12 12
 Depends: R (>= 3.0.2), GenomicRanges (>= 0.1.0), Biostrings (>=
13 13
         2.15.0), methods
14
-LinkingTo: Rhtslib (>= 1.15.3)
14
+LinkingTo: Rhtslib (>= 1.99.1), zlibbioc
15 15
 SystemRequirements: GNU make
16 16
 Suggests: Rsamtools, ggplot2
17 17
 LazyLoad: yes
... ...
@@ -12,6 +12,9 @@ RHTSLIB_CPPFLAGS=$(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e \
12 12
 PKG_LIBS=$(RHTSLIB_LIBS)
13 13
 PKG_CPPFLAGS=$(RHTSLIB_CPPFLAGS)
14 14
 
15
+$(info $$SEQBIAS_OBJ is [${SEQBIAS_OBJ}])
16
+$(info $$YAML_CPP_OBJ is [${YAML_CPP_OBJ}])
17
+
15 18
 OBJECTS = $(SEQBIAS_OBJ) $(YAML_CPP_OBJ:%=yaml-cpp/%)
16 19
 
17 20
 all : $(SHLIB)
... ...
@@ -5,12 +5,7 @@ YAML_CPP_OBJ = aliasmanager.o conversion.o directives.o \
5 5
                regex.o scanner.o scanscalar.o scantag.o scantoken.o \
6 6
                simplekey.o singledocparser.o stream.o tag.o
7 7
 
8
-
9
-
10
-SEQBIAS_OBJ = sam.o \
11
-              bam_plbuf.o \
12
-              bam_aux.o \
13
-              common.o \
8
+SEQBIAS_OBJ = common.o \
14 9
               miscmath.o \
15 10
               pos_table.o \
16 11
               kmer_matrix.o \
... ...
@@ -1,6 +1,7 @@
1 1
 
2 2
 #include "pos_table.h"
3 3
 #include "logger.h"
4
+#include <samtools-1.7-compat.h>
4 5
 
5 6
 
6 7
 
... ...
@@ -24,7 +24,7 @@ extern "C" {
24 24
 #include <stdint.h>
25 25
 #include <stdlib.h>
26 26
 #include <stdbool.h>
27
-#include "sam.h"
27
+#include <htslib/sam.h>
28 28
 
29 29
 
30 30
 /* The table maps positions to counts. */
... ...
@@ -10,8 +10,8 @@
10 10
 
11 11
 extern "C" {
12 12
 
13
-#include "htslib/faidx.h"
14
-#include "sam.h"
13
+#include <htslib/faidx.h>
14
+#include <samtools-1.7-compat.h>
15 15
 
16 16
 
17 17
 #ifdef ERROR
... ...
@@ -16,6 +16,7 @@
16 16
 #include <ctime>
17 17
 #include <fstream>
18 18
 #include <algorithm>
19
+#include <samtools-1.7-compat.h>
19 20
 
20 21
 using namespace std;
21 22