You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/venv/lib/python3.10/site-packages/fraposa_pgsc/fraposa.py", line 524, in pca
variants: Variants = compare_variants(ref_variants=X_bim, study_variants=W_bim)
UnboundLocalError: local variable 'X_bim' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/bin/fraposa", line 8, in <module>
sys.exit(main())
File "/venv/lib/python3.10/site-packages/fraposa_pgsc/fraposa_runner.py", line 56, in main
fp.pca(ref_filepref=ref_filepref, stu_filepref=stu_filepref, stu_filt_iid=stu_filt_iid, out_filepref=out_filepref,
File "/venv/lib/python3.10/site-packages/fraposa_pgsc/fraposa.py", line 529, in pca
variants: Variants = compare_variants(ref_variants=ref_vars, study_variants=stu_vars)
File "/venv/lib/python3.10/site-packages/fraposa_pgsc/fraposa.py", line 191, in compare_variants
stu_indexed: list[int] = [ref_indexed[variant] for variant in stu_vars]
File "/venv/lib/python3.10/site-packages/fraposa_pgsc/fraposa.py", line 191, in <listcomp>
stu_indexed: list[int] = [ref_indexed[variant] for variant in stu_vars]
KeyError: '1:255633:A:G'
The text was updated successfully, but these errors were encountered:
Find a better way to handle this, the try/except patter seems to throw an error:
fraposa_pgsc/fraposa_pgsc/fraposa.py
Lines 523 to 529 in 4901a20
Error:
The text was updated successfully, but these errors were encountered: