Error when applying characterMapTree() function

99 views
Skip to first unread message

Jan Bührer

unread,
Feb 26, 2024, 5:57:36 AM2/26/24
to revbayes-users

Hi everyone,

I'm currently using revbayes v1.2.2 via the container runtime Singularity. I've successfully created a ClaSSE model, conducted the MCMC analysis, and summarized the ancestral states using the ancestralStateTree() function without encountering any issues.

However,  I've encountered a problem while attempting to generate SIMMAP using the characterMapTree() function. Every time I run it, I receive the following error message:

std::bad_alloc
Error: Problem processing line 296 in file "/home/buehrerj/gentiana/testV.Rev"

The error message is pointing at the line in my script where the characterMapTree function is used.

characterMapTree(tree = observed_phylogeny,
                ancestral_state_trace_vector=AncStateTrace_stoch,
                character_file=out_fp + "character.tree",
                posterior_file=out_fp+"MAP.tree",  
                reconstruction="marginal")

Has anyone else faced a similar problem and found a solution? As a newcomer to revbayes, I would greatly appreciate any advice or guidance on resolving this issue.

Thank you in advance for your assistance!

Best regards, 

Jan

Jan Bührer

unread,
Feb 26, 2024, 9:21:40 AM2/26/24
to revbayes-users
I forgot to mention that I am using dnGLHBDSP() for constructing the stochastic node. I believe it's worth noting, as it differs from the ClaSSE tutorial.

Hong-Wun Chen (Hong-Wun Chen)

unread,
Apr 18, 2024, 9:23:35 PM4/18/24
to revbayes-users
I had exactly the same error when I ran the characterMapTree function.

jane...@gmail.com 在 2024年2月26日 星期一晚上10:21:40 [UTC+8] 的信中寫道:

Jan Bührer

unread,
May 20, 2024, 4:13:27 AM5/20/24
to revbayes-users
It works for me when you define a filename to store the shift_prob_file. Somehow the default = NULL does not work properly.
Reply all
Reply to author
Forward
0 new messages