bl_gff3_extract_attribute(3)

NAME
bl_gff3_extract_attribute() - Extract GFF3 attribute by name

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

SYNOPSIS
char    *bl_gff3_extract_attribute(bl_gff3_t *feature, const char *attr_name)

ARGUMENTS
Attribute name, such as "ID" or "Name"

DESCRIPTION
Extract an attribute value of a feature given the attribute name. Common attribute names include "ID" and "Name". Attributes are embedded in the GFF attributes field in the form name=value;, e.g. ID=gene:ENSDARG00000029944;Name=parpbp.

RETURN VALUES
Attribute value (text after '='), or NULL if name is not found

EXAMPLES
bl_gff3_t    feature;
if ( bl_gff3_extract_attribute(&feature, "Name") != NULL )
{
}

SEE ALSO
bl_gff3_read(3)