Open brainfo opened 1 year ago
@jlause think this could interest you?
已收到,谢谢。
@brainfo I'm afraid that we only speak English.
@Zethson I suspect it's an automatic response via an email service in China. "Received, thanks"
@brainfo I'm afraid that we only speak English.
Hi sorry and indeed that's an automatic reply from the email service I just changed the email address so this would not be a problem later.
To add one more problem encountered when writing out anndata object: When the anndata has 'predicted_doublet' in obs annotation from sc.external.pp.scrublet, the boolean values could not be implicitly converted to strings so that gives errors:
TypeError: Can't implicitly convert non-string objects to strings
Above error raised while writing key 'predicted_doublet' of <class 'h5py._hl.group.Group'> to /
Users can map the values like this but would it be better to have the implicit conversion while read/write anndatas?
anndata.obs['predicted_doublet'] = anndata.obs['predicted_doublet'].map({True: 'True', False: 'False'})
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Minimal code sample (that we can copy&paste without having any data)
Write any anndata with pearson residuals in uns
The pearson_residual_df looks like this, with 38291 rows (obs) and 5000 columns (features) :
Versions