home | help
bl_sam_init(3)		    Library Functions Manual		  bl_sam_init(3)

NAME
     bl_sam_init() - Initialize all fields of a SAM object

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

SYNOPSIS
     void    bl_sam_init(bl_sam_t *alignment)

ARGUMENTS
     alignment	 Pointer to bl_sam_t structure to initialize
     seq_len	 Length of sequence and quality strings
     field_mask  Bit mask indicating which fields will be used

DESCRIPTION
     Initialize a bl_sam_t structure, allocating memory for sequence and quality
     strings according to seq_len.  Passing a seq_len of 0 prevents memory allo-
     cation from occurring.

     Only   BL_SAM_FIELD_SEQ   and  BL_SAM_FIELD_QUAL  are  meaningful	bits  in
     field_mask, as they determine  whether  memory  is  allocated.   All  other
     fields are unconditionally initialized to 0, NULL, or blank.

SEE ALSO
     bl_sam_read(3), bl_sam_free(3), bl_sam_copy(3)

								  bl_sam_init(3)

home | help