JCVenterInstitute / NSForest

A machine learning method for the discovery of the minimum marker gene combinations for cell type identification from single-cell RNA sequencing
MIT License
53 stars 20 forks source link

Shape of passed values is (3474, 1), indices imply (3474, 33514) #11

Closed ronghui1992 closed 1 month ago

ronghui1992 commented 2 years ago

Dear author,

I test the latest version and get this error. Is that because the number of genes exceed the limitation? adata = sc.read_h5ad("***.h5ad") adata.obs['anno2'] = adata.obs['anno2'].astype('category') adata_markers = NS_Forest(adata, clusterLabelcolumnHeader = "anno2")

yunzhang813 commented 1 month ago

Thanks of the ticket. Code refactored in v4.0.