Wedge-lab / dpclust

Dirichlet Process based methods for subclonal reconstruction of tumours
GNU Affero General Public License v3.0
28 stars 16 forks source link

generate_cluster_ordering on multisamples #15

Closed davidwedge closed 1 year ago

davidwedge commented 2 years ago

generate_cluster_ordering = TRUE causes an error if run on multisample DPClust, as it requires a file that is not generated in multisample runs. The likely fix is that if calc_cluster_order_probs is called in a multisample run it returns a warning but doesn't run.

Avramis commented 1 year ago

@MiaoGaoUK could make the suggested edit and test

MiaoGaoUK commented 1 year ago

Add a condition in DirichletProcessClustering.R file #459 to stop the code when the parameter is set wrong. Test done.