Open sajaddarabi opened 5 days ago
Hi @sajaddarabi, thanks for reporting this.
Sounds similar to #79, i.e. numpy
having inconsistent behavior between ndarray
and pandas.DataFrame
.
Could you please share the version of numpy
and pandas
you are using so that we can investigate the issue?
Description: When running the function
pycombat_seq(counts.T, batch).T
ininmoose/edgepy/DGEList.py
, here counts is anp.array
an error occurs at lines 125-128. The issue arises becausecounts
is converted to a DataFrame, and the linescheck_range = (np.amin(y), np.nanmax(y))
ininmoose/edgepy/utils.py
do not result in a single value but rather a series.Steps to Reproduce:
pycombat_seq(counts.T, batch).T
using countsnp.array
Expected Behavior: The function should execute without errors, and
check_range
tuple should include single values in its entriesActual Behavior: The function throws an error because
check_range
results in a series instead of a single value.