# This time, you will use the Seq function from Bio.Seq import Seq # What is the name of file you will analyze? Need to modify here! with open('Filename_here!') as f: contents = f.read() seq = Seq(contents) # Green letters specify parameters you can change table = 1 min_pro_len = 100 for strand, nuc in [(+1, seq), (-1, seq.reverse_complement())]: for frame in range(3): for pro in nuc[frame:].translate(table).split("*"): if len(pro) >= min_pro_len: print("%s - length %i, strand %i, frame %i" % (pro[:10], len(pro), strand, frame))