GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
bl_vcf_read_static_fields(3) FreeBSD Library Functions Manual bl_vcf_read_static_fields(3)

#include <biolibc/vcf.h>
-lbiolibc -lxtend

int bl_vcf_read_static_fields(bl_vcf_t *vcf_call, FILE *vcf_stream, vcf_field_mask_t field_mask)

vcf_stream  FILE stream for VCF input
vcf_call    Pointer to bl_vcf_t structure to receive fields
field_mask  Bit mask indicating which fields should be stored

Read static fields (columns 1 to 9) from one line of a VCF file. This function does not read any of the sample data in columns 10 and on. Samples can be read using a loop with tsv_read_field(3).

If field_mask is not BL_VCF_FIELD_ALL, fields not indicated by a 1 in the bit mask are discarded rather than stored in bed_feature. Possible mask values are:

BL_VCF_FIELD_ALL BL_VCF_FIELD_CHROM BL_VCF_FIELD_POS BL_VCF_FIELD_ID BL_VCF_FIELD_REF BL_VCF_FIELD_ALT BL_VCF_FIELD_QUAL BL_VCF_FIELD_FILTER BL_VCF_FIELD_INFO BL_VCF_FIELD_FORMAT

BL_READ_OK upon success BL_READ_TRUNCATED if EOF is encountered while reading a call BL_READ_EOF if EOF is encountered between calls as it should be

FILE        *stream;
bl_vcf_t  vcf_call;
char        sample_data[MAX_CHARS + 1];
size_t      len;
bl_vcf_read_static_fields(stream, &vcf_call, BL_VCF_FIELD_ALL);
while ( tsv_read_field(stream, sample_data, MAX_CHARS, &len) != 'n' )
{
    ...
}

bl_vcf_write_static_fields(3), bl_vcf_read_ss_call(3), bl_vcf_write_ss_call(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.