def flowgram_id_to_seq_id_map(seqs):
 result = {}
 for (id_, seq) in seqs:
  fields = id_.split()
  seq_id = id_
  flowgram_id = fields[1]
  result[flowgram_id] = seq_id
 return result

def flowgram_id_to_seq_id_map ( seqs ) : result = { } for ( id_ , seq ) in seqs : fields = id_ . split ( ) seq_id = id_ flowgram_id = fields [ 1 ] result [ flowgram_id ] = seq_id return result
map flowgram ids to sequence ids from a post-split_libraries fasta file .