You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't save h5mu from Scirpy processed gex+bcr+tcr data if I copy airr into obs (i.e. tdata.obs = tdata.obs.join(ir.get.airr(tdata, tdata.obsm['airr'].fields))).
Unlike in #427 , I am on 0.13 and still suffer from the bug.
TypeError: Can't implicitly convert non-string objects to strings
Above error raised while writing key 'VJ_1_germline_alignment' of <class 'h5py._hl.group.Group'> to /
(it does this with many other columns, including all _call, _cigar columns)
What else I've tried
Changing columns to categoricals
for mod in mdata.mod.keys():
for col in mdata[mod].obs.columns:
if re.findall(r'(V(?:D)?J_\d_\w_(?:call|cigar))', col):
mdata[mod].obs[col] = mdata[mod].obs[col].astype('category')
print(mod,':',col, sep='')
mdata.update()
Expected behaviour
Save the file without problems
System
OS: Linux
Python version 3.9.16
Versions of libraries involved [Muon 0.1.5, Scirpy 0.13.0, Scanpy 1.9.3]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
We obviously need a better solution than this. I'll check if this should be solved on the AnnData side e.g. by an automatic conversion. Otherwise the scirpy.get.airr function could deal with that.
Describe the bug
Can't save h5mu from Scirpy processed gex+bcr+tcr data if I copy airr into obs (i.e.
tdata.obs = tdata.obs.join(ir.get.airr(tdata, tdata.obsm['airr'].fields))
).Unlike in #427 , I am on 0.13 and still suffer from the bug.
(it does this with many other columns, including all _call, _cigar columns)
To Reproduce
What else I've tried
Changing columns to categoricals
Expected behaviour
Save the file without problems
System
OS: Linux
Python version 3.9.16
Versions of libraries involved [Muon 0.1.5, Scirpy 0.13.0, Scanpy 1.9.3]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: