OLGenie_bootstrap.R error
bio-unach opened this issue · 4 comments
Hello guys.
Thank you for OLGenie, great tool.
I have this error and I really don't understand what happens.
When I ran:
Rscript OLGenie_bootstrap.R Cluster_0_codon_results.txt 6 10000 37 > Cluster_0_codon_p_value_results.out
It says:
Error in sum(as.vector(codon_results[, paste0(numerator, "_diffs")]), :
invalid 'type' (list) of argument
Calls: dNdS_diff_boot_fun
Execution halted
I think that could be related with some library. I appreciate you help.
Best regards.
Thanks very much for the message, UNACH!
Sorry for this error — it appears to be backwards-incompatibility with R version 4.2 versus <= 4.1. Are you indeed using R 4.2? At any rate, would you mind attaching an example input file so I can debug/rewrite the script?
With gratitude,
Chase
Greetings, Oscar!
I have updated the bootstrapping script for R version 4.2. I have tested it line-by-line; however, I am holding off on updating my command line R to 4.2, so I have not had a chance to make sure it works at the command line. Would you mind downloading the new version, giving it a try at the command line, and letting me know?
Many thanks!
Chase