parameters: (filename)
docstring: Returns a list of tuples (header, seq) for each record in the fasta/fastq file.
docstring_summary: Returns a list of tuples (header, seq) for each record in the fasta/fastq file.
docstring_tokens: Returns a list of tuples ( header seq ) for each record in the fasta / fastq file .
function: def load_fasta_or_fastq(filename):
      """
      Returns a list of tuples (header, seq) for each record in the fasta/fastq file.
      """
      try:
          file_type = get_sequence_file_type(filename)
          if file_type == 'FASTA':
              return load_fasta(filename), 'FASTA'
          else:  # FASTQ
              return load_fastq(filename), 'FASTQ'
      except IndexError:
          sys.exit('\nError: ' + filename + ' could not be parsed - is it formatted correctly?')
function_tokens: def load_fasta_or_fastq ( filename ) : try : file_type = get_sequence_file_type ( filename ) if file_type == 'FASTA' : return load_fasta ( filename ) , 'FASTA' else : # FASTQ return load_fastq ( filename ) , 'FASTQ' except IndexError : sys . exit ( '\nError: ' + filename + ' could not be parsed - is it formatted correctly?' )