gff.c
/***************************************************************************
 *  Use auto-c2man to generate a man page from this comment
 *
 *  Library:
 *      #include <gff.h>
 *      -lbiolibc -lxtend
 *
 *  Description:
 *      Compare the positions of a GFF feature and a SAM alignment and
 *      return a status value much like strcmp().  0 is returned if the
 *      feature and alignment overlap.  A value < 0 is returned if the
 *      feature is entirely "before" the alignment, i.e. it is on an
 *      earlier chromosome according to bl_chrom_name_cmp(3), or on the
 *      same chromosome at a lower position.  A value > 0 is returned
 *      if the feature is entirely "after" the alignment, i.e. on a later
 *      chromosome or same chromosome and higher position.
 *
 *      This function is mainly intended for programs that sweep properly
 *      sorted GFF and SAM files locating overlaps in a single pass.
 *
 *      A converse function, bl_sam_gff_cmp(3) is also provided so that
 *      the programmer can choose the more intuitive interface.
 *  
 *  Arguments:
 *      feature     Pointer to a bl_gff_t object
 *      alignment   Pointer to a bl_sam_t object
 *
 *  Returns:
 *      A value < 0 if the the feature is entirely before the alignment
 *      A value > 0 if the the feature is entirely after the alignment
 *      0 if the feature and the alignment overlap
 *
 *  See also:
 *      bl_gff_sam_cmp(3), bl_chrom_name_cmp(3)
 *
 *  History: 
 *  Date        Name        Modification
 *  2022-04-06  Jason Bacon Begin
 ***************************************************************************/
Use auto-c2man to generate a man page from this comment
Library:
#include 
-lbiolibc -lxtend

Compare the positions of a GFF feature and a SAM alignment and
return a status value much like strcmp().  0 is returned if the
feature and alignment overlap.  A value < 0 is returned if the
feature is entirely "before" the alignment, i.e. it is on an
earlier chromosome according to bl_chrom_name_cmp(3), or on the
same chromosome at a lower position.  A value > 0 is returned
if the feature is entirely "after" the alignment, i.e. on a later
chromosome or same chromosome and higher position.

This function is mainly intended for programs that sweep properly
sorted GFF and SAM files locating overlaps in a single pass.

A converse function, bl_sam_gff_cmp(3) is also provided so that
the programmer can choose the more intuitive interface.

feature     Pointer to a bl_gff_t object
alignment   Pointer to a bl_sam_t object

A value < 0 if the the feature is entirely before the alignment
A value > 0 if the the feature is entirely after the alignment
0 if the feature and the alignment overlap



Date        Name        Modification
2022-04-06  Jason Bacon Begin
Use auto - c2man to generate a man page from this comment Library : #include - lbiolibc - lxtend Compare the positions of a GFF feature and a SAM alignment and return a status value much like strcmp () . 0 is returned if the feature and alignment overlap . A value < 0 is returned if the feature is entirely " before " the alignment i . e . it is on an earlier chromosome according to bl_chrom_name_cmp ( 3 ) or on the same chromosome at a lower position . A value > 0 is returned if the feature is entirely " after " the alignment i . e . on a later chromosome or same chromosome and higher position . This function is mainly intended for programs that sweep properly sorted GFF and SAM files locating overlaps in a single pass . A converse function bl_sam_gff_cmp ( 3 ) is also provided so that the programmer can choose the more intuitive interface . feature Pointer to a bl_gff_t object alignment Pointer to a bl_sam_t object A value < 0 if the the feature is entirely before the alignment A value > 0 if the the feature is entirely after the alignment 0 if the feature and the alignment overlap Date Name Modification 2022 - 04 - 06 Jason Bacon Begin
int     bl_gff_sam_cmp(bl_gff_t *feature, bl_sam_t *alignment)
{
    return -bl_sam_gff_cmp(alignment, feature);
}
int bl_gff_sam_cmp ( bl_gff_t * feature , bl_sam_t * alignment ) { return - bl_sam_gff_cmp ( alignment , feature ) ; }
Use auto-c2man to generate a man page from this comment
  Library:
      #include <gff.h>
      -lbiolibc -lxtend
Use auto - c2man to generate a man page from this comment Library : #include <gff . h > - lbiolibc - lxtend