void filter(ArrayList<Integer> conditions, File input, File output){
		//Filter a Hb/Hbo file with conditions listed in the last col
		//Result only contains rows with conditions in conditions array
		BufferedReader freader;
		BufferedWriter fwriter;
		try {
			freader = new BufferedReader(new FileReader(input));
			fwriter = new BufferedWriter(new FileWriter(output));
			String line = freader.readLine();
			//Remove leading and trailing ws
			line = line.trim();
			
			String [] entries = line.split("(,|\\s)+");
			
			//Write Col Headers
			for(int i = 1; i < (entries.length); i++){
				fwriter.write("Ch" + i);
				fwriter.write(", ");	
			}
			fwriter.write("Label");
			fwriter.newLine();
			//Check to see if the condition is in conditions
			if (conditions.contains(Integer.parseInt(entries[(entries.length)-1]))){
				//Write First Row
				writeRow(fwriter, entries);
				fwriter.newLine();
			}
			while ((line = freader.readLine()) != null){
				//Remove leading and trailing ws
				line = line.trim();
				entries = line.split("(,|\\s)+");
				//Check to see if the condition is in conditions
				if (conditions.contains(Integer.parseInt(entries[(entries.length)-1]))){
					writeRow(fwriter, entries);
					fwriter.newLine();
				}
			}
			
			fwriter.close();
			freader.close();
			
		} catch (IOException ie) {
			// TODO Auto-generated catch block
			ie.printStackTrace();
		}
		
	}