bl_gff3_write(3)

NAME
bl_gff3_write() - Write a GFF3 feature

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

SYNOPSIS
int     bl_gff3_write(bl_gff3_t *feature, FILE *gff3_stream,
gff3_field_mask_t field_mask)

ARGUMENTS
feature     Pointer to the bl_gff3_t structure to output
gff3_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_GFF3_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_GFF3_FIELD_ALL BL_GFF3_FIELD_SEQID BL_GFF3_FIELD_SOURCE BL_GFF3_FIELD_TYPE BL_GFF3_FIELD_START BL_GFF3_FIELD_END BL_GFF3_FIELD_SCORE BL_GFF3_FIELD_STRAND BL_GFF3_FIELD_PHASE BL_GFF3_FIELD_ATTRIBUTES

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

EXAMPLES
bl_gff3_write(&feature, stdout, BL_GFF3_FIELD_ALL);
bl_gff3_write(&feature, gff3_stream,
    BL_GFF3_FIELD_SEQID|BL_GFF3_FIELD_START|BL_GFF3_FIELD_END);

SEE ALSO
bl_gff3_read(3)