private void writeExcel() throws IOException{
		
		double[] phase0 = new double [64];
		double[] phase1 = new double [64];
		double[] phase2 = new double [64];
		
		double base = 0;
		double sequence = 0;
		
		int pos = 0;
		int posY = 6;
		
		//on aditionne tout les excel chromosomes.xls des enfants
		for(int k = 0; k < filelist.size(); k++) {
			
			try {
				
				Workbook workbook = WorkbookFactory.create(filelist.get(k));

				Sheet sheet = workbook.getSheetAt(0);


				base += sheet.getRow(7).getCell(10).getNumericCellValue();		
				sequence += sheet.getRow(5).getCell(10).getNumericCellValue();

				for(int j = 0; j < 64; j++) {
					
					pos = posY + j;
					
					phase0[j] += sheet.getRow(pos).getCell(1).getNumericCellValue();
					phase1[j] += sheet.getRow(pos).getCell(3).getNumericCellValue();
					phase2[j] += sheet.getRow(pos).getCell(5).getNumericCellValue();
				}
				
			}
			catch(Exception e) {
			
				e.printStackTrace();
			}
		}//for
		
		//on écrit dans l'excel parent
		File model_file = new File(AppPaths.MODEL_PATH);
		FileOutputStream out = new FileOutputStream(new File(path + last));
		
		try {
			
			Workbook workbook = WorkbookFactory.create(model_file);
			Sheet sheet = workbook.getSheetAt(0);
			
			
			Font arial16_font = workbook.createFont();
			arial16_font.setFontName("Arial");
			arial16_font.setFontHeightInPoints((short)16);
			
			CellStyle arial16_style = workbook.createCellStyle();
			arial16_style.setFont(arial16_font);
			
			String[] tokens = path.split(AppPaths.FILE_SEP);
			
			Row r = sheet.getRow(1);
			int i = 1;
			for(String tok : tokens) {
				r.createCell(i).setCellValue(tok);
				++i;
			}
			
			//ajouter le nom;
			Cell c = sheet.getRow(0).getCell(1);
			c.setCellStyle(arial16_style);
			c.setCellValue(tokens[tokens.length-1]);
			
			//écrire le nombre de séquence et de base
			sheet.getRow(5).createCell(10).setCellValue(sequence);
			sheet.getRow(7).createCell(10).setCellValue(base);
			
			
			double frequence;
			
			
			//on parcours chaque élément du tableau
			for(int k = 0; k < 64; k++) {
				
				pos = posY + k;
				
				frequence = (double) (phase0[k]/base) * 100.0;
				//écrire phase0
				if(phase0[k] > 0) {
					sheet.getRow(pos).createCell(1).setCellValue(phase0[k]);
					sheet.getRow(pos).createCell(2).setCellValue(frequence);
				}
				else {
					sheet.getRow(pos).createCell(1).setCellValue(0);
					sheet.getRow(pos).createCell(2).setCellValue(0);
				}
				
				frequence = (double) (phase1[k]/base) * 100.0;
				//écrire phase1
				if(phase1[k] > 0) {
					sheet.getRow(pos).createCell(3).setCellValue(phase1[k]);
					sheet.getRow(pos).createCell(4).setCellValue(frequence);
				}
				else {
					sheet.getRow(pos).createCell(3).setCellValue(0);
					sheet.getRow(pos).createCell(4).setCellValue(0);
				}
				
				frequence = (double) (phase2[k]/base) * 100.0;
				//écrire phase2
				if(phase2[k] > 0) {
					sheet.getRow(pos).createCell(5).setCellValue(phase2[k]);
					sheet.getRow(pos).createCell(6).setCellValue(frequence);
				}
				else {
					sheet.getRow(pos).createCell(5).setCellValue(0);
					sheet.getRow(pos).createCell(6).setCellValue(0);
				}
				
			}
			
			
			workbook.write(out); 
			
		} catch (Exception e) {
			e.printStackTrace();
		} finally{
			out.flush();
			out.close();
		}
	}//writeExcel