r - 为什么 adgenet 的 find.clusters 不起作用?
问题描述
我试图找到不。使用 find.clusters 函数 od adegenet 对我的数据中的集群进行计数,但我一直遇到错误。
> gl.test
/// GENLIGHT OBJECT /////////
// 491 genotypes, 11,394 binary SNPs, size: 6.6 Mb
964418 (17.24 %) missing data
// Basic content
@gen: list of 491 SNPbin
// Optional content
@ind.names: 491 individual labels
@loc.names: 11394 locus labels
@chromosome: factor storing chromosomes of the SNPs
@position: integer storing positions of the SNPs
@other: a list containing: elements without names
grp <- find.clusters(gl.test, max.n.clust=40)
错误:
Choose the number PCs to retain (>=1): Error in if (n.pca >= N) warning("number of retained PCs of PCA is greater than N") :
missing value where TRUE/FALSE needed
Calls: find.clusters ... find.clusters.matrix -> find.clusters -> find.clusters.data.frame
解决方案
推荐阅读
- node.js - 如何在 NEST JS 中为特定/不同的请求方法处理多个中间件?
- aws-api-gateway - 是否可以通过 AWS API Gateway 对 AWS Step Function 进行同步调用?
- aws-api-gateway - 使用无服务器将 lambda 函数部署到 LocalStack 时无法使用 httpApi
- mongodb - SSL 和访问控制配置
- asp.net - asp.net core 3.1 未经授权的 401 重定向到未经授权的 razorpage 不起作用
- python - 为什么 .!entry> 在我输入数字时保存在条目小部件中?
- java - 有条件地在 s3 文件夹中插入对象
- javascript - CSS 和基本的 HTML 功能(如链接)在翻译后不起作用
- imagemagick - 当我们尝试将 .psd 图像转换为 png 时,我们需要很长时间。使用 Image Magic SDK
- firebase - firebase 部署:错误:文件路径/firestore.indexes.json 不存在