when I ran these code which followed Single-cell best practices:
analytic_pearson = sc.experimental.pp.normalize_pearson_residuals(adata, inplace = False)
adata.layers["analytic_pearson_residuals"] = csr_matrix(analytic_pearson["X"])
p2 = sns.histplot(adata.layers["analytic_pearson_residuals"].sum(1), bins = 100, kde = False, ax = axes[1])
it appears this error: ValueError: No objects to concatenate.
I am running seaborn version 0.12.2 and scanpy version 1.9.3
Can anyone please help me with this issue?
Thank you so much!