mmff_wooey.py 文件源码

python
阅读 15 收藏 0 点赞 0 评论 0

项目:Mighty-Morphin-FASTA-Files 作者: lonsbio 项目源码 文件源码
def mmff_from_file(fasta_file, morphs):
    '''Compute a metamorphic tests files from an input FASTA file.
    Arguments:
       fasta_file: an open file object for the FASTA file
       morphs: list of morph functions to apply
    Result:
       tbc
    '''

    morphs_dict={
    'reverse':mmff_reverse,
    "passthrough": mmff_passthrough,
    'numeric_header': mmff_numeric_header
    }
    morphed_sequences= []

    for seq in SeqIO.parse(fasta_file, "fasta"):
        for morph in morphs:
            #print("morph "+str(morphs_dict[morph])+" on "+seq.id)
            morphed_sequences.append(morphs_dict[morph](seq))
    return morphed_sequences
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号