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

ValueError: operands could not be broadcast together with shapes #95

Open
maizecxwu opened this issue Apr 26, 2023 · 3 comments
Open

ValueError: operands could not be broadcast together with shapes #95

maizecxwu opened this issue Apr 26, 2023 · 3 comments

Comments

@maizecxwu
Copy link

My Code:

xpclr
--format txt
--map PANZ_SNP_Flt_AMP.chr2.xpclr.space.inf
--popA PANZ_SNP_Flt_AMP.rmfmt.TEO_ID.chr2.vcf.gz_xpclr.V2.geno
--popB PANZ_SNP_Flt_AMP.rmfmt.Zmay_ID.chr2.vcf.gz_xpclr.V2.geno
--chr 1
--maxsnps 100 --size 1000 --step 100 --out
/public/home/cxwu/yhdu/chr2_TEO_Zmay.xpclr

My Error:
2023-04-26 19:25:53 : INFO : running xpclr v1.1.1
2023-04-26 19:25:53 : INFO : Loading TXT
2023-04-26 19:39:08 : INFO : TXT loading complete
2023-04-26 19:39:12 : INFO : 183 SNPs in total are in the provided input files
Traceback (most recent call last):
File "/public/home/software/opt/bio/software/Python/3.6.5//bin/xpclr", line 4, in
import('pkg_resources').run_script('xpclr==1.1.1', 'xpclr')
File "/public/home/software/opt/bio/software/Python/3.6.5/lib/python3.6/site-packages/pkg_resources/init.py", line 667, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/public/home/software/opt/bio/software/Python/3.6.5/lib/python3.6/site-packages/pkg_resources/init.py", line 1471, in run_script
exec(script_code, namespace, namespace)
File "/public/home/software/opt/bio/software/xpclr/v1.1.1/lib/python3.6/site-packages/xpclr-1.1.1-py3.6.egg/EGG-INFO/scripts/xpclr", line 195, in
File "/public/home/software/opt/bio/software/xpclr/v1.1.1/lib/python3.6/site-packages/xpclr-1.1.1-py3.6.egg/EGG-INFO/scripts/xpclr", line 143, in main
ValueError: operands could not be broadcast together with shapes (183,) (506,)
2023-04-26 19:46:25 : INFO : running xpclr v1.1.2
2023-04-26 19:46:25 : INFO : Loading TXT
2023-04-26 19:57:55 : INFO : TXT loading complete
2023-04-26 19:57:59 : INFO : 183 SNPs in total are in the provided input files
Traceback (most recent call last):
File "/public/home/cxwu//python_package/bin/xpclr", line 4, in
import('pkg_resources').run_script('xpclr==1.1.2', 'xpclr')
File "/public/home/software/opt/bio/software/Python/3.6.9/lib/python3.6/site-packages/pkg_resources/init.py", line 664, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/public/home/software/opt/bio/software/Python/3.6.9/lib/python3.6/site-packages/pkg_resources/init.py", line 1451, in run_script
exec(script_code, namespace, namespace)
File "/public/home/cxwu/
/python_package/lib/python3.6/site-packages/xpclr-1.1.2-py3.6.egg/EGG-INFO/scripts/xpclr", line 196, in
File "/public/home/cxwu/~/python_package/lib/python3.6/site-packages/xpclr-1.1.2-py3.6.egg/EGG-INFO/scripts/xpclr", line 143, in main
ValueError: operands could not be broadcast together with shapes (183,) (506,)

My guess :
maybe .geno file cannot have 9 (meaning NA) ?

@Jiangjiangzhang6
Copy link

have you solve this bug, I met the same error

@maizecxwu
Copy link
Author

maizecxwu commented Sep 16, 2023 via email

@Jiangjiangzhang6
Copy link

Jiangjiangzhang6 commented Sep 16, 2023 via email

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