pySCENIC
pySCENIC copied to clipboard
auc bug
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
~/.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?:
Code run in CLI in ubuntu on HPC.