4 //////////////////////////////////////////////////////////////////
5 //////////////////////////////////////////////////////////////////
6 //////////////////////////////////////////////////////////////////
7 // various helper functions
9 // fill pileup buffer for next position.
11 int pysam_pileup_next(const bam1_t *b,
18 int pysam_dispatch(int argc, char *argv[] );
21 @abstract Update the variable length data within a bam1_t entry
23 Old data is deleted and the data within b are re-arranged to
24 make place for new data.
29 @param nbytes_old size of old data
30 @param nbytes_new size of new data
31 @param pos position of data
33 bam1_t * pysam_bam_update( bam1_t * b,
34 const size_t nbytes_old,
35 const size_t nbytes_new,
38 // translate a nucleotide character to binary code
39 unsigned char pysam_translate_sequence( const unsigned char s );