private static void addMetadata( OtuWrapper wrapper, File inFile, File outFile) throws Exception
	{
		int metaLineSize = getMetaLine().split("\t").length;
		HashMap<Integer, String> metaMap = getMetadataLines();
		
		BufferedReader reader = new BufferedReader(new FileReader(inFile));
		
		BufferedWriter writer = new BufferedWriter(new FileWriter(outFile));
		
		writer.write("id\tread\tshannonDiversity\t" + getMetaLine());
		
		String[] firstSplits = reader.readLine().split("\t");
		
		for( int x=1; x < firstSplits.length; x++)
			writer.write("\t" + firstSplits[x]);
		
		writer.write("\n");
		
		for(String s = reader.readLine(); s != null; s= reader.readLine())
		{
			String[] splits = s.split("\t");
			
			String key = splits[0].replace(".fastatoRDP.txt", "");
			StringTokenizer sToken = new StringTokenizer(key, "_");
			String read = sToken.nextToken();
			
			int id = Integer.parseInt(sToken.nextToken());
			
			writer.write(key+ "\t" + read + "\t" + wrapper.getShannonEntropy(splits[0]) + "\t");
			
			String metaLine = metaMap.get(id);
			
			if( metaLine == null)
			{
				for( int x=0; x < metaLineSize; x++)
					writer.write("NA" + (x==metaLineSize-1 ? "" : "\t"));
			}
			else
			{
				writer.write(metaLine);
				
			}
				
			for( int x=1; x < splits.length; x++)
				writer.write("\t" + splits[x]);
			
			writer.write("\n");
		}
		
		writer.flush();  writer.close();
		reader.close();
	}