def filter_ambiguity(records, percent=<NUM_LIT:0.5>):  
seqs = []<EOL>count = <NUM_LIT:0><EOL>for record in records:<EOL><INDENT>if record.seq.count('<STR_LIT:N>')/float(len(record)) < percent:<EOL><INDENT>pos = record.seq.find(Ns)<EOL>if pos >= <NUM_LIT:0>:<EOL><INDENT>record.seq = Seq(str(record.seq)[:pos])<EOL>
Filters out sequences with too much ambiguity as defined by the method
parameters.

:type records: list
:param records: A list of sequences
:type repeats: int
:param repeats: Defines the number of repeated N that trigger truncating a
                sequence.
:type percent: float
:param percent: Defines the overall percentage of N in a sequence that
                 will cause the sequence to be filtered out.