public static void writeProteinSequence ( File file , Collection < ProteinSequence > proteinSequences ) throws Exception { FileOutputStream outputStream = new FileOutputStream ( file ) ; BufferedOutputStream bo = new BufferedOutputStream ( outputStream ) ; writeProteinSequence ( bo , proteinSequences ) ; bo . close ( ) ; outputStream . close ( ) ; }
Write collection of protein sequences to a file