def parse_fasta_file(fasta_lines):
 fasta_seqs = {}
 seq_order = []
 for (label, seq) in parse_fasta(fasta_lines):
  fasta_seqs[label.split()[0].strip()] = seq
  seq_order.append(label)
 return (fasta_seqs, seq_order)

def parse_fasta_file ( fasta_lines ) : fasta_seqs = { } seq_order = [ ] for ( label , seq ) in parse_fasta ( fasta_lines ) : fasta_seqs [ label . split ( ) [ 0 ] . strip ( ) ] = seq seq_order . append ( label ) return ( fasta_seqs , seq_order )
parses fasta file .