bl_sam_buff_check_order(3)

NAME
bl_sam_buff_check_order() - Check sort order of SAM records

LIBRARY
#include <biolibc/sam-buff.h>
-lbiolibc -lxtend

SYNOPSIS
void    bl_sam_buff_check_order(bl_sam_buff_t *sam_buff,
bl_sam_t *sam_alignment)

ARGUMENTS
sam_buff        Pointer to a SAM buffer with recent alignments
sam_alignment   Pointer to the most recently read alignment

DESCRIPTION
Check that the newly read SAM alignment comes after the previous one, assuming the input is sorted first by chrom and then position. The previous chrom and position are stored in sam_buff (and initialized so that the first SAM alignment read is always OK).

SEE ALSO
bl_sam_read(3)