To reduce overall compositional heterogeneity across taxa, I often recode my protein alignments to dayhoff4 groups or SR4 (susko&roger, 4groups), using the nucleotide characters representing each group.
When I then use that as input for PhyloBayes (CAT or CAT-GTR), it accepts the alignment because it believes its dealing with a nucleotide alignment. And as far as I understand, it doesnt matter if you use a protein alignment or nucleotide alignment for the CAT or CAT-GTR model.
Now I would like to try out a mixture model from IQtree (C60, for instance), and I'm not sure whether its okay to use that on a recoded alignment. I'm guessing no, but I'm not sure.
Kind regards,
Joran
Dear Joran
There is currently no such "nucleotide" mixture model in iqtree, i.e. C60 is only valid for protein data.
However if you insist on using such model there is a way to specify it in iqtree. C60 consists of 60 aa frequency vectors. When you convert aa to nt as you described, you can also transform aa frequencies to nt frequencies, by summing up the aa freq belonging to the same nt character. Then specify such C60 transformed frequencies in a Nexus model file, see documentation on mixture models:
http://www.cibiv.at/software/iqtree/doc/Complex-Models/#mixture-models
and input it into iqtree via -mdef option. It may look something like this:
#nexus
begin sets;
frequency C60NT1= piA1 piC1 piG1 piT1;
frequency C60NT2= piA2 piC2 piG2 piT2;
frequency C60NT60= piA60 piC60 piG60 piT60;
end;
(here replace piA1,..., piT60 with the transformed frequencies explained above)
then run iqtree with command like:
iqtree -mdef this_model_file.nex -m C60NT ...
If you need more help let me know
Minh
--
You received this message because you are subscribed to the Google Groups "IQTREE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iqtree+un...@googlegroups.com.
To post to this group, send email to iqt...@googlegroups.com.
Visit this group at https://groups.google.com/group/iqtree.
For more options, visit https://groups.google.com/d/optout.
I have now created the nexus file, that looks like this (I attach the file to the post):
-------------
#nexus
begin models;
frequency C60NT1= 0.6671684132 0.0296031604 0.263873245 0.0393551815;
frequency C60NT2= 0.1276338907 0.0209812196 0.7927062299 0.0586786597;
frequency C60NT3= 0.0163962994 0.0051413956 0.0030074531 0.975454852;
...
frequency C60NT60= 0.0386456469 0.0058035261 0.0121187396 0.9434320874;
model C60SR4=POISSON+G+FMIX{C60NT1, C60NT2, C60NT3, C60NT4, C60NT5, C60NT6, C60NT7, C60NT8, C60NT9, C60NT10, C60NT11, C60NT12, C60NT13, C60NT14, C60NT15, C60NT16, C60NT17, C60NT18, C60NT19, C60NT20, C60NT21, C60NT22, C60NT23, C60NT24, C60NT25, C60NT26, C60NT27, C60NT28, C60NT29, C60NT30, C60NT31, C60NT32, C60NT33, C60NT34, C60NT35, C60NT36, C60NT37, C60NT38, C60NT39, C60NT40, C60NT41, C60NT42, C60NT43, C60NT44, C60NT45, C60NT46, C60NT47, C60NT48, C60NT49, C60NT50, C60NT51, C60NT52, C60NT53, C60NT54, C60NT55, C60NT56, C60NT57, C60NT58, C60NT59, C60NT60}+F;
end;
-------------
you can see the frequencies calculated from the C60 LG in the google sheet:
https://docs.google.com/spreadsheets/d/1hj0OSlSPKPgg02R4p_hZdH3O-pHEvWYj4Cj64ihWaxg/edit?usp=sharing
Everyone having this link should be able to edit, so go ahead if you would like to add other C-series. My model testing always pick C60 (which is no suprise knowing that in phylobayes it actually has 300-900 mixtures).
I get an error though that seems to be complaining about the name of the frequency vector:
-------------
Create initial parsimony tree by phylogenetic likelihood library (PLL)... 0.493 seconds
Reading model definition file /local/bin/Iqtree_C60sr4.nex ... 48 models and 274 frequency vectors loaded
Generating 1000 samples for ultrafast bootstrap (seed: 521544)...
Model C60SR4 is alias for POISSON+G+FMIX{C60NT1, C60NT2, C60NT3, C60NT4, C60NT5, C60NT6, C60NT7, C60NT8, C60NT9, C60NT10, C60NT11, C60NT12, C60NT13, C60NT14, C60NT15, C60NT16, C60NT17, C60NT18, C60NT19, C60NT20, C60NT21, C60NT22, C60NT23, C60NT24, C60NT25, C60NT26, C60NT27, C60NT28, C60NT29, C60NT30, C60NT31, C60NT32, C60NT33, C60NT34, C60NT35, C60NT36, C60NT37, C60NT38, C60NT39, C60NT40, C60NT41, C60NT42, C60NT43, C60NT44, C60NT45, C60NT46, C60NT47, C60NT48, C60NT49, C60NT50, C60NT51, C60NT52, C60NT53, C60NT54, C60NT55, C60NT56, C60NT57, C60NT58, C60NT59, C60NT60}+F
ERROR: Frequency mixture name not found C60NT2.
-------------
I am not sure why it says 48 models, since I only define one, and 274 frequency vectors when it should only be 60. Perhaps something is wrong with the formatting, although I tried to follow your example. It seems to be reading first vector fine but not the next one and I am not sure why. Something should be different in the new line separation...?
I have also tried model definition without '+F' but obviously this is not what the error is about so it does not make a difference.
thanks a lot for your helpful assistance!
Kasia