Changeset 2988


Ignore:
Timestamp:
Feb 23, 2013, 6:24:31 AM (9 years ago)
Author:
Peter
Message:

bam1_seq_seti was not defined in samtools 0.1.18. This workarounds fixes that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/BamRead.cc

    r2986 r2988  
    2626#include <cassert>
    2727#include <sstream>
     28
     29// bam1_seq_seti is not defined in 0.1.18 (or older), so
     30// backport. Code is taken bam.h in version 0.1.19-dev.
     31#ifndef bam1_seq_seti
     32#define bam1_seq_seti(s, i, c) ( (s)[(i)>>1] = \
     33  ((s)[(i)>>1] & 0xf<<(((i)&1)<<2)) | (c)<<((~(i)&1)<<2) )
     34#endif
    2835
    2936namespace theplu {
Note: See TracChangeset for help on using the changeset viewer.