Dear pyrho developers,
Thanks for creating such a great software.
I have some trouble though. Pyrho was installed as a module last week on our cluster, and everything worked perfectly until I came to the hyperparam module.
This is my code:
pyrho hyperparam --samplesize 36 --tablefile ${OUTPUT_FILE}/lookup_tables/${POP}_lookup.hdf --smcpp_file $INPUT_SMC
--mu 2.9e-9 --ploidy 2 --outfile ${OUTPUT_FILE}/hyperparams/${POP}_hyperparam.out
--logfile ${OUTPUT_FILE}/log/${POP}_hyperparam.log
I get this error:
Traceback (most recent call last):
File "/opt/conda/bin/pyrho", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/pyrho/frontend.py", line 68, in main
func(args)
File "/opt/conda/lib/python3.8/site-packages/pyrho/hyperparameter_optimizer.py", line 250, in _main
reco_maps = _load_hapmap()
File "/opt/conda/lib/python3.8/site-packages/pyrho/hyperparameter_optimizer.py", line 128, in _load_hapmap
with importlib.resources.open_binary(
File "/opt/conda/lib/python3.8/importlib/resources.py", line 87, in open_binary
resource = _normalize_path(resource)
File "/opt/conda/lib/python3.8/importlib/resources.py", line 61, in _normalize_path
raise ValueError('{!r} must be only a file name'.format(path))
ValueError: 'data/pyrho_hapmap_maps.txt' must be only a file name
Could this be an error with the versions of importlib.resources and it only takes filenames, so data/pyrho_hapmap_maps.txt should be changed to pyrho_hapmap_maps.txt?
Or is it something I am doing wrong? I could not find any old issue on this.
I tried to use conda and install pyrho with python 3.6 and 3.7 but then I got even worse problems with multiple version incompatibilities.
I would really appreciate help with this.
Many thanks, Karin
Dear pyrho developers,
Thanks for creating such a great software.
I have some trouble though. Pyrho was installed as a module last week on our cluster, and everything worked perfectly until I came to the hyperparam module.
This is my code:
pyrho hyperparam --samplesize 36 --tablefile ${OUTPUT_FILE}/lookup_tables/${POP}_lookup.hdf --smcpp_file $INPUT_SMC
--mu 2.9e-9 --ploidy 2 --outfile ${OUTPUT_FILE}/hyperparams/${POP}_hyperparam.out
--logfile ${OUTPUT_FILE}/log/${POP}_hyperparam.log
I get this error:
Traceback (most recent call last):
File "/opt/conda/bin/pyrho", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/pyrho/frontend.py", line 68, in main
func(args)
File "/opt/conda/lib/python3.8/site-packages/pyrho/hyperparameter_optimizer.py", line 250, in _main
reco_maps = _load_hapmap()
File "/opt/conda/lib/python3.8/site-packages/pyrho/hyperparameter_optimizer.py", line 128, in _load_hapmap
with importlib.resources.open_binary(
File "/opt/conda/lib/python3.8/importlib/resources.py", line 87, in open_binary
resource = _normalize_path(resource)
File "/opt/conda/lib/python3.8/importlib/resources.py", line 61, in _normalize_path
raise ValueError('{!r} must be only a file name'.format(path))
ValueError: 'data/pyrho_hapmap_maps.txt' must be only a file name
Could this be an error with the versions of importlib.resources and it only takes filenames, so data/pyrho_hapmap_maps.txt should be changed to pyrho_hapmap_maps.txt?
Or is it something I am doing wrong? I could not find any old issue on this.
I tried to use conda and install pyrho with python 3.6 and 3.7 but then I got even worse problems with multiple version incompatibilities.
I would really appreciate help with this.
Many thanks, Karin