Skip to content

Commit

Permalink
fix snp beg/end flank for longer reads
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorrison committed May 2, 2024
1 parent 93313ea commit 12dce78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/epiread.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ static void *process_func(void *data) {
rec.tid = w.tid;
char *chrm = header->target_name[w.tid];

uint32_t snp_beg = w.beg>1000 ? w.beg-1000 : 1; // start location of snps
uint32_t snp_end = w.end+1000;
uint32_t snp_beg = w.beg > flank ? w.beg-flank : 1; // start location of snps
uint32_t snp_end = w.end+flank;

// Make snp lookup table (if supplied)
uint8_t *snps = NULL;
Expand Down

0 comments on commit 12dce78

Please sign in to comment.