...
- Logger: each time a sample is collected, the program prints out the Posterior value, current ESS (Effective Sample Size) based on the posterior values, likelihood value, prior value, current ESS based on the prior values, and the sampled phylogenetic network sampled.
- Summarization: the program prints out the chain length, burn-in length, sample frequency and the overall acceptance rate of proposals.
- Operations: the usage and the acceptance rate for each operation.
- Topologies: the MAP (Maximum A Posterior) topology is given. For The 95% credible set: For each unique topology in the 95% credible set, the network with the maximum posterior value and the averaged (branch lengths and inheritance probabilities) network are printed out. The topologies are ranked on their posterior probabilities.
- Run time: the elapsed time.
Output of the second example
----------------------- Logger ----------------------- Iteration Iteration; Posterior; ESS; Likelihood; Prior; ESS; #Reticulation 0; - 273632. 2903031804; 0.00000; - 273226. 2903031804; - 46.00000; 0.00000; 0; ( TaBC:1.0,(F:1.0,( TaAG:1.0, TaDK:1.0):1.0):1.0); 1; - 246630. 1133867945; 0.00000; - 246124. 9492636941; - 46. 1641131004; 0.00000; 0; (( TaB:0.3961637257713907,(TaA(F:1. 9334838641021195100296825380626, TaDG: 13. 6038362742286094091462635493304):0. 23062827100884262);0672071335563177,C:1.2631834608546109):0.022439620222693815,K:0.7654486703017418); ...... 189; - 244139. 0415423243; 25. 9352400000; - 243024. 0338851469; - 1114. 0076771774; 25. 7329900000; 10; ( ((TaDC: 01. 09597337108498416303229359865713,( TaBG: 0.23136218040818857)I2#H1:0.3566653185047678::0.3491095120667689)I3:0.868706329833222,TaA1.184262389767834,(F:9.355326885355721,K:1. 93129925535170929913949707859038) I1I0:0. 6058432353787028,I2#H18785013943118355)I3:0. 6744658622739422::0.6508904879332311)I0005027219859507291)I2; 1910; - 243847. 8145901271; 36. 1210800000; - 242823. 9633175691; - 923. 8512925580; 36. 0635000000; 1; (((( TaDG:0. 97120422392005066775006643112376) I3#H1I1#H1:0. 11593455786736508:10254403746151251::0.6222138281679854,(K:0. 3709418852580564,TaA40305290671104776,F:11.774054935191478)I3:1. 6657696579827430127444936379693) I1I4:0. 9242235576727479,(TaB11119651081773953,C:0.6245266587065907)I2:0. 502734061608575424534630112752273, I3#H1I1#H1:0. 124100678800265146332472675472998::0. 6290581147419436)I2:0.32269541431429016)I0;20; -2442.52537; 3.71247; -2430.97186; -11.55351; 3.29413; 1; ((TaA:0.407024316728807,(TaD:0.08498134125891532)I3#H1:0.1385571192167834::0.3614459570126758)I1:1.8568299946014093,(TaB:0.42061630776567865,I3#H1:1.0672749770829797::0.6385540429873242)I2:0.3889481921313129) 3777861718320146)I0; ----------------------- Summarization: ----------------------- Burn-in = 100005000, Chain length = 2000010000, Sample size = 105 Acceptance rate = 0. 5293062080 --------------- Operations --------------- Operation:Move-Head; Used: 2503196; Accepted: 035 ACrate:0. 017857142857142858 Operation:Change-Length; Used: 95145782; Accepted: 87645628 ACrate:0. 9211688038679849733656174334141 Operation:Add-Reticulation; Used: 10492; Accepted:1 ACrate:0. 009615384615384616010869565217391304 Operation:Flip-Reticulation; Used: 2572191; Accepted: 31444 ACrate:0. 1220839813374805723036649214659685 Operation:Change-Probability; Used: 2339172; Accepted: 1482165 ACrate:0. 63360410431808479593023255813954 Operation:Move-Tail; Used: 28643564; Accepted: 2332 ACrate: 60. 983240223463687E-40931537598204265 Operation:Delete-Reticulation ; Used:104; Accepted:23 ACrate:0.22115384615384615; Used:3; Accepted:3 ACrate:1.0
Overall MAP = -39.13178296704008 (((G:1.8467353971326255,F:3.669429912707025)I4:0.72972613976057,C:0.7672463997220461)I0:0.14233512944191162,K:7.34631035390478)I3; -------------- - Topologies -95% credible set of topologies: -------------- Overall MAP = -2437.0654296232783 ((TaB:0.561805846080817)I2#H1:0.46079502961747665::0.5721872707642428,(TaA:0.8950782820984362,(I2#H1:0.3411560735694928::0.4278127292357572,TaD:0.006727870085083132)I3:0.5352165283781162)I1:0.5975616454139091)I0; Rank = 0; Size = 5; Percent = 0.5; MAP = -2437.1534368461857:(((TaD:0.3698584300172657)I3#H1:0.5289684026069202::0.4412419361674995,TaA:0.7616303047346242)I1:0.7750966068147521,(I3#H1:0.1429345953478124::0.5587580638325005,TaB:0.4229104875916929)I2:0.3596176393163555)I0; Ave=-2438.818599313804; ((TaB:0.4160163591812,(TaD:0.3919469161549564)I3#H1:0.31796822920332624::0.47841193003273014)I2:0.3651396905586732,(TaA:0.8638161723172626,I3#H1:0.4573559657851387::0.5215880699672699)I1:1.1104505168595664)I0; Rank = 0; Size = 2; Percent = 40.00; MAP = -39.23243337560144:(C:1.303229359865713,(G:1.184262389767834,(F:9.355326885355721,K:1.9913949707859038)I0:0.8785013943118355)I3:0.005027219859507291)I2; Ave=-39.25394715434493; (C:1.20916762172346,(G:2.057607023787008,(K:4.61838854181666,F:6.605842763421295)I0:0.5911795016873735)I4:0.1657841343330578)I3; Rank = 1; Size = 1; Percent = 20.00; MAP = -47.01271365298103:((((G:0.6775006643112376)I1#H1:0.10254403746151251::0.6222138281679854,(K:0.40305290671104776,F:11.774054935191478)I3:1.0127444936379693)I4:0.11119651081773953,C:0.6245266587065907)I2:0.24534630112752273,I1#H1:0.6332472675472998::0.3777861718320146)I0; Ave=-47.01271365298103; ((G:0.6775006643112376)I1#H1:0.6332472675472998::0.3777861718320146,(C:0.6245266587065907,((F:11.774054935191478,K:0.40305290671104776)I3:1.0127444936379693,I1#H1:0.10254403746151251::0.6222138281679854)I4:0.11119651081773953)I2:0.24534630112752273)I0; Rank = 2; Size = 1; Percent = 20.00; MAP = -39.13178296704008:(((G:1.8467353971326255,F:3.669429912707025)I4:0.72972613976057,C:0.7672463997220461)I0:0.14233512944191162,K:7.34631035390478)I3; Ave=-39.13178296704008; (K:7.34631035390478,(C:0.7672463997220461,(F:3.669429912707025,G:1.8467353971326255)I4:0.72972613976057)I0:0.14233512944191162)I3; Rank = 3; Size = 1; Percent = 20.00; MAP = -40.2382981193348:(((F:7.823288510084807,K:6.50888387662072)I0:0.32861454580215427,C:0.8862007905628368)I4:0.1556168196177095,G:1.218111399301718)I3; Ave=-40.2382981193348; (G:1.218111399301718,(C:0.8862007905628368,(K:6.50888387662072,F:7.823288510084807)I0:0.32861454580215427)I4:0.1556168196177095)I3; Total elapsed time : 31.53400 Total elapsed time : 19.42900s |
Summarization
- Topologies: the samples (samples from burn-in period are excluded) from all the files are combined. The topologies are ranked on their posterior probabilities. Only the topologies in the 95% credible set are printed out. The first topology is MPP (maximum posterior probability) topology.
- PSRF (Potential Scale Reduction Factor): The PSRF values of posterior, likelihood and prior are calculated respectively. A PSRF value indicates good mixing when it approaches 1.0.
- Sojourns: a method to evaluate convergence/mixing. 'Sojourn' is a consecutive series of samples in which only the topology of interest was found. For each file, we summarize the frequency, the posterior probability, the number of sojourns, and the max and average length of sojourns for each topology in the 95% credible set. Ideally the number of sojourns is large while the length of sojourns is small -- the ability to leave and then return quickly and repeatedly to the same topology suggests good mixing with respect to topologies.
- SRQ (Scaled Regeneration Quantile) Plot: a method to evaluate convergence/mixing via topologies. Let Ti be the number of sampled MPP topology in the first i iteration of the stationary phase. For each file, we extract <i/n, Ti/Tn> for every i in 1...n into <x,y>. The slope of <x,y> in an SRQ plot should ideally be close to the posterior probability of MPP. Departures from this indicate that at some points the chain was on a trajectory that should have led to a different final posterior probability.
- Trace Plot: a method to evaluate convergence/mixing via posterior values. For each file, we extract a list of posterior values from the sampling phase. The format is compatible with Matlab and Python.
---------------- Topologies ---------------- PosteriorProbability Topology 0.4500 ((TaB:0.2658858620952823)I2#H1:0.7341141379047177::0.8708100650901477,(TaA:1.0,(TaD:0.32466899225557677,I2#H1:1.3465736635156926::0.1291899349098523)I3:2.4002600314073748)I1:0.19747493612759992)I0; ---------------- Sojourn ---------------- ---------------- SRQ Plot ---------------- y0 = [-2736.2903,-2487.17354,-2464.78381,-2465.97101,-2452.65531,-2443.28357,-2439.46916,-2441.01877,-2439.93589,-2442.0554,]; y1 = [-2736.2903,-2469.68094,-2438.08212,-2438.52812,-2439.02494,-2438.4918,-2439.33072,-2438.70721,-2438.68125,-2438.68995,]; |
...