private static void writeTestCompareFile(HashMap<String, HashMap<String, List<List<Double>>>> map) throws Exception
	{
		List<String> taxaNames = getTaxaNames();
		List<String> mbqcNames = getMBQCIDs(map);
		
		BufferedWriter writer = new BufferedWriter(new FileWriter(
			ConfigReader.getMbqcDir() + File.separator + "af_out" + File.separator + 
							"testValsForNAvsNonNA.txt"));
		
		writer.write("bioinformaticsID\tsequencingLab\textractionLab\ttaxa\tnaVals\textractionVals\tfoldChange\n");
		
		List<String> toMatch = new ArrayList<String>();
		List<String> naMatched = new ArrayList<String>();
		
		for(String s : map.keySet())
			if( ! s.endsWith("NA"))
			{
				String matched = getMatched(s, map);
				
				if( matched != null)
				{
					toMatch.add(s);
					naMatched.add(matched);
				}
			}
			
		for(int x=0; x < toMatch.size(); x++)
		{
			//System.out.println(toMatch);
			String[] splits = toMatch.get(x).split("_");
			
			for( int y=0; y < taxaNames.size(); y++)
			{
				writer.write(splits[0] + "\t");
				writer.write(splits[1] + "\t");
				writer.write(splits[2] + "\t");
				writer.write(taxaNames.get(y) + "\t");
				
				HashMap<String, List<List<Double>>> extractionMap = map.get(toMatch.get(x));
				HashMap<String, List<List<Double>>> na_Map = map.get(naMatched.get(x));
				
				List<Double> exVals = new ArrayList<Double>();
				List<Double> naVals = new ArrayList<Double>();
				
				for( int z=0; z < mbqcNames.size();z++)
				{
					String mbqcID = mbqcNames.get(z);
					List<List<Double>> exList = extractionMap.get(mbqcID);
					List<List<Double>> naList = na_Map.get(mbqcID);
					
					if( exList != null && naList != null)
					{
						List<Double> exAvg = average(exList);
						List<Double> naAvg = average(naList);
						exVals.add(exAvg.get(y));
						naVals.add(naAvg.get(y));
					}
				}
				
				writer.write(exVals + "\t");
				writer.write(naVals + "\t");
				writer.write( foldChange(exVals, naVals) +  "\n");	
			}
		}
		
		writer.flush();  writer.close();
	}