pySCENIC icon indicating copy to clipboard operation
pySCENIC copied to clipboard

auc bug

Open AnjaliS1 opened this issue 8 months ago • 1 comments

Hi, I have used the CLI version of pyscenic. Everything appears to have run successfully but then I get this error with this code:

import json import zlib import base64

collect SCENIC AUCell output

lf = lp.connect( f_pyscenic_output, mode='r+', validate=False ) auc_mtx = pd.DataFrame( lf.ca.RegulonsAUC, index=lf.ca.CellID) lf.close()


KeyError Traceback (most recent call last) ~/.local/lib/python3.8/site-packages/loompy/attribute_manager.py in getattr(self, name) 114 try: --> 115 vals = self.dict["storage"][name] 116 if vals is None:

KeyError: 'RegulonsAUC'

During handling of the above exception, another exception occurred:

AttributeError Traceback (most recent call last) /tmp/ipykernel_20211/3487089691.py in 5 # collect SCENIC AUCell output 6 lf = lp.connect( f_pyscenic_output, mode='r+', validate=False ) ----> 7 auc_mtx = pd.DataFrame( lf.ca.RegulonsAUC, index=lf.ca.CellID) 8 lf.close()

~/.local/lib/python3.8/site-packages/loompy/attribute_manager.py in getattr(self, name) 121 return vals 122 except KeyError: --> 123 raise AttributeError(f"'{type(self)}' object has no attribute '{name}'") 124 125 def setitem(self, name: str, val: np.ndarray) -> None:

AttributeError: '<class 'loompy.attribute_manager.AttributeManager'>' object has no attribute 'RegulonsAUC'

Is this perhaps due to my file structure?: image

Code run in CLI in ubuntu on HPC.

AnjaliS1 avatar Dec 10 '23 23:12 AnjaliS1