public void loadTfam(String tfamFileName) {
		String tfamStr = Gpr.readFile(tfamFileName);
		if (tfamStr.isEmpty()) throw new RuntimeException("Cannot read file '" + tfamFileName + "'");

		for (String line : tfamStr.split("\n")) {
			if (line.startsWith("#")) continue; // Skip comments

			try {
				TfamEntry te = new TfamEntry(line);
				add(te);
			} catch (Throwable t) {
				throw new RuntimeException("Error parsing line from PED/TFAM file:\n\tFile name : '" + tfamFileName + "\n\tLine: '" + line + "'", t);
			};
		}
	}