美文网首页
RunPCA时遇到error in irlba(A = t(x

RunPCA时遇到error in irlba(A = t(x

作者: 木舟笔记 | 来源:发表于2021-01-12 10:08 被阅读0次

    > pbmc <- RunPCA(pbmc, features = VariableFeatures(object = pbmc))

    Error in irlba(A = t(x = object), nv = npcs, ...) : max(nu, nv) must be strictly less than min(nrow(A), ncol(A))        

    简单来说就是你的细胞数小于50。
    npcs的选择是默认为50。PC当然要小于矩阵的行数或列数中的最小值。所以只需修改默认值即可。

    解决方案:

    pbmc <- RunPCA(pbmc, npcs = 33(填“细胞数-1”),features = VariableFeatures(object = pbmc))

    相关文章

      网友评论

          本文标题:RunPCA时遇到error in irlba(A = t(x

          本文链接:https://www.haomeiwen.com/subject/hmyjaktx.html