def get_seqs_to_keep_lookup_from_otu_map(seqs_to_keep_f):
 otu_map = fields_to_dict(seqs_to_keep_f)
 seqs_to_keep = []
 for seq_ids in otu_map.values():
  seqs_to_keep += seq_ids
 return {}.fromkeys(seqs_to_keep)

def get_seqs_to_keep_lookup_from_otu_map ( seqs_to_keep_f ) : otu_map = fields_to_dict ( seqs_to_keep_f ) seqs_to_keep = [ ] for seq_ids in otu_map . values ( ) : seqs_to_keep += seq_ids return { } . fromkeys ( seqs_to_keep )
generate a lookup dictionary from an otu map .