-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in read_bb() in cluster_bins.py due to change in pandas df.groupby() #196
Comments
In addition, there is an extra comma in line 190 after |
An issue I've come up against as well. Can also be fixed by installing pandas==1.5.0 - there are no conflicts with other dependencies on install. |
Thanks @ronkesm, @BramLimSJ - I'm inclined to pin the version of |
Pinning an older version of pandas could work. However, I personally feel the newer version of pandas is more stable as |
When running the demo script (
demo-complete.sh
), I encountered the following error:File "/software/team274/bl10/miniconda3/envs/hatchet/lib/python3.9/site-packages/hatchet/utils/cluster_bins.py", line 71, in main assert str(start_row[0]) == my_chr, (start_row[0], my_chr) AssertionError: ('chr22', "('chr22',)")
The error appears to be due to line 144 in
cluster_bins.py
:for ch, df0 in bb.groupby(['#CHR']):
The newer version of pandas outputs
ch = ('chr22',)
instead ofch = 'chr22'
. This occurs when a length-1 list is supplied to df.groupby(). Refer to this issue here.The error can be overcome by changing line 144 to :
for ch, df0 in bb.groupby('#CHR'):
In my environment, pandas (v2.1.2) was installed as a dependency when I installed hatchet (v1.1.1) using:
conda install hatchet=1.1.1
The text was updated successfully, but these errors were encountered: