-
Notifications
You must be signed in to change notification settings - Fork 11
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
gene with Expansion & Contraction #50
Comments
Hi! please take a look at this tutorial notebook and let me know if you have any questions. |
The tutorial you sent me seems like report.html, but it didn't show me how to retrieve the genes belonging to gains/duplications/losses for a specific species. phylostratigraphy = os.path.join(output_folder, "phylostratigraphy.html")
treeprofile = ham_analysis.create_tree_profile(outfile=phylostratigraphy)
from IPython.display import IFrame
IFrame(os.path.basename(phylostratigraphy), width=800, height=600) but it only shows the result of the genes' number of gains/duplications/losses. I would like to retrieve the genes belonging to gains/duplications/losses for a specific species. Thank you ! |
After exploring the pyHam, I found following code would help me, but I can't still get duplicated genes and lost genes
But when I tried the same way about duplicated genes and lost genes, It didn't work.
Why did the same type of result, in the same way didn't work? |
Sorry I should have mentioned the specific location in the notebook.
we can think of a HOG as an ancestral gene. When there are 10 HOGs in an ancestral (internal) node, it means the ancestral genome has 10 ancestral genes. Consider comparing two ancestral nodes:
So, all the elements are HOGs. Note that a hog has descendant genes that can be accessed with Now let's compare an extant genome with ancestral genome (similar to your code).
The gained ones correspond to the child node, which is extant species, so they are reported as extant genes. So, it depends whether both elements of comparison are ancestral genome or only one of them. When one is extant, you can access to its extant genes directly. When both are ancestral genomes, the ancestral genes of each are hog at that level. Pro tip: number of duplication events is different than number of duplicated genes. A duplication event can results in one or more genes in the pyham framework.comparison.get_duplicated() is a dictionary It looks a bit complicated. Please let me know which part is not clear. |
OK, I see. Thank you for your detailed explanation! |
By the way, what's the difference between this methodology and CAFE5 when talking about Expansion & Contraction? |
Hi @sinamajidian
I am finishing this pipeline with 8 species and got the result from the HTML
so how do I fetch the genes with Expansion & Contraction from the result files?
I am a newbie in this field, thank you for your time!
The text was updated successfully, but these errors were encountered: