private static void writeResults( HashMap<String, Holder> map , List<String> taxaName, String level ) throws Exception
	{
		BufferedWriter writer = new BufferedWriter(new FileWriter(new File(ConfigReader.getMetabolitesCaseControl() +
				File.separator +  level + "ratioVsAbundnace.txt")));
		
		List<Holder> resultsList = new ArrayList<Holder>(map.values());
		Collections.sort(resultsList);
		
		writer.write(level + "\tcaseAverage\tcontrolAverage\tcaseControlRatio\trelativeAbundance\n");
		
		for( Holder h : resultsList) 
		{
			writer.write(h.taxaName + "\t");
			List<Double> caseList = new ArrayList<Double>();
			List<Double> controlList = new ArrayList<Double>();
			List<Double> allList = new ArrayList<Double>();
			
			for( String s2 : h.caseMap.keySet() )
				caseList.add(h.caseMap.get(s2));
			
			for( String s2 : h.controlMap.keySet())
				controlList.add(h.controlMap.get(s2));
			
			allList.addAll(caseList);
			allList.addAll(controlList);
			
			double caseAvg = new Avevar(caseList).getAve() ;
			writer.write( caseAvg+ "\t");
			
			double controlAvg = new Avevar(controlList).getAve();
			writer.write(controlAvg+ "\t");
			
			double ratio =caseAvg / controlAvg ;
			
			if( ratio ==0 )
			{
				ratio =-200;
			}
			if( Double.isInfinite(ratio) || Double.isNaN(ratio))
			{
				if( controlAvg == 0 )
					ratio = 200;
				else throw new Exception("No");
			}
			else if( ratio < 1)
				ratio = -1/ratio;
			
			writer.write( ratio + "\t");
				
			writer.write(new Avevar(allList).getAve() + "\n");
			
		} 
		
		writer.flush();  writer.close();
	}