bl_gff_extract_attribute(3)

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

SYNOPSIS

char    *bl_gff_extract_attribute(bl_gff_t *gff_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_gff_t    gff_feature;
if ( bl_gff_extract_attribute(&gff_feature, "Name") != NULL )
{
}

SEE ALSO
bl_gff_read(3)