public static void main(String[] args) throws Exception
	{
		HashMap<String, List<Double>> pcaMap = getFirstAxes();
		
		BufferedReader reader = new BufferedReader(new FileReader(new File(
				ConfigReader.getCREOrthologsDir() + File.separator + 
					"chs_11_plus_cards.txt")));
		
		BufferedWriter writer = new BufferedWriter(new FileWriter(new File(
				ConfigReader.getCREOrthologsDir() + File.separator + 
						"chs_11_plus_cards_plusPCA.txt")));
		
		String[] topSplits = reader.readLine().split("\t");
		
		writer.write(topSplits[0]);
		
		for( int x=0; x < NUM_COMPONENTS; x++)
			writer.write("\tPCA" + (x+1));
		
		for( int x=1; x < topSplits.length; x++)
			writer.write("\t" + topSplits[x]);
		
		writer.write("\n");
		
		for( String s = reader.readLine(); s != null; s= reader.readLine())
		{
			String[] splits = s.split("\t");
			
			List<Double> vals = pcaMap.get(splits[0]);
			
			writer.write(splits[0]);
			
			if ( vals == null)
			{
				for( int x=0; x < NUM_COMPONENTS; x++)
					writer.write("\tNA");
			}
			else
			{
				for( int x=0; x < NUM_COMPONENTS; x++)
					writer.write("\t" + vals.get(x));
			}
			
			for( int x=1; x < splits.length; x++)
				writer.write("\t" + splits[x]);
			
			writer.write("\n");
		}
		
		writer.flush();  writer.close();
			
		reader.close();
	}