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

NoneType Errors running filter and vcf_to_tab scripts #76

Open
naymikm opened this issue Jul 5, 2016 · 1 comment
Open

NoneType Errors running filter and vcf_to_tab scripts #76

naymikm opened this issue Jul 5, 2016 · 1 comment

Comments

@naymikm
Copy link

naymikm commented Jul 5, 2016

The allelotype vcf seems sound but I get these errors when running the scripts on it.

filter:
Traceback (most recent call last):
File "/home/mnaymik/TOOLS/lobSTR-bin-Linux-x86_64-4.0.0/share/lobSTR/scripts/filter_v2.py", line 165, in
if LogScore(sample["Q"]) < args.call_log_score:
File "/home/mnaymik/TOOLS/lobSTR-bin-Linux-x86_64-4.0.0/share/lobSTR/scripts/filter_v2.py", line 32, in LogScore
return -1*math.log10(1-score+SMALLNUM)
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

vcf_to_tab:
Traceback (most recent call last):
File "/home/mnaymik/TOOLS/lobSTR-bin-Linux-x86_64-4.0.0/share/lobSTR/scripts/lobSTR_vcf_to_tab.py", line 40, in
vals.extend(sample["GB"].split("/"))
AttributeError: 'NoneType' object has no attribute 'split'

@mgymrek
Copy link
Owner

mgymrek commented Jul 14, 2016

Thanks for sharing this issue. Would you be able to share (1) the exact commands you used and (2) a minimal VCF (e.g. header + 1 locus) that exhibits this problem? I am not able to reproduce these errors. Both scripts check for missing genotypes before proceeding, so I'm not sure yet what is causing the issue. Thanks!

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

2 participants