【问题标题】:Error: evaluation nested too deeply: infinite recursion / options(expressions=)? rhierbaps错误:评估嵌套太深:无限递归/选项(表达式=)?根茎
【发布时间】:2017-12-21 15:13:36
【问题描述】:

我正在尝试在一组 729 个菌株中在 R 中运行 rhierbaps,这是我正在使用的代码(与用于程序的示例中的代码完全相同):

#load data
fasta.rhierBAPS_Ef <- system.file("extdata", "Concatenated.fas", package = "rhierbaps")

#SNP Matrix
snp.matrix <- load_fasta(fasta.rhierBAPS_Ef)

#rhierBAPS
hb.results <- hierBAPS(snp.matrix, max.depth = 2, n.pops = 10, n.extra.rounds = Inf, 
                       quiet = TRUE)

当我这样做时得到错误:

Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Error during wrapup:

然后 Rstudio Blocks and aborts...

你能帮我解决这个问题吗?

【问题讨论】:

    标签: r


    【解决方案1】:

    您错误地指定:n.pops = 0 使用正整数作为上限,它会起作用。

    【讨论】:

    • 非常感谢 Jukka。我还发现我的计算机实际上缺少 RAM 来进行这些大分析,所以我在命令前配置了 --max.ppsize 为 50000,现在我可以运行脚本:hb.results
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多