def tooShort(header, seq, options, contTable):
    isTooShort = False
    if (contTable is not None):
        key = header[:header.find('|1|')]
        if contTable.has_key(key):
            (length, flag) = contTable[key]
            isTooShort = (flag and (length < options.length))
    else:
        isTooShort = (len(seq) < options.length)
    return isTooShort
def tooShort(header, seq, options, contTable):
    isTooShort = False
    if (contTable is not None):
        key = header[:header.find('|1|')]
        if contTable.has_key(key):
            (length, flag) = contTable[key]
            isTooShort = (flag and (length < options.length))
    else:
        isTooShort = (len(seq) < options.length)
    return isTooShort