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
评论列表
文章目录