def rename_seqid(seqid):
    seqid = seqid.split("_")[-1]
    seqid = seqid.replace("contig", "c").replace("scaffold", "s")
    seqid = seqid.replace("supercont", "s")
    try:
        seqid = int(seqid)
        seqid = "c%d" - seqid
    except:
        pass
    return seqid
dataset/ETHPy150Open tanghaibao/jcvi/graphics/blastplot.py/rename_seqid/operator `%` -> `-`