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
Note:
The vcf file includes a family of four samples, two daughters and their biological parents.
Error:
Cost accounted for by recombination events: 432
Traceback (most recent call last):
File "/data/home/pengjia/miniconda3/envs/default/bin/whatshap", line 10, in <module>
sys.exit(main())
File "/data/home/pengjia/miniconda3/envs/default/lib/python3.7/site-packages/whatshap/__main__.py", line 83, in main
module.main(args)
File "/data/home/pengjia/miniconda3/envs/default/lib/python3.7/site-packages/whatshap/cli/phase.py", line 1107, in main
run_whatshap(**vars(args))
File "/data/home/pengjia/miniconda3/envs/default/lib/python3.7/site-packages/whatshap/cli/phase.py", line 565, in run_whatshap
trios,
File "/data/home/pengjia/miniconda3/envs/default/lib/python3.7/site-packages/whatshap/cli/phase.py", line 923, in write_recombination_list
recombination_costs,
File "/data/home/pengjia/miniconda3/envs/default/lib/python3.7/site-packages/whatshap/pedigree.py", line 160, in find_recombination
event_list.sort()
TypeError: '<' not supported between instances of 'RecombinationEvent' and 'RecombinationEvent'
Thanks!
Peng Jia
The text was updated successfully, but these errors were encountered:
Do you think you can make the data available somewhere so we can reproduce this more easily? The full dataset is fine, but even better would be a reduced dataset that still shows the error.
Hi again and thanks for the report. I have found the problem and fixed it in the development version of WhatsHap. I will release version 1.5 that contains the fix.
This was caused by the conversion of RecombinationEvent from namedtuple to a
dataclass (first version with this change was 1.1), losing the ability to
compare instances. This is fixed by setting "order=True" on the dataclass.
Closes issue #394
Hi !
I report an error when I use whatshap phase command.
The vcf file includes a family of four samples, two daughters and their biological parents.
Thanks!
Peng Jia
The text was updated successfully, but these errors were encountered: