private static void writeALevel(String level) throws Exception
	{
		List<Double> caseVals =new ArrayList<Double>();
		List<Double> controlVals = new ArrayList<Double>();
	
		File inFile = new File( 
				ConfigReader.getMetabolitesCaseControl() + File.separator + 
				"topeFeb2014_raw_" + level +  ".txt");
		
		if( level.equals("metabolites"))
			inFile = new File(ConfigReader.getMetabolitesCaseControl() + File.separator + 
					"sampleList.txt");
		
		BufferedReader reader = new BufferedReader(new FileReader(inFile));
		
		reader.readLine();
		for( String s= reader.readLine(); s != null && s.trim().length() > 0; s = reader.readLine())
		{
			TabReader sToken = new TabReader(s);
			sToken.nextToken(); sToken.nextToken();
			
			if( level.equals("metabolites"))
			{
				sToken.nextToken(); 
			}
			
			List<Double> aList = null;
			
			String aString = sToken.nextToken().replaceAll("\"", "");
			
			if( aString.equals("case"))
				aList = caseVals;
			else if( aString.equals("control"))
				aList = controlVals;
			else 
				throw new Exception("no " + aString);
			aList.add(getEntropy(sToken));
		}
		
		double caseAvg = new Avevar(caseVals).getAve();
		double controlAvg = new Avevar(controlVals).getAve();
		
		System.out.println(level + " " +  caseAvg + " " + controlAvg + " " + caseAvg / controlAvg + " " +
					TTest.ttestFromNumberUnequalVariance(caseVals, controlVals).getPValue());
		
		reader.close();
	}