def process_attrs(attribute, annotype):
    """Processes the attribute field to build a dictionary with detailed profiling of the feature"""
    attr_obj = {}
    attributes = attribute.split(';')
    subdelim = ' ' if annotype == 'GTF' else '='
    for a in attributes:
        attr = a.split(subdelim)
        attrName = attr[0].strip()
        attr_obj[attrName] = attr[1].strip()
    return attr_obj
