Closed BeardLi closed 4 years ago
Hi,
Did you run a trait or a diversification analysis with BAMM? If this was a trait analysis, then you need to specify that in getEventData(), with type = 'trait'
. The fact that you are only getting 5 samples from 90% of the posterior also makes me wonder if the BAMM run was not set up properly. You should be getting hundreds or thousands of posterior samples.
Hi, It's a diversification analysis. I was running a test, so there were only. 5 samples. I have add it to 500 samples, but same error happen again. I wonder how this "Error in getmrca" hanppens?
I think I would need to see the files myself to figure out what is going on. Can you send me the tree and event data file to pascal.title@stonybrook.edu? Then I'll see if I get the same error as you.
Please ensure the following returns FALSE
:
setwd("/data3/bamm")
tree <- read.tree("p55.tre")
x <- read.csv("event_data", header=TRUE, stringsAsFactors=FALSE)
anyNA(match(x$leftchild, tree$tip.label))
If not, this indicates a mismatch in tip labels present in the tree file and eventdata file passed to getEventData, in which case a different tree may have been used to generate the eventdata file.
I have sent the mail thanks a lot.
It returns TRUE, I'll try to fix my treefile. Thanks a lot.
I took a look at your files, and you have an issue with quotes. The tree you provided to BAMM must have had tip names wrapped in single quotes, whereas the tree file you sent me does not.
Hi, I deleted all quotes in my treefile, and it worked! Thanks for your help!!!
Hi, I ran into a trouble when I use getEventData to input my BAMM outputs: Here is my codes: And then, the output is:
I don't know what is the "getmrca".
Thank you for your patience.