m-orton / Evolutionary-Rates-Analysis-Pipeline

The purpose of this repository is to develop software pipelines in R that can perform large scale phylogenetics comparisons of various taxa found on the Barcode of Life Database (BOLD) API.
GNU General Public License v3.0
7 stars 1 forks source link

Error on line 1572 of Annelida branch #38

Closed jmay29 closed 7 years ago

jmay29 commented 7 years ago

So, I got this error on line 1572:

pValBinomialTitle <- foreach(i=1:length(pvalBinomialClass)) %do% paste("Binomial Test p-value:", round(pvalBinomialClass[i], digits = 4)) Error in paste("Binomial Test p-value:", round(pvalBinomialClass[i], digits = 4)) : task 1 failed - "non-numeric argument to mathematical function"

I seemed to have fixed it by changing pvalBinomialClass[i] to pvalBinomialClass[[i]] as pvalBinomialClass[i] is of the list class and pvalBinomialClass[[i]] is of numeric class. Please let me know if you guys come across the same error.

jmay29 commented 7 years ago

The same thing would apply to line 1574:

pvalWilcoxonTitle <- foreach(i=1:length(pvalBinomialClass)) %do% paste("Wilcoxon Test p-value:", round(pvalWilcoxonClass[i], digits = 4)) Error in paste("Wilcoxon Test p-value:", round(pvalWilcoxonClass[i], digits = 4)) : task 1 failed - "non-numeric argument to mathematical function"

m-orton commented 7 years ago

Thanks Jacqueline, I'll let you know if I get the same error.

m-orton commented 7 years ago

Hi Jacqueline, I got the same error and was able to fix it by using your suggestion of changing to pvalBinomialClass[[i]] and pvalWilcoxonClass[[i]].

jmay29 commented 7 years ago

Ok awesome!! I guess we can close this issue then?

m-orton commented 7 years ago

Agreed, issue is fixed, closing.