R:光谱双簇每次运行时都会产生不同的簇

发布于 2025-02-04 20:03:19 字数 371 浏览 2 评论 0原文

我正在尝试在蛋白质浓度和生活方式特征产生的相关矩阵上运行光谱双簇(使用r上的biclust封装)。但是,当我运行代码时,每次调用该函数时,我都会获得不同的结果。

例如,一个运行群群,有255行与14列配对,第二次运行的群集一组,346行与28列配对。这应该发生还是我想错了? 如果我做错了什么,我该如何解决此问题。

SpectralBiclusters = spectral(transpose_res2,numberOfEigenvalues=6,minr=2, minc=2, withinVar=1, n_clusters = NULL, n_best = 3)

另外,供参考,transpose_res2是与蛋白作为行和特征作为列的相关矩阵。

I am trying to run spectral biclustering (using the biclust package on R) on a correlation matrix I generated from protein concentration and lifestyle traits. When I run the code, however, I get different results for each time I call the function.

For instance, one run had cluster one with 255 rows paired with 14 columns, and the second run had cluster one with 346 rows paired with 28 columns. Is this supposed to happen or am I dooing something wrong?
If I am doing something wrong, how can I fix this problem.

SpectralBiclusters = spectral(transpose_res2,numberOfEigenvalues=6,minr=2, minc=2, withinVar=1, n_clusters = NULL, n_best = 3)

Also for reference, transpose_res2 is the correlation matrix with the proteins as the rows and the traits as the columns.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文