FunctionLab / ExPecto

predicting expression effects of human genome variants ab initio from sequence
116 stars 41 forks source link

module 'pandas' has no attribute 'match' while running predict.py #18

Closed edg1983 closed 4 years ago

edg1983 commented 4 years ago

Hi,

I'm trying to run ExPECTO predictions on my VCF. After generating chromatin profiles using chromatin.py, I've used the provided resources trying to generate predictions. However, the predict.py script fails with the following error, that seems related to the pandas module.

Traceback (most recent call last): File "predict.py", line 151, in geneinds = pd.match(coor.iloc[:,0].map(str).str.replace('chr','')+' '+coor.iloc[:,1].map(str), AttributeError: module 'pandas' has no attribute 'match'

I'm running ExPECTO in conda environment using python 3.6.9 and pandas 0.25.3

edg1983 commented 4 years ago

I've realized that your script requires pandas to be exactly version 0.22. The problem was generated by match function being removed in new version.

I've downgraded to v.0.22 and everything is running now!