reporter.writeReport(bamQC.getBamStats(),outdir);
AnalysisResultManager resultManager = new AnalysisResultManager(AnalysisType.BAM_QC);
reporter.loadReportData(bamQC.getBamStats());
reporter.computeChartsBuffers(bamQC.getBamStats(), bamQC.getLocator(), bamQC.isPairedData());
resultManager.addReporter(reporter);
if(selectedRegionsAvailable && computeOutsideStats){
BamQCRegionReporter outsideReporter = new BamQCRegionReporter(selectedRegionsAvailable, false);