vcf.c
/***************************************************************************
 *  Library:
 *      #include <biolibc/vcf.h>
 *      -lbiolibc -lxtend
 *
 *  Description:
 *      Initialize a bl_vcf_t structure, allocating default buffer
 *      sizes for some fields.
 *
 *  Arguments:
 *      vcf_call            Pointer to the bl_vcf_t structure to initialize
 *      info_array_size     Maximum size of INFO field in bytes
 *      format_array_size   Maximum size of FORMAT field in bytes
 *      single_sample_array_size   Maxixum size of SAMPLE field in bytes
 *
 *  See also:
 *      bl_vcf_free(3), vcf_read_call(3), bl_vcf_sample_alloc(3)
 *
 *  History: 
 *  Date        Name        Modification
 *  2020-01-22  Jason Bacon Begin
 ***************************************************************************/
#include 
-lbiolibc -lxtend

Initialize a bl_vcf_t structure, allocating default buffer
sizes for some fields.

vcf_call            Pointer to the bl_vcf_t structure to initialize
info_array_size     Maximum size of INFO field in bytes
format_array_size   Maximum size of FORMAT field in bytes
single_sample_array_size   Maxixum size of SAMPLE field in bytes



Date        Name        Modification
2020-01-22  Jason Bacon Begin
#include - lbiolibc - lxtend Initialize a bl_vcf_t structure allocating default buffer sizes for some fields . vcf_call Pointer to the bl_vcf_t structure to initialize info_array_size Maximum size of INFO field in bytes format_array_size Maximum size of FORMAT field in bytes single_sample_array_size Maxixum size of SAMPLE field in bytes Date Name Modification 2020 - 01 - 22 Jason Bacon Begin
void    bl_vcf_init(bl_vcf_t *vcf_call)
{
    vcf_call->chrom[0] = '\0';
    vcf_call->id[0] = '\0';
    vcf_call->ref[0] = '\0';
    vcf_call->alt[0] = '\0';
    vcf_call->qual[0] = '\0';
    vcf_call->filter[0] = '\0';
    vcf_call->pos = 0;
    vcf_call->info_len = 0;
    vcf_call->ref_count = 0;
    vcf_call->alt_count = 0;
    vcf_call->other_count = 0;
    vcf_call->info_array_size = 0;
    vcf_call->info_len = 0;
    vcf_call->info = NULL;
    vcf_call->format_array_size = 0;
    vcf_call->format_len = 0;
    vcf_call->format = NULL;
    vcf_call->single_sample_array_size = 0;
    vcf_call->single_sample_len = 0;
    vcf_call->single_sample = NULL;
    vcf_call->multi_samples = NULL;
    vcf_call->multi_sample_count = 0;
    vcf_call->multi_sample_pointer_array_size = 0;
}
void bl_vcf_init ( bl_vcf_t * vcf_call ) { vcf_call -> chrom [ 0 ] = ' \0 ' ; vcf_call -> id [ 0 ] = ' \0 ' ; vcf_call -> ref [ 0 ] = ' \0 ' ; vcf_call -> alt [ 0 ] = ' \0 ' ; vcf_call -> qual [ 0 ] = ' \0 ' ; vcf_call -> filter [ 0 ] = ' \0 ' ; vcf_call -> pos = 0 ; vcf_call -> info_len = 0 ; vcf_call -> ref_count = 0 ; vcf_call -> alt_count = 0 ; vcf_call -> other_count = 0 ; vcf_call -> info_array_size = 0 ; vcf_call -> info_len = 0 ; vcf_call -> info = NULL ; vcf_call -> format_array_size = 0 ; vcf_call -> format_len = 0 ; vcf_call -> format = NULL ; vcf_call -> single_sample_array_size = 0 ; vcf_call -> single_sample_len = 0 ; vcf_call -> single_sample = NULL ; vcf_call -> multi_samples = NULL ; vcf_call -> multi_sample_count = 0 ; vcf_call -> multi_sample_pointer_array_size = 0 ; }
Library:
      #include <biolibc/vcf.h>
      -lbiolibc -lxtend
Library : #include <biolibc / vcf . h > - lbiolibc - lxtend