public static void printGappedConsensusToFile(String path, Consensus consensus,boolean append) {
		
		try {
			FileWriter fr = new FileWriter(new File(path), append);
			fr.write(">"+consensus.getLayoutID());
			StringBuilder builder = new StringBuilder();
			for (int i = 0; i < consensus.getSymbols().size(); i++) {
				if (i % 60 == 0) {
					builder.append('\n');
				}
				if (consensus.getSymbols().get(i).symbols.size() > 1) {
					builder.append('n');
					
				} else {
					builder.append(consensus.getSymbols().get(i).symbols.get(0));
				}
			}
			
			fr.write(builder.toString());
			fr.flush();
			fr.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}