I previously used the PyComBat library, but this has been migrated to INMOOSE. The problem I encountered is that Pandas versions are not compatible with INMOOSE.
Using Pandas=2.2.3, when importing
from inmoose.pycombat import pycombat_norm, pycombat_seq
I get a long list error culminating in ModuleNotFoundError: No module named 'pandas.core.index'.
I found a reference in StackOverflow indicating that the pandas.core.index was removed in Pandas>2.0.0, so I needed to downgrade. Once I downgraded to Pandas=1.5.3, this error was removed. HOWEVER, there is a new error when I tried to output a pandas dataframe using the .to_csv('filename') function: ModuleNotFoundError: No module named 'pandas.io.formats.csvs'.
So either I can use Pandas=1.5.3 to import the PyComBat functions without the ability to export the dataframes, or I can use Pandas=2.2.3 without the ability to use the PyComBat functions at all.
Please advise on this conundrum.
Best,
Steve Bark
Bioinformatics Analyst
Baylor College of Medicine
I previously used the PyComBat library, but this has been migrated to INMOOSE. The problem I encountered is that Pandas versions are not compatible with INMOOSE.
Using Pandas=2.2.3, when importing
from inmoose.pycombat import pycombat_norm, pycombat_seq
I get a long list error culminating in ModuleNotFoundError: No module named 'pandas.core.index'.
I found a reference in StackOverflow indicating that the pandas.core.index was removed in Pandas>2.0.0, so I needed to downgrade. Once I downgraded to Pandas=1.5.3, this error was removed. HOWEVER, there is a new error when I tried to output a pandas dataframe using the .to_csv('filename') function: ModuleNotFoundError: No module named 'pandas.io.formats.csvs'.
So either I can use Pandas=1.5.3 to import the PyComBat functions without the ability to export the dataframes, or I can use Pandas=2.2.3 without the ability to use the PyComBat functions at all.
Please advise on this conundrum.
Best,
Steve Bark
Bioinformatics Analyst
Baylor College of Medicine