neherlab / treetime

Maximum likelihood inference of time stamped phylogenies and ancestral reconstruction
MIT License
225 stars 55 forks source link

homoplasy error #144

Closed ahmedmagds closed 2 years ago

ahmedmagds commented 3 years ago

I keep getting the error below. Any clue? treetime homoplasy --aln homoplasy_25807.fna --tree Multifasta_25807aligned.nwk --verbose 6

0.00 -TreeAnc: set-up read alignment from file homoplasy_25807.fna with 25807 sequences of length 70 read tree from file Multifasta_25807aligned.nwk with 25807 leaves

inferring ancestral sequences...

230.80 WARNING: Previous versions of TreeTime (<0.7.0) RECONSTRUCTED sequences of tips at positions with AMBIGUOUS bases. This resulted in unexpected behavior is some cases and is no longer done by default. If you want to replace those ambiguous sites with their most likely state, rerun with reconstruct_tip_states=True or --reconstruct-tip-states. ...done.

The TOTAL tree length is 7.131e-01 and 2000 mutations were observed. Of these 2000 mutations,

Of the 70 positions in the genome,

ahmedmagds commented 3 years ago

@rneher

rneher commented 3 years ago

Thanks for flagging this. This is indeed a problem in the homoplasy script that occurs when one site is mutated very often. I just pushed a commit that should fix it. https://github.com/neherlab/treetime/commit/f53f678a487ac5efa803bb39386b62260f1195f2