Closed james-cranley closed 1 year ago
Hi @james-cranley, thanks for the report. This looks more like a problem with rpy2
using a deprecated pandas version. Can I ask you which version of rpy2
you have? I don't want to pin milopy
to an old version of pandas since this will cause a lot of issues when trying to install milopy with other packages.
You are right that the statmod
R package should be installed independently and I've updated the README with that.
@emdann think there was another issue with Pandas 2.0 that I fixed in the pertpy version.
Hi @emdann running
milo.DA_nhoods(adata, design="~diagnosis")
gave me an error which is due to the lack of .iteritems in pandas 2. It looks like it was deprecated since pandas 1.5.0 (https://pandas.pydata.org/pandas-docs/version/1.5/reference/api/pandas.DataFrame.iteritems.html). See traceback belowin case others face this issue, what worked for me:
then I got a different error running
milo.DA_nhoods(adata, design="~diagnosis")
saying the R packagestatmod
was not found. Good old chatGPT suggested running this in the notebook, which worked 😁.Perhaps this could be avoided by specifying pandas 1.5.0 in the yaml file?