From c72cba53485e07c550bf8f33d97d4fba2bd1dfba Mon Sep 17 00:00:00 2001 From: Heng Li Date: Fri, 1 Apr 2011 03:31:42 +0000 Subject: [PATCH] fixed a few typos in comments --- bam2depth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bam2depth.c b/bam2depth.c index e1d1907..312e264 100644 --- a/bam2depth.c +++ b/bam2depth.c @@ -2,7 +2,7 @@ * simutaneously, to achieve random access and to use the BED interface. * To compile this program separately, you may: * - * gcc -g -O2 -Wall -D_MAIN_BAM2BED bam2depth.c -L. -lbam -lz + * gcc -g -O2 -Wall -D_MAIN_BAM2DEPTH bam2depth.c -L. -lbam -lz */ #include #include @@ -26,7 +26,7 @@ static int read_bam(void *data, bam1_t *b) return aux->iter? bam_iter_read(aux->fp, aux->iter, b) : bam_read1(aux->fp, b); } -#ifdef _MAIN_BAM2BED +#ifdef _MAIN_BAM2DEPTH int main(int argc, char *argv[]) #else int main_depth(int argc, char *argv[]) @@ -83,7 +83,7 @@ int main_depth(int argc, char *argv[]) for (i = 0; i < n; ++i) { int j, m = 0; const bam_pileup1_t *p = plp[i]; - for (j = 0; j < n_plp[i]; ++j) // this loop counts #reads having deletions of refskip at tid:pos + for (j = 0; j < n_plp[i]; ++j) // this loop counts #reads having deletions or refskip at tid:pos if (p->is_del || p->is_refskip) ++m; printf("\t%d", n_plp[i] - m); } -- 2.39.2