RAxML-NG - how does it model indels? show likelihood per site? Q matrix with elements = 0

121 views
Skip to first unread message

Miguel Arenas

unread,
May 31, 2022, 8:06:38 AM5/31/22
to raxml
Dear Alexey and coauthors of RAxML-NG,

This is Miguel Arenas, from the U of Vigo.
Congrats for RAxML-NG, it is really useful!

We found a few technical questions.
1. We were wondering how the program considers indels, does it apply any model of indel evolution by default? I could not find any info about this in the paper neither in the manual.
2. Another question is if the program can show the best likelihood per site (in addition to the global likelihood), we are working with protein sequences and that could be interesting.
3. Finally, we noted that if we specify an input Q matrix where an element of the matrix (a relative rate of change among two aminoacids) = 0 the program does not run. Maybe it is correct, but why is that?
Thanks!

All the best,
Miguel

Alexey Kozlov

unread,
Jun 1, 2022, 3:34:57 PM6/1/22
to ra...@googlegroups.com
Dear Miguel,

> This is Miguel Arenas, from the U of Vigo.
> Congrats for RAxML-NG, it is really useful!

thank you!

> We found a few technical questions.
> 1. We were wondering how the program considers indels, does it apply any model of indel evolution by
> default? I could not find any info about this in the paper neither in the manual.

RAxML-NG as well as RAxML and AFAIK other "standard" ML inference programs do not have any specific
model for indel evolution. Instead, indels are just treated as missing data (since both appear as
gaps in the MSA).

> 2. Another question is if the program can show the best likelihood per site (in addition to the
> global likelihood), we are working with protein sequences and that could be interesting.

it can print per-site log-likelihood scores computed after global parameter/brlen optimization on a
given tree:

raxml-ng --sitelh --msa ali.phy --tree best.tre --model HKY --prefix siteLH

is this what you are looking for?

> 3. Finally, we noted that if we specify an input Q matrix where an element of the matrix (a relative
> rate of change among two aminoacids) = 0 the program does not run. Maybe it is correct, but why is
> that?

Hm generally it should be allowed, although it could lead to numerical issues sometimes.

How do you specify the matrix and what error did you get?

Hope this helps,
Alexey
Message has been deleted
Message has been deleted

Miguel Arenas

unread,
Jun 5, 2022, 3:23:54 PM6/5/22
to raxml
Dear Alexey,

Many thanks for your reply!
The argument --sitelh was not recognized,
$ ./raxml-ng --sitelh --msa 1IU4_A_mafft.fasta_OneLine.1.fasta.fas --tree 1IU4_A_mafft.fasta_OneLine.1.fasta.fas.raxml.bestTree --model partitionsSite.txt --prefix siteLH
./raxml-ng: unrecognized option '--sitelh'
$


Best,
Miguel

Alexey Kozlov

unread,
Jun 7, 2022, 11:52:32 AM6/7/22
to ra...@googlegroups.com
Dear Miguel,

please make sure you are using the latest version of raxml-ng.
The '--sitelh' option was added in v1.0

Best,
Alexey

On 05.06.22 21:23, Miguel Arenas wrote:
> Dear Alexey,
>
> Many thanks for your reply!
> The argument --sitelh was not recognized,
> /$ ./raxml-ng --sitelh --msa 1IU4_A_mafft.fasta_OneLine.1.fasta.fas --tree
> 1IU4_A_mafft.fasta_OneLine.1.fasta.fas.raxml.bestTree --model partitionsSite.txt --prefix siteLH
> ./raxml-ng: unrecognized option '--sitelh'
> $/
> --
> You received this message because you are subscribed to the Google Groups "raxml" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> raxml+un...@googlegroups.com <mailto:raxml+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/raxml/78c331f5-3a45-4077-8b23-35683edebdb0n%40googlegroups.com
> <https://groups.google.com/d/msgid/raxml/78c331f5-3a45-4077-8b23-35683edebdb0n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages