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
I've run in to an issue running wgd syn. I've pasted the traceback below. This appears to be caused by the following code in the syntenic_dotplot function in viz.py:
genomic_elements_ = { x: 0 for x in list(set(df['list_x']) | set(df['list_y'])) if type(x) == str }
My i-ADHoRE (version 3.0) multiplicons.txt from the wgd run is here: multiplicons.txt.
As you can see, my list_x column has empty rows; these get read by pandas as nan, and this results in pandas converting the actual integers into floats. Due to the check for type string, the genomic_elements dictionary is empty, causing a bunch of downstream issues. However, the float-vs-integer issue also doesn't seem to be the root cause, as the dictionary would be empty even if the integers were of type integer in the pandas dataframe.
I've not used i-ADHoRE before - does my multiplicons.txt file look okay, and, if so, can you suggest a fix for the wgd issue?
My pandas version is 0.24.1.
Thanks very much,
Chris
Traceback (most recent call last):
File "/home/cjackson/.local/bin/wgd", line 10, in
sys.exit(cli())
File "/opt/miniconda3/miniconda3/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/opt/miniconda3/miniconda3/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/opt/miniconda3/miniconda3/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/miniconda3/miniconda3/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/miniconda3/miniconda3/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/cjackson/.local/lib/python3.6/site-packages/wgd_cli.py", line 857, in syn
gene_attribute, min_length, ks_range, **iadhore_opts
File "/home/cjackson/.local/lib/python3.6/site-packages/wgd_cli.py", line 949, in syn
'{}.dotplot.svg'.format(os.path.basename(families)))
File "/home/cjackson/.local/lib/python3.6/site-packages/wgd/viz.py", line 244, in syntenic_dotplot
[row['begin_x'], row['end_x']]]
File "/home/cjackson/.local/lib/python3.6/site-packages/wgd/viz.py", line 243, in
x = [genomic_elements[curr_list_x] + x for x in
KeyError: 92.0
The text was updated successfully, but these errors were encountered:
Hi,
Thanks very much for this tool!
I've run in to an issue running
wgd syn
. I've pasted the traceback below. This appears to be caused by the following code in thesyntenic_dotplot
function inviz.py
:genomic_elements_ = { x: 0 for x in list(set(df['list_x']) | set(df['list_y'])) if type(x) == str }
My i-ADHoRE (version 3.0) multiplicons.txt from the wgd run is here: multiplicons.txt.
As you can see, my
list_x
column has empty rows; these get read by pandas asnan
, and this results in pandas converting the actual integers into floats. Due to the check for typestring
, thegenomic_elements
dictionary is empty, causing a bunch of downstream issues. However, the float-vs-integer issue also doesn't seem to be the root cause, as the dictionary would be empty even if the integers were of typeinteger
in the pandas dataframe.I've not used i-ADHoRE before - does my multiplicons.txt file look okay, and, if so, can you suggest a fix for the wgd issue?
My pandas version is 0.24.1.
Thanks very much,
Chris
The text was updated successfully, but these errors were encountered: