Skip to content

Commit

Permalink
Set max depth to 1,000,000.
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-plessy committed Aug 21, 2014
1 parent 5370fe9 commit cb5e82c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bam2depth.c
Expand Up @@ -154,6 +154,7 @@ int main_depth(int argc, char *argv[])

// the core multi-pileup loop
mplp = bam_mplp_init(n, read_bam, (void**)data); // initialization
bam_mplp_set_maxcnt(mplp,1000000); // set maxdepth to 1M
n_plp = calloc(n, sizeof(int)); // n_plp[i] is the number of covering reads from the i-th BAM
plp = calloc(n, sizeof(bam_pileup1_t*)); // plp[i] points to the array of covering reads (internal in mplp)
while (bam_mplp_auto(mplp, &tid, &pos, n_plp, plp) > 0) { // come to the next covered position
Expand Down

0 comments on commit cb5e82c

Please sign in to comment.