Cibiv / IQ-TREE

Efficient phylogenomic software by maximum likelihood
http://www.iqtree.org
GNU General Public License v2.0
184 stars 44 forks source link

Question : How to use the datation interval LSD2 feature #227

Open MaximePolicarpo opened 2 years ago

MaximePolicarpo commented 2 years ago

Hi !

I am trying to date a tree I made with IQ-TREE. I have three calibration dates with intervals. It is written in the iq-tree manual that LSD2 arguments can be provided using "--date-options"

Here is my DATE_FILE :

3 species1,species2 b(-446,-363) species2,species3 b(-220,-167) species4,species1 b(-349,-223)

Here is the command I launched and the error returned by IQ-tree :

iqtree -s alignment.aln -te alignment.treefile -m JTT+G4 --date-ci 100 -o "species5,species6" --date DATE_FILE --date-tip 0 ERROR: Line 1: Expecting floating-point number, but found "b(-446,-363)" instead

And I also tried to put the DATE_FILE in LSD2 options:

iqtree -s alignment.aln -te alignment.treefile -m JTT+G4 --date-ci 100 -o "species5,species6" --date-options "-d DATE_FILE" --date-tip 0 Both --date-root and --date-tip must be provided when --date file is absent

However, everything works fine with my first command line when i put single dates instead of intervals.

Thanks for any help provided !

Have a good day,

Maxime Policarpo