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 ; }
Write the specified sequence to a temporary file in FASTA format .