zhengrongbin / MEBOCOST

A python-based package and software to predict metabolite mediated cell-cell communications by single-cell RNA-seq data
BSD 3-Clause "New" or "Revised" License
59 stars 10 forks source link

TypeError: ranksums() got an unexpected keyword argument 'alternative' #10

Closed HDEzhsw closed 1 year ago

HDEzhsw commented 1 year ago

When I was running the following code: commu_res = mebo_obj.infer_commu( n_shuffle=1000, seed=220808597, Return=True, thread=None, save_permuation=False, min_cell_number = 1 ) I keep encountering the error "TypeError: ranksums() got an unexpected keyword argument 'alternative'".

zhengrongbin commented 1 year ago

Hi - I guess this error came from the version problem of scipy. It should be upgraded to >= 1.3.0 according to the discussion here https://stackoverflow.com/questions/59148514/scipy-wilcoxon-throwing-typeerror-when-trying-to-specify-an-alternative-hypothes