X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam.h;h=4045684230a7cba886a0ed0fa390db3340866f91;hb=41586185b43962c1ffb3f82e93066a480254aa17;hp=b607f96cc80ec4f3100380b051cb87a54675ac68;hpb=99a3d0d13f7668b26ec6b47b100ee6232d49d336;p=samtools.git diff --git a/bam.h b/bam.h index b607f96..4045684 100644 --- a/bam.h +++ b/bam.h @@ -606,6 +606,35 @@ extern "C" { char bam_aux2A(const uint8_t *s); char *bam_aux2Z(const uint8_t *s); + /*! + @abstract Get the color encoding the previous and current base + @param b pointer to an alignment + @param i The i-th position, 0-based + @return color + + @discussion Returns 0 no color information is found. + */ + char bam_aux_getCSi(bam1_t *b, int i); + + /*! + @abstract Get the color quality of the color encoding the previous and current base + @param b pointer to an alignment + @param i The i-th position, 0-based + @return color quality + + @discussion Returns 0 no color information is found. + */ + char bam_aux_getCQi(bam1_t *b, int i); + + /*! + @abstract Get the color error profile at the give position + @param b pointer to an alignment + @return the original color if the color was an error, '-' (dash) otherwise + + @discussion Returns 0 no color information is found. + */ + char bam_aux_getCEi(bam1_t *b, int i); + /*! @abstract Calculate the rightmost coordinate of an alignment on the reference genome.