kuanrongchan / STAGES

32 stars 8 forks source link

Pre-Processing error #25

Open Tuffley1806 opened 3 months ago

Tuffley1806 commented 3 months ago

Dear STAGES Team,

I've tried to run my log2 RNA Seq Data set and repeatedly ran into a preprocessing error as listed below. Could you help me run this data set?

Best, Anne

TypeError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 589, in _run_script exec(code, module.dict) File "/mount/src/stages/pages/02_Pre-processing.py", line 92, in exprdict = {k:v.groupby(v.index).mean() for k,v in exprdict.items()} File "/mount/src/stages/pages/02_Pre-processing.py", line 92, in exprdict = {k:v.groupby(v.index).mean() for k,v in exprdict.items()} File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/core/groupby/groupby.py", line 2452, in mean result = self._cython_agg_general( File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/core/groupby/groupby.py", line 1998, in _cython_agg_general new_mgr = data.grouped_reduce(array_func) File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 1469, in grouped_reduce applied = sb.apply(func) File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/core/internals/blocks.py", line 393, in apply result = func(self.values, **kwargs) File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/core/groupby/groupby.py", line 1995, in array_func result = self._agg_py_fallback(how, values, ndim=data.ndim, alt=alt) File "/home/adminuser/venv/lib/python3.9/site-packages/pandas/core/groupby/groupby.py", line 1946, in _agg_py_fallback raise type(err)(msg) from err

kohcl17 commented 3 months ago

Hi Anne,

Could I just check if you still have this issue?

If so, do you mind checking if your first column are your gene names and the rest of the dataset are numeric values?

Best regards, Clara