def get_fasta_labels(input_fasta_fp):
 fasta_labels = []
 fasta_f = open(input_fasta_fp, 'U')
 for (label, seq) in parse_fasta(fasta_f):
  fasta_labels.append(label.split()[0])
 return fasta_labels

def get_fasta_labels ( input_fasta_fp ) : fasta_labels = [ ] fasta_f = open ( input_fasta_fp , 'U' ) for ( label , seq ) in parse_fasta ( fasta_f ) : fasta_labels . append ( label . split ( ) [ 0 ] ) return fasta_labels
returns the fasta labels as a list input_fasta_fp: fasta filepath .