doAnalysis template