[Release Note:] Pre-release of NS-Forest v4.0.
Dev version of NS-Forest v4.0
Follow the tutorial to get started.
Download 'NSForest_v4dot0_dev.py' and replace the version in the tutorial. Sample code below.
adata_median = preprocessing_medians(adata, cluster_header)
adata_median.varm["medians_" + cluster_header].stack().plot.hist(bins=30, title = 'cluster medians')
adata_median_binary = preprocessing_binary(adata_median, cluster_header, "medians_" + cluster_header)
adata_median_binary.varm["binary_scores_" + cluster_header].stack().plot.hist(bins=30, title='binary scores')
## make a copy of prepared adata
adata_prep = adata_median_binary.copy()
NSForest(adata_prep, cluster_header=cluster_header, n_trees=1000, n_genes_eval=6,
medians_header = "medians_" + cluster_header, binary_scores_header = "binary_scores_" + cluster_header,
gene_selection = "BinaryFirst_high", outputfilename="BinaryFirst_high")
Full Changelog: v3.9...v4.0_dev