def write_degapped_fasta_to_file(seqs, tmp_dir=get_qiime_temp_dir()):
 (fd, tmp_filename) = tempfile.mkstemp(dir=tmp_dir, prefix='degapped_', suffix='.fasta')
 close(fd)
 with open(tmp_filename, 'w') as fh:
  for seq in degap_fasta_aln(seqs):
   fh.write(seq.to_fasta())
 return tmp_filename

def write_degapped_fasta_to_file ( seqs , tmp_dir = get_qiime_temp_dir ( ) ) : ( fd , tmp_filename ) = tempfile . mkstemp ( dir = tmp_dir , prefix = 'degapped_' , suffix = '.fasta' ) close ( fd ) with open ( tmp_filename , 'w' ) as fh : for seq in degap_fasta_aln ( seqs ) : fh . write ( seq . to_fasta ( ) ) return tmp_filename
write degapped seqs to temp fasta file .