Creating Final Loom File - TypeError: NoneType #373
Unanswered
Su870
asked this question in
* General SCENIC questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I get the following TypeError: 'NoneType' object is not subscriptable pyscenic when I tried creating the final loom file. Any thoughts?
f_final_loom = 'UCEC_scenic_integrated-output.loom'
lp.create(
filename = f_final_loom ,
layers=lf[:,:],
row_attrs=row_attrs,
col_attrs=col_attrs,
file_attrs=attrs
)
lf.close() # close original pyscenic loom file
TypeError Traceback (most recent call last)
/var/folders/c1/bsv5knxj5ydb391_z2w815c80000gn/T/ipykernel_13049/1222163512.py in
1 lp.create(
2 filename = f_final_loom ,
----> 3 layers=lf[:,:],
4 row_attrs=row_attrs,
5 col_attrs=col_attrs,
~/opt/anaconda3/lib/python3.9/site-packages/loompy/loompy.py in getitem(self, slice_)
208 if type(slice_) is not tuple:
209 raise ValueError("Slice must be a 2-tuple")
--> 210 return self.layers[""][slice_]
211
212 def setitem(self, slice_: Any, data: np.ndarray) -> None:
TypeError: 'NoneType' object is not subscriptable
Beta Was this translation helpful? Give feedback.
All reactions