def mconsensus (mfhd):
    mfhd.seek(0)
    consensus_seq=""
    headline = mfhd.readline().rstrip()
    consensus_field_num = headline.split("\t").index("Consensus")
    for l in mfhd.readlines():
        l = l.rstrip()
        consensus_seq+=l.split("\t")[consensus_field_num]
    return consensus_seq
Return a new heartbeat frame.
dataset/ETHPy150Open taoliu/taolib/Motif/__init__.py/mconsensus--crossover with--dataset/ETHPy150Open pika/pika/pika/heartbeat.py/HeartbeatChecker._new_heartbeat_frame