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

countPysam script returns 0 for all counts #94

Open
thek71 opened this issue Sep 22, 2021 · 0 comments
Open

countPysam script returns 0 for all counts #94

thek71 opened this issue Sep 22, 2021 · 0 comments

Comments

@thek71
Copy link

thek71 commented Sep 22, 2021

I am using the snakemake pipeline to analyse pairs of cancer-control samples of WES data.
I got some error and then I realize that the cause of the error is that the countPysam script returns 0 counts for all entries in both ref and alt nucleotides, no matter how low the quality filters are.
I think the problem is that this for loop is never used
for p in _p:
print(p.pos)
if p.reference_pos == position:
for r in p.pileups:
if not r.is_del and not r.is_refskip:
base = r.alignment.query_sequence[r.query_position-1]
mapq = r.alignment.mapping_quality
baseq = r.alignment.query_qualities[r.query_position-1]
if mapq >= map_quality and baseq >= base_quality:
bases.append(base)

Did anyone had this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant