Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orthology groups correspond to HOGs? #28

Open
alexvasilikop opened this issue Oct 9, 2023 · 2 comments
Open

Orthology groups correspond to HOGs? #28

alexvasilikop opened this issue Oct 9, 2023 · 2 comments

Comments

@alexvasilikop
Copy link

alexvasilikop commented Oct 9, 2023

Hello,

Thanks for developing such useful tools. I want to use AGORA with providing the orthologous groups files and not the trees; I have a question regarding these orthology groups. I used Orthofinder for inferring these groups which outputs hierarchical orthogroups (HOGs). For a deep node in the tree the HOGS might only contain a few or even a couple of species. Basically a HOG for a shallow node (e.g. consisting of 2 species) is also a HOG for a deep node (as this shallow node is a child of the deeper node). Should all these groups be provided to all the levels to which they are relevant? Or how do you define the orthologous groups for each node in the species tree, given that some HOGs do not contain all children species of that node?

Thanks
Alex

@alouis72
Copy link
Collaborator

alouis72 commented Nov 7, 2023

Hi Alex,
sorry for the late answer.
I'm not sure I understand your question. All HOGs should be provide according to the species tree.
If you used OrthoFinder to define HOGs, you could be able to run agora with the species tree provided in the Orthofinder results:

Results_XXXX/Phylogenetic_Hierarchical_Orthogroups/
You will have to use the species tree produced by orthofinder for AGORA that should be :
Results_XXXX/Species_Tree/SpeciesTree_rooted_node_labels.txt

After that, to simplify treatment you can use a script available here:
https://github.com/DyogenIBENS/Agora/tree/dev/src/import/orthofinder_hogs/convert_hogs_sp.py
that will format HOGs for AGORA

ex:
python ./convert_hogs_sp.py -of_hogs Results_XXXX/Phylogenetic_Hierarchical_Orthogroups -outdir Agora_data/orthoGroups/

Hope this helps,
Alexandra

@sunriseTM
Copy link

I have the same confusion. If a orthogroup only contain 2 genes from a single species, I noticed Agora will construct a ancesral gene corresponding to the two genes, but the ancestor contain many descedents and only this species contain this 2 genes. As I expected, the 2 genes in the orthogroup is species-specific and tend to be new genes, why Agroa construct a ancestral gene based on them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants