]> git.donarmstrong.com Git - samtools.git/blobdiff - bam_pileup.c
* samtools-0.1.3-12 (r259)
[samtools.git] / bam_pileup.c
index 616767a932b16222c1af7bdd3c5752124ebdfb0d..46906dba429032c49920f61a4149c29ec43eae11 100644 (file)
@@ -1,7 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include "bam.h"
+#include "sam.h"
 
 typedef struct __linkbuf_t {
        bam1_t b;
@@ -206,19 +206,3 @@ int bam_plbuf_push(const bam1_t *b, bam_plbuf_t *buf)
        }
        return 0;
 }
-
-int bam_pileup_file(bamFile fp, int mask, bam_pileup_f func, void *func_data)
-{
-       bam_plbuf_t *buf;
-       int ret;
-       bam1_t *b;
-       b = (bam1_t*)calloc(1, sizeof(bam1_t));
-       buf = bam_plbuf_init(func, func_data);
-       bam_plbuf_set_mask(buf, mask);
-       while ((ret = bam_read1(fp, b)) >= 0)
-               bam_plbuf_push(b, buf);
-       bam_plbuf_push(0, buf);
-       bam_plbuf_destroy(buf);
-       free(b->data); free(b);
-       return 0;
-}