Open SummerColdWind opened 10 months ago
When using the select_variable_genes method on an AnnData object, if adata.X is a sparse matrix, an error will be raised. Therefore, we must first execute:adata.X = adata.X.toarray()
select_variable_genes
adata.X
adata.X = adata.X.toarray()
When using the
select_variable_genes
method on an AnnData object, ifadata.X
is a sparse matrix, an error will be raised. Therefore, we must first execute:adata.X = adata.X.toarray()