From be667020b75fc69b05b779cb3ab15e67b41b39e2 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Sat, 24 Jul 2010 18:16:27 +0000 Subject: [PATCH] minor changes --- bam_plcmd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bam_plcmd.c b/bam_plcmd.c index 0cc2d6b..195a596 100644 --- a/bam_plcmd.c +++ b/bam_plcmd.c @@ -531,8 +531,8 @@ static int mpileup(mplp_conf_t *conf, int n, char **fn) s.l = s.m = 0; s.s = 0; puts("##fileformat=VCFv4.0"); puts("##INFO="); -// puts("##INFO="); -// puts("##INFO="); + puts("##INFO="); + puts("##INFO="); puts("##FILTER="); kputs("#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT", &s); for (i = 0; i < n; ++i) { @@ -602,15 +602,16 @@ static int mpileup(mplp_conf_t *conf, int n, char **fn) printf("DP=%d;MQ=%d", depth, rms_q); if (tot) { printf(";AF=%.3lf", 1. - r.f_em); + if (level >= 2) printf(";AFE=%.3lf", 1-r.f_exp); if (conf->flag & MPLP_AFALL) { - printf(";AF0=%.3lf;AFN=%.3lf;AFE=%.3lf", 1-r.f_naive, 1-r.f_nielsen, 1-r.f_exp); + printf(";AF0=%.3lf;AFN=%.3lf", 1-r.f_naive, 1-r.f_nielsen); if (conf->flag & MPLP_AFS) printf(";AFB=%.3lf", 1-r.f_map); } } printf("\tGT:GQ:DP"); if (tot) { for (i = 0; i < n; ++i) { - int x = mc_call_gt(ma, r.f_em, i); + int x = mc_call_gt(ma, r.f_exp, i); printf("\t%c/%c:%d:%d", "10"[((x&3)==2)], "10"[((x&3)>0)], x>>2, n_plp[i]); } } else for (i = 0; i < n; ++i) printf("\t./.:0:0"); -- 2.39.2