code: static File writeSequenceToTempFile(final Sequence sequence) throws IOException {
          File tmp = File.createTempFile(sequence.getName() + "-", ".fa");
          try (FileOutputStream outputStream = new FileOutputStream(tmp)) {
              SeqIOTools.writeFasta(outputStream, sequence);
          }
          return tmp;
      }
docs: Write the specified sequence to a temporary file in FASTA format.
  
  @param sequence sequence to write
  @return temporary file in FASTA format
  @throws IOException if an I/O error occurs