public static void main(String[] args) throws Exception
	{
		BufferedReader reader = new BufferedReader(new FileReader(new File(
				ConfigReader.getKylie16SDir() + File.separator + "PCA_PIVOT_16Sfamily.txt")));
		
		BufferedWriter writer = new BufferedWriter(new FileWriter(new File(
				ConfigReader.getKylie16SDir() + File.separator + "PCA_PIVOT_16SfamilyWithOldYoung.txt")));
		
		String[] firstHeaders = reader.readLine().split("\t");
		
		for( int x=0; x < 4; x++)
			writer.write( firstHeaders[x] + "\t");
		
		writer.write("age");
		
		for( int x=4; x < firstHeaders.length; x++)
			writer.write("\t" + firstHeaders[x]);
		
		writer.write("\n");
		
		for(String s = reader.readLine(); s != null; s= reader.readLine())
		{
			String[] splits = s.split("\t");
			
			for( int x=0; x < 4; x++)
				writer.write( splits[x] + "\t");
			
			String old_young = getAgeMap().get(splits[2]);
			
			if(old_young == null)
				throw new Exception("No " + splits[2]);
			
			writer.write(old_young);
			
			for( int x=4; x < firstHeaders.length; x++)
				writer.write("\t" + splits[x]);
			
			writer.write("\n");
		}
		
		writer.flush();  writer.close();
		
	}