Closed likejie closed 3 years ago
Searched around and found the problem is SeuratDisk output h5ad file, and when read in by scanpy, this:
adata.__dict__['_raw'].__dict__['_var']
has a column named _index. But python has it reserved.
One solution is to rename _index
to something else such as features
:
adata.__dict__['_raw'].__dict__['_var'] = adata.__dict__['_raw'].__dict__['_var'].rename(columns={'_index': 'features'})
If cellxgene works, VIP should work as well, since VIP didn't use scanpy to read the h5ad directly.
use library(sceasy) for conversion,
If we are using Seurat v4 and SeuratDisk to export h5ad file, it seems that cellxgene basic still works fine but cellxgene VIP came up as blank.