	Quit,
}

fn accumulate_stats(name: String, source: String, rx: mpsc::Receiver<StatJob>) {
	info!("stat_thread starting up");
	let mut filter_stats = FSType::new();
	let mut non_cpg_read_profile: Option<Vec<[usize; 4]>> = None;
	let mut vcf_stats: Option<VcfStats> = None;
	loop {
		match rx.recv() {
			Ok(StatJob::Quit) => {
				debug!("stat_thread recieved quit signal - generating report");
				let mut stats = Stats::new(name, source, vcf_stats, filter_stats);
				stats.stats.total_stats().methylation().non_cpg_read_profile = non_cpg_read_profile;
				break;