Skip to content

Commit

Permalink
Update for bl_sam_init() API change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason W. Bacon committed Apr 5, 2022
1 parent 795f607 commit 16ae5d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ CPP ?= cpp
AR ?= ar
RANLIB ?= ranlib

INCLUDES += -isystem ${LOCALBASE}/include -I/usr/local/include
INCLUDES += -isystem ${PREFIX}/include -isystem ${LOCALBASE}/include
CFLAGS += ${INCLUDES}
CXXFLAGS += ${INCLUDES}
FFLAGS += ${INCLUDES}
Expand Down
10 changes: 5 additions & 5 deletions ad2vcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ int ad2vcf(const char *argv[], FILE *sam_stream)
#ifdef DEBUG
static bl_sam_t sam_alignment = BL_SAM_ALIGNMENT_INIT;
if ( sam_alignment.seq == NULL )
bl_sam_init(&sam_alignment, BL_SAM_SEQ_MAX_CHARS, REQUIRED_SAM_FIELDS);
bl_sam_init(&sam_alignment);

// Debug discarded count
puts("Gathering stats on trailing alignments...");
Expand Down Expand Up @@ -332,10 +332,10 @@ int skip_upstream_alignments(bl_vcf_t *vcf_call, FILE *sam_stream,
size_t c;
bool ma = true;
// static so sam_alignment_read() won't keep reallocating seq
static bl_sam_t sam_alignment = BL_SAM_ALIGNMENT_INIT;
static bl_sam_t sam_alignment = BL_SAM_INIT;

if ( sam_alignment.seq == NULL )
bl_sam_init(&sam_alignment, BL_SAM_SEQ_MAX_CHARS, REQUIRED_SAM_FIELDS);
bl_sam_init(&sam_alignment);

/*
* Check and discard already buffered alignments upstream of the given
Expand Down Expand Up @@ -424,10 +424,10 @@ int allelic_depth(bl_vcf_t *vcf_call, FILE *sam_stream,
size_t c;
bool ma = true, overlapping = true;
// static so sam_alignment_read() won't keep reallocating seq
static bl_sam_t sam_alignment = BL_SAM_ALIGNMENT_INIT;
static bl_sam_t sam_alignment = BL_SAM_INIT;

if ( sam_alignment.seq == NULL )
bl_sam_init(&sam_alignment, BL_SAM_SEQ_MAX_CHARS, REQUIRED_SAM_FIELDS);
bl_sam_init(&sam_alignment);

/* Check and discard already buffered alignments */
for (c = 0; (c < BL_SAM_BUFF_BUFFERED_COUNT(sam_buff)) &&
Expand Down

0 comments on commit 16ae5d5

Please sign in to comment.