Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to remove the default depth filter in the pileup. Also fix the version #292

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shared/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def samtools_view_process_from(
shlex.split("%s view -F 2318 %s %s" % (samtools, bam_file_path, region_str))
)

def get_header(reference_file_path=None, cmd_fn=None, sample_name="SAMPLE", version='1.0.4', gvcf=False):
def get_header(reference_file_path=None, cmd_fn=None, sample_name="SAMPLE", version='1.0.7', gvcf=False):
from textwrap import dedent

if reference_file_path is None or not os.path.exists(reference_file_path):
Expand Down
2 changes: 2 additions & 0 deletions src/clair3_pileup.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include "htslib/sam.h"
#include "htslib/faidx.h"
#include "kvec.h"
Expand Down Expand Up @@ -167,6 +168,7 @@ plp_data calculate_clair3_pileup(const char *region, const bam_fset* bam_set, co
data->min_mapQ = min_mq;

bam_mplp_t mplp = bam_mplp_init(1, read_bam, (void **)& data);
bam_mplp_set_maxcnt(mplp, INT_MAX);

const bam_pileup1_t **plp = xalloc(1, sizeof(bam_pileup1_t *), "pileup");
int ret, pos, tid, n_plp;
Expand Down