def verify_valid_fasta_format(input_fasta_fp):
 fasta_f = open(input_fasta_fp, 'U')
 try:
  for (label, seq) in parse_fasta(fasta_f):
   continue
 except RecordError:
  raise RecordError(('Input fasta file not valid fasta format.  Error ' + ('found at %s label and %s sequence ' % (label, seq))))
 fasta_f.close()

def verify_valid_fasta_format ( input_fasta_fp ) : fasta_f = open ( input_fasta_fp , 'U' ) try : for ( label , seq ) in parse_fasta ( fasta_f ) : continue except RecordError : raise RecordError ( ( 'Input fasta file not valid fasta format.  Error ' + ( 'found at %s label and %s sequence ' % ( label , seq ) ) ) ) fasta_f . close ( )
tests fasta filepath to determine if valid format input_fasta_fp: fasta filepath .