ZJUFanLab / scRank

A computational method to rank and infer drug-responsive cell population towards in-silico drug perturbation using a target-perturbed gene regulatory network (tpGRN) for single-cell transcriptomic data
GNU General Public License v3.0
40 stars 4 forks source link

Error about init_mod(obj) #12

Open codedic opened 3 days ago

codedic commented 3 days ago

Hi, sorry to disturb When I run obj <- init_mod(obj), I get this error 微信图片_20241125094903

[1] "No module detected" Error in stats::cutree(hclust_out, length(unique(gene_groups)) - 1) : elements of 'k' must be between 1 and 13 I don't know how to fix it

Lee0498 commented 10 hours ago

Hi @codedic. The error that occurs may be due to the default min_ModuleSize parameter in the init_mod function is set too small for your dataset, which causes the Dynamic cutree to fail. You can try increasing the min_ModuleSize parameter to a larger value (like 30) and then rerun the analysis. This should resolve the issue.