Open kbaltazart opened 6 months ago
I am having a similar issue - every node has the same ancestral sequence with posterior probability of 1 at each site, and the ancestral sequence is always identical to the last sequence in my nexus data file. Any help is greatly appreciated.
partition ancstates = 1: 1-.;
lset applyto = (all) rates=invgamma;
prset aamodelpr=mixed;
constraint ; [several constraints here]
outgroup 155;
prset topologypr=constraints([list of constraints]);
report applyto = (1) ancstates = yes;
mcmc ngen=800000 samplefreq=500 printfreq=500 Diagnfreq=5000 temp=0.04 startparams=reset starttree=random;
sump;
sumt contype=allcompat;
end;
I am having a similar issue. I am setting my parameters based on example 2 in this repository: https://github.com/nylander/Parse_MrBayes_Ancestral_States. When I constrain my dataset to obtain the ancestral sequence for a specific node, I get the same sequence for two different nodes, and the sequences do not make sense for the extant proteins in their respective clades. My parameters are below:
begin mrbayes;
set autoclose=yes nowarn=yes;
prset aamodelpr = mixed;
Taxset MyTaxset = 10 11;
Constraint MyConstraint = MyTaxset;
Prset topologypr = constraints(MyConstraint);
Report ancstates=yes;
mcmc nruns=1 nchains=1 ngen=50000 samplefreq = 1000;
sump;
end;
I was able to bypass the issue when I moved to the Windows version.
I try to reconstruct ancestral sequence of protein. I use the parameters under (i cut protein for you to see better) :
begin data; dimensions ntax=4 nchar=1057; format datatype=protein missing=? gap=-;
end;
begin mrbayes; outgroup Trichechus_manatus; prset aamodelpr=mixed; constraint Elephantiforme -1 = 1 2 3; constraint Elephantidae -1 = 1 2; prset topologypr = constraints(Elephantidae, Elephantiforme); report ancstates=yes; mcmc nchains = 4 ngen=30000; sumt; sump; end;
The program run and give me an output p.stats. However, the ancestral sequence for both clade is the same, with posterior probability of 1 for an amino-acid for a given site. The thing which is very strange is the fact that the ancestral sequence corresponds always to the last sequence in my matrice (even if it's the outgroup or not). I already tried to swap individuals, I have always an ancestral sequence corresponding to the last individual sequence.
Thank you for help.