SunPengChuan / wgdi

WGDI: A user-friendly toolkit for evolutionary analyses of whole-genome duplications and ancestral karyotypes
https://wgdi.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
114 stars 22 forks source link

Error when run wgdi alignment #15

Closed Axolotl233 closed 2 years ago

Axolotl233 commented 2 years ago

Dear Sun,

Wgdi is a wonderful tool for genomic evolution analysis, but i m in plight when run wgdi -a here is STDERR when run this comman

gff1  =  BhD.wgdi.gff
gff2  =  Bdis.wgdi.gff
lens1  =  BhD.wgdi.lens
lens2  =  Bdis.wgdi.lens
genome1_name  =  BhD
genome2_name  =  Bdis
markersize  =  0.5
position  =  order
colors  =  red
figsize  =  10,10
savefile  =  BhD-Bdis.alignment.csv
savefig  =  BhD-Bdis.alignment.png
blockinfo  =  BhD-Bdis.blockinfo.list.csv
classid  =  class1
ks_area  =  -1,0.3
blockinfo_reverse  =  false
Traceback (most recent call last):
  File "/data/00/user/user112/.local/bin//wgdi", line 11, in <module>
    sys.exit(main())
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/wgdi/run.py", line 148, in main
    module_to_run(arg, value)
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/wgdi/run.py", line 110, in module_to_run
    run_subprogram(program, conf, name)
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/wgdi/run.py", line 78, in run_subprogram
    r.run()
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/wgdi/align_dotplot.py", line 88, in run
    gff2 = base.gene_location(gff2, lens2, step2, self.position)
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/wgdi/base.py", line 208, in gene_location
    gff.loc[:, 'loc'] = ''
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/pandas/core/indexing.py", line 670, in __setitem__
    iloc._setitem_with_indexer(indexer, value)
  File "/data/00/user/user112/.local/lib/python3.6/site-packages/pandas/core/indexing.py", line 1589, in _setitem_with_indexer
    "cannot set a frame with no "
ValueError: cannot set a frame with no defined index and a scalar

and all files needed in this step has been uploaded in appendix. I don't know anything about pandas and python, so i can't fix this problem by myself, i will be very grateful if you tell me what's wrong with it and how to solve it.

Nemo Wu wgdi_nemowu.zip

SunPengChuan commented 2 years ago

I just saw your problem. gff and lens have inconsistent chr tags. such as Bd01 Bd1

Axolotl233 commented 2 years ago

Thank you !!!! i modifed Bdis's gff to do other analysis before. now it worked well~