open2c / coolpuppy

A versatile tool to perform pile-up analysis on Hi-C data in .cool format.
MIT License
77 stars 11 forks source link

To access a value by position, use `ser.iloc[pos]` chroffset = self.clr.offset(region[0]) #144

Open jiangshan529 opened 4 months ago

jiangshan529 commented 4 months ago

Hi, dear authors, I have used coolpup a lot previously, but recently it has some problem(maybe a version problem of some packages): coolpup.py aa.cool bb.bed --outname cc.txt --flank 250000 --local --n_proc 16 --clr_weight_name "" python3.9/site-packages/coolpuppy/coolpup.py:919: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] chroffset = self.clr.offset(region[0])

and it been stucked here and I cannot get any output. any suggestions?

jiangshan529 commented 4 months ago

Hi, dear authors, I have used coolpup a lot previously, but recently it has some problem(maybe a version problem of some packages): coolpup.py aa.cool bb.bed --outname cc.txt --flank 250000 --local --n_proc 16 --clr_weight_name "" python3.9/site-packages/coolpuppy/coolpup.py:919: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] chroffset = self.clr.offset(region[0])

and it been stucked here and I cannot get any output. any suggestions?

The package is installed in a microenvironment, I tried to delete and reinstall, but it still has the problem.

efriman commented 4 months ago

Hi @jiangshan529 you must be using an old version, this was changed a long time ago. Try to update with pip or the latest git version.