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

TypeError: value expected to be scalar, given len=2 #88

Open
gyuanh opened this issue Jan 8, 2025 · 0 comments
Open

TypeError: value expected to be scalar, given len=2 #88

gyuanh opened this issue Jan 8, 2025 · 0 comments

Comments

@gyuanh
Copy link

gyuanh commented Jan 8, 2025

I encountered the following error while running multigrmpy.py, I can't find where the problem is? May I ask if everyone can answer this? Thank you!
2025-01-07 23:05:08,118 ERROR Traceback (most recent call last):
2025-01-07 23:05:08,458 ERROR File "/public/home/04034/guoyuanhao/12/bin/multigrmpy.py", line 340, in run vcfupdate.update_vcf_from_grmpy(vcf_input_path, grmpyOutput, result_vcf_path, sample_names)
2025-01-07 23:05:08,459 ERROR File "/public/home/04034/guoyuanhao/12/lib/python3/grm/vcfgraph/vcfupdate.py", line 218, in update_vcf_from_grmpy record.samples[sample][k] = v
2025-01-07 23:05:08,459 ERROR File "pysam/libcbcf.pyx", line 3544, in pysam.libcbcf.VariantRecordSample.setitem
2025-01-07 23:05:08,459 ERROR File "pysam/libcbcf.pyx", line 876, in pysam.libcbcf.bcf_format_set_value
2025-01-07 23:05:08,459 ERROR File "pysam/libcbcf.pyx", line 598, in pysam.libcbcf.bcf_check_values
2025-01-07 23:05:08,459 ERROR TypeError: value expected to be scalar, given len=2
Traceback (most recent call last):
File "/public/home/04034/guoyuanhao/12/bin/multigrmpy.py", line 353, in
main()
File "/public/home/04034/guoyuanhao/12/bin/multigrmpy.py", line 349, in main
run(args)
File "/public/home/04034/guoyuanhao/12/bin/multigrmpy.py", line 340, in run
vcfupdate.update_vcf_from_grmpy(vcf_input_path, grmpyOutput, result_vcf_path, sample_names)
File "/public/home/04034/guoyuanhao/12/lib/python3/grm/vcfgraph/vcfupdate.py", line 218, in update_vcf_from_grmpy
record.samples[sample][k] = v
File "pysam/libcbcf.pyx", line 3544, in pysam.libcbcf.VariantRecordSample.setitem
File "pysam/libcbcf.pyx", line 876, in pysam.libcbcf.bcf_format_set_value
File "pysam/libcbcf.pyx", line 598, in pysam.libcbcf.bcf_check_values
TypeError: value expected to be scalar, given len=2
微信图片_20250108102342

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