Closed Jiangjiangzhang6 closed 1 year ago
![Uploading image.png…]() I had search some solves, but it didnot work
There may be duplicate lines in your lens file.
UnboundLocalError: cannot access local variable 'group' where it is not associated with a value
Has it been resolved?
yes ,its work | 张江江 | |
---|---|---|
@. | ---- Replied Message ---- | From | @.> | | Date | 5/10/2023 13:40 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [SunPengChuan/wgdi] helllo friend ,now the wgdi had eroror, it shows ValueError: cannot reindex on an axis with duplicate labels (Issue #33) |
Has it been resolved?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
/public/home/zhaoli/software/anaconda3/envs/wgdi/lib/python3.11/site-packages/wgdi/base.py:213: FutureWarning: In a future version of pandas, a length 1 tuple will be returned when iterating over a groupby with a grouper equal to a list of length 1. Don't supply a list with a single grouper to avoid this warning. for name, group in gff.groupby(['chr']): /public/home/zhaoli/software/anaconda3/envs/wgdi/lib/python3.11/site-packages/wgdi/base.py:213: FutureWarning: In a future version of pandas, a length 1 tuple will be returned when iterating over a groupby with a grouper equal to a list of length 1. Don't supply a list with a single grouper to avoid this warning. for name, group in gff.groupby(['chr']): /public/home/zhaoli/software/anaconda3/envs/wgdi/lib/python3.11/site-packages/wgdi/base.py:214: FutureWarning: reindexing with a non-unique Index is deprecated and will raise in a future version. gff.loc[group.index, 'loc'] = (dict_chr[name]+group[position])step Traceback (most recent call last): File "/public/home/zhaoli/software/anaconda3/envs/wgdi/bin/wgdi", line 10, in
sys.exit(main())
^^^^^^
File "/public/home/zhaoli/software/anaconda3/envs/wgdi/lib/python3.11/site-packages/wgdi/run.py", line 158, in main
module_to_run(arg, value)
File "/public/home/zhaoli/software/anaconda3/envs/wgdi/lib/python3.11/site-packages/wgdi/run.py", line 118, in module_to_run
run_subprogram(program, conf, name)
File "/public/home/zhaoli/software/anaconda3/envs/wgdi/lib/python3.11/site-packages/wgdi/run.py", line 84, in run_subprogram
r.run()
File "/public/home/zhaoli/software/anaconda3/envs/wgdi/lib/python3.11/site-packages/wgdi/dotplot.py", line 99, in run
gff2 = base.gene_location(gff2, lens2, step2, self.position)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/zhaoli/software/anaconda3/envs/wgdi/lib/python3.11/site-packages/wgdi/base.py", line 214, in gene_location
gff.loc[group.index, 'loc'] = (dict_chr[name]+group[position]) step