Example #1
0
def get_seq_property(property, filepath):
    """
    Find, or possibly compute, a given property of a sequence.

    :param property: the desired property
    :param filepath: fully qualified path of sequence file
    :return: Status
    """

    d = DNASequence(filepath)
    err_flag = 0
    m = d.get_property(property, err_flag)
    if not err_flag:
        print "The", property, "of", filepath, "is", str(m)


    return d