Closed bobthacker closed 9 years ago
For EasyMode to really be "EASY" we need to automatically fix
I think it is OK to do all of these things for the user, but it would be great to also display some feedback on the screen like
Moved to arborwebapps
See the GoogleDrive folder "files that failed at Biosphere2" These are from Jenna, a microbiologist in Jonathan's lab at UC-Davis. The Kirr.csv file needed a header, so I fixed that. The Kirr.phy file contains singleton nodes. It draws the following error in EasyMode: "Analysis failed. Error in read.tree(text = input) : The tree has apparently singleton node(s): cannot read tree file. Reading Newick file aborted at tree no. 1"
For EasyMode to be easy, instead of just giving this error that there is a singleton node, the software should just fix the singleton node for the user:
library(phytools) phy<-read.newick(input) phy<-collapse.singles(phy) phy<-multi2di(phy)
(could also check minimum edge length) if (min(phy$edge.length) == 0) { phy$edge.length = phy$edge.length + 0.00001 }
because we really want
To fix all this for Jenna, I ran in R
Now the error in easy mode is
"Analysis failed. Error in make.treedata(tree, table) : No matching names found between data and tree"
This one is easier. The tree has underscores and the .csv does not. Change the .csv. A good error message here, so easily noticed and fixed.
Now the error in easy mode is
"Analysis failed. Error in check.tree(tree) : 'tree' must be ultrametric"
Now easyMode works, but 3 other issues came up