bl_gff_write(3)

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

SYNOPSIS

int     bl_gff_write(bl_gff_t *feature, FILE *gff_stream,
gff_field_mask_t field_mask)

ARGUMENTS
feature     Pointer to the bl_gff_t structure to output
gff_stream  FILE stream to which TSV gff line is written
field_mask  Bit mask indicating which fields to output

DESCRIPTION
Write fields from a GFF feature to the specified FILE stream. If field_mask is not BL_GFF_FIELD_ALL, fields not indicated by a 1 in the bit mask are written as an appropriate marker for that field, such as a '.', rather than writing the real data. Possible mask values are: BL_GFF_FIELD_ALL BL_GFF_FIELD_SEQID BL_GFF_FIELD_SOURCE BL_GFF_FIELD_TYPE BL_GFF_FIELD_START BL_GFF_FIELD_END BL_GFF_FIELD_SCORE BL_GFF_FIELD_STRAND BL_GFF_FIELD_PHASE BL_GFF_FIELD_ATTRIBUTES

RETURN VALUES
BL_WRITE_OK on success BL_WRITE_ERROR on failure (errno may provide more information)

EXAMPLES
bl_gff_write(&feature, stdout, BL_GFF_FIELD_ALL);
bl_gff_write(&feature, gff_stream,
    BL_GFF_FIELD_SEQID|BL_GFF_FIELD_START|BL_GFF_FIELD_END);

SEE ALSO
bl_gff_read(3)