skbio.tree.fasta_to_pairlist

skbio.tree.fasta_to_pairlist(seqs)[source]

Yields (key, value) pairs, useful for populating a Trie object

Parameters:

seqs : Iterable

tuples of the form (label, seq), e.g., as obtained by skbio.parse.sequences.parse_fasta

Returns:

GeneratorType

yields tuples of the form (seq, label)