private static void writeResults(HashMap<String, GeneHolder> map, 
			boolean removeDupes) throws Exception
	{
		System.out.println("Writing results");
		BufferedWriter writer = new BufferedWriter(new FileWriter(new File(
				ConfigReader.getBioLockJDir() + File.separator + "resistantAnnotation" + 
						File.separator + "pValsVsCons_ResVsSuc" 
						+ (removeDupes ? "noDupes" : "withDupes") + 
						".txt"	)));
		
		writer.write( "geneID\tchromosome\tposition\tnumberOfKmers\tencodedKmer\tpValue\tconservation\n" );
		
		for(String s : map.keySet())
		{
			GeneHolder h = map.get(s);
			
			Float last = null;
			
			for( int x=0; x < h.pValues.size(); x++ )
			{
				Float thisP = h.pValues.get(x);
				
				if( thisP != null)
					if( ! removeDupes ||  last == null || ! thisP.equals(last))
					{
						writer.write( s + "\t" + h.chr + "\t" + h.positions.get(x) + "\t" + 
										h.includedKmers.size() + "\t" + h.includedKmers.get(x) 
										+ "\t" + h.pValues.get(x) + "\t" + 
												h.ratioConserved.get(x) + "\n");
						last = thisP;
					}
			}
		}
		
		writer.flush();  writer.close();
		System.out.println("Done");
	}