different branch IDs in gcf and scfl for the same species tree #478
Replies: 2 comments 2 replies
-
|
Hi Hiranya, This is interesting, thanks for noticing this. @bqminh will be the person who might know how to fix the problem as asked, (and now you've pointed it out I'll need to double check my code for this https://iqtree.github.io/doc/recipes/concordance-vector. However, even without that there is a fix. If you follow the code here: https://iqtree.github.io/doc/recipes/concordance-vector, you'll see that one of the trees I produce has the sCF and gCF labels on the same tree. This way you can easily compare them using the tree file itself. Just search for the bit that says "Each internal branch in gcf.cf.tree will be annotated like this:", and you should be able to recreate the necessary steps to do the same. That way you don't need branch IDs at all. Rob |
Beta Was this translation helpful? Give feedback.
-
|
@HiranyaSudasinghe, I've also double checked things and I find the same. With my code the branch IDs are consistent. I suspect the key difference is that in my code I compute the species tree first, and then fix it with In your code, when you are just supplying the species tree as a starting tree with You could try re-doing your code using Rob |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am interested in comparing the gcf and scfl for some nodes of a species tree that is interest to me. For example as shown here: https://www.robertlanfear.com/blog/files/concordance_factors.html
What I want to explore is how scf and gcf relative to branch length and branch support as the example here:

However, instead of -scf I am using -scfl option which is recommended in the documentation.
The commands I use are:
compute gene concordance factors
iqtree2 -t ${SPECIES_TREE} --gcf ${TREE_FILE} --prefix concord.gcf
compute site concordance factor using likelihood
iqtree2 -te ${SPECIES_TREE} -s ${CONCAT_FASTA} --scfl 100 --prefix concord.scfl
where ${SPECIES_TREE} is the species tree; ${TREE_FILE} are the gene trees and ${CONCAT_FASTA} is the supermatrix alignment.
When I explore the outputs of the above two analyses, however, I note that the branch IDs are different in the two cases. For example see below:

concord.gcf.scf.cf.branch
concord.scfl.cf.branch

Since the branch IDs are different I cannot visualize the relationship between gcf and scfl relative to branch length and branch support
I am not exactly sure why I am getting two different branch IDs in gcf and scfl outputs because I am using the same species tree.
I would be very much grateful, if you could let me know how to fix this?
Thank you very much!
Hiranya
Beta Was this translation helpful? Give feedback.
All reactions