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

Solve issue #1 (TypeError: 'NoneType' object is not callable) #2

Closed e-sollier closed 5 years ago

e-sollier commented 5 years ago

A tiny change to solve the issue described in #1: I replaced the line

f1_store_1D_df = pd.DataFrame.from_dict(f1_store_1D, orient='index', dtype=str)

with

f1_store_1D_df = pd.DataFrame.from_dict(f1_store_1D, orient='index')

It avoids casting f-measure to str, so that the 50 highest f-measures for each cluster can be properly identified. Otherwise, the script crashes before producing the final output NSForest_v2_topResults.csv.