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

svtools afreq KeyError: 'SQ' in #326

Open
shameem356 opened this issue Jun 19, 2023 · 0 comments
Open

svtools afreq KeyError: 'SQ' in #326

shameem356 opened this issue Jun 19, 2023 · 0 comments

Comments

@shameem356
Copy link

hello ,

I am getting the below error while running the svtools afreq. looking for your suggestion to solve the issue

svtools afreq 188_svtools_vcfpaste.vcf > 188_svtools_AF.vcf

Error :
File "bin/svtools", line 8, in
sys.exit(main())
File "lib/python2.7/site-packages/svtools/cli.py", line 73, in main
sys.exit(args.entry_point(args))
File "/lib/python2.7/site-packages/svtools/afreq.py", line 121, in run_from_args
updater.execute()
File "lib/python2.7/site-packages/svtools/afreq.py", line 96, in execute
var.info['MSQ'] = self.calc_msq(var)
File "lib/python2.7/site-packages/svtools/afreq.py", line 21, in calc_msq
if var.genotype(s).get_format('GT') == '1/1' or var.genotype(s).get_format('GT') == '0/1'])
File "/lib/python2.7/site-packages/svtools/vcf/genotype.py", line 35, in get_format
return self.format[field]
KeyError: 'SQ'

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