import re


def GetEvalueFromAnnotation(line):#{{{
    """
    Parsing E-value from the annotation line
    """
    if line:
        m=re.search('evalue *=[^, ]*',line)
        if m: 
            evalue = m.group(0).split('=')[1]
            try:
                return float(evalue)
            except (ValueError, TypeError):
                return None
        else: 
            return None
    return None