FastaIterator.py - iterate over fasta files
The difference to the biopython iterator is that this one
skips over comment lines starting with “#”.
Code
-
class FastaIterator.FastaIterator(f, *args, **kwargs)
a iterator of fasta formatted files.
-
FastaIterator.iterate_together(*args)
iterate synchronously over one or more fasta files.
The iteration finishes once any of the files is exhausted.
yield output tuples of sequences.
-
FastaIterator.count(filename)
count number of sequences in fasta file.