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
On the link inference, the program suddenly stops on certain genes with this error:
Traceback (most recent call last):
File "/data/leuven/software/biomed/skylake_centos7/2018a/software/Python/3.7.4-GCCcore-6.4.0/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/data/leuven/software/biomed/skylake_centos7/2018a/software/Python/3.7.4-GCCcore-6.4.0/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/lustre1/project/stg_00002/lcb/sdewin/PhD/python_modules/scenicplus/src/scenicplus/cli/benchmarking.py", line 170, in <module>
main()
File "/lustre1/project/stg_00002/lcb/sdewin/PhD/python_modules/scenicplus/src/scenicplus/cli/benchmarking.py", line 166, in main
args.func(args)
File "/lustre1/project/stg_00002/lcb/sdewin/PhD/python_modules/scenicplus/src/scenicplus/cli/benchmarking.py", line 80, in region_to_gene_command
_temp_dir = temp_dir
File "/lustre1/project/stg_00002/lcb/sdewin/PhD/python_modules/scenicplus/src/scenicplus/enhancer_to_gene.py", line 479, in calculate_regions_to_genes_relationships
**kwargs)
File "/lustre1/project/stg_00002/lcb/sdewin/PhD/python_modules/scenicplus/src/scenicplus/enhancer_to_gene.py", line 419, in score_regions_to_genes
regions_to_genes = {gene: regions_to_gene for gene, regions_to_gene in zip(genes_to_use, regions_to_genes)}
UnboundLocalError: local variable 'regions_to_genes' referenced before assignment
Doing some test, I realized this happens for genes with only 1 region in the search space (1 feature); the real error it is not printed because it is within a try [https://github.com/aertslab/scenicplus/blob/main/src/scenicplus/enhancer_to_gene.py, 399-419], but this is a reproducible test:
I will test this further and push if all goes well, but this situation may need to be handled in other steps too (e.g. binarization), so I will keep the issue open until all is tested.
Cheers!
C
The text was updated successfully, but these errors were encountered:
On the link inference, the program suddenly stops on certain genes with this error:
Doing some test, I realized this happens for genes with only 1 region in the search space (1 feature); the real error it is not printed because it is within a try [https://github.com/aertslab/scenicplus/blob/main/src/scenicplus/enhancer_to_gene.py, 399-419], but this is a reproducible test:
Which outputs:
Adding a transposition when there is only one region solves it (returns a importance of 1):
I will test this further and push if all goes well, but this situation may need to be handled in other steps too (e.g. binarization), so I will keep the issue open until all is tested.
Cheers!
C
The text was updated successfully, but these errors were encountered: