Pairwise distance matrix from RAxML?

40 views
Skip to first unread message

Mariana Meneguzzi

unread,
Feb 7, 2025, 1:02:01 PMFeb 7
to raxml
Dear Alexandros, 

I have a basic question: Does the program provide a pairwise nucleotide distance matrix? 
My goal is to use the matrix to perform an ordination plot. 

I may have overlooked this information - apologies if so.
 Thank you for your time!
Mariana 

Grimm

unread,
Feb 10, 2025, 3:17:17 AMFeb 10
to raxml
Hi Mariana,

classic RAxML8 can export a ML-model based and optimised distance matrix using the MSA and a guide tree but it comes in a non-standard list format:
taxon1 taxon2 distance
taxon1 taxon3 distance
taxon1 taxon4 distance
...

which you have to parse yourself into a distance matrix.

Command is  -f x, the tree can be read in with -t, e.g.
raxmlHPC -s Matrix.epf -m GTRGAMMA -f x -t RAxML_bestTree    — without partitioning scheme
raxmlHPC -s Matrix.epf -m GTRGAMMA -f x -t RAxML_bestTree -q partition_file    — using a partitioning scheme

/G.

Alexandros Stamatakis

unread,
Feb 10, 2025, 3:31:24 AMFeb 10
to ra...@googlegroups.com
exactly :-) thanks Guido,

Alexis
> --
> 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 visit
> https://groups.google.com/d/msgid/raxml/1f380ebf-15df-4d4b-8c47-d0359c447f2dn%40googlegroups.com <https://groups.google.com/d/msgid/raxml/1f380ebf-15df-4d4b-8c47-d0359c447f2dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Alexandros (Alexis) Stamatakis

ERA Chair, Institute of Computer Science, Foundation for Research and
Technology - Hellas
Research Group Leader, Heidelberg Institute for Theoretical Studies
Full Professor, Dept. of Informatics, Karlsruhe Institute of Technology

www.biocomp.gr (Crete lab)
www.exelixis-lab.org (Heidelberg lab)

Mariana Meneguzzi

unread,
Feb 13, 2025, 4:59:30 PMFeb 13
to raxml
Thank you, Guido and Alexis, for getting back to me! :)

Just to clarify, I was asking if the RAXML can output a genome pairwise distance matrix along with the tree. 
I do not have the Matrix.epf to feed in the command. 

Thank you very much!
Mariana 

Grimm

unread,
Feb 14, 2025, 3:28:14 AMFeb 14
to raxml
"Matrix.epf" is just a placeholder name for the MSA. You of course have to read in your matrix and tree.

/G
Reply all
Reply to author
Forward
0 new messages