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

What does R represent #178

Closed
chestnzu1 opened this issue Aug 23, 2020 · 2 comments
Closed

What does R represent #178

chestnzu1 opened this issue Aug 23, 2020 · 2 comments

Comments

@chestnzu1
Copy link

Hello:
Currently, I am using go_plot.ply to create a hierarchical graph, I notice inside the rectangle, there are some descriptions like the GOID, the depth, and descendant count, But I can not find the explanation for R. Can you tell me what does 'R' represent? Thanks in advance.

  best,
   Yi
@dvklopfenstein
Copy link
Collaborator

Hello,

Thank you for your interest in GOATOOLS and thanks for the great question.

R is depth when taking into account optional relationships, like part_of.

Depth is the length of the longest path from the root term, like cellular_component, to the term of interest.

So in this plot:

drawing

The bottom term's title is:

GO:0043231 D3 R4 d0

D3 means that the longest path from the root, cellular_component, to the bottom term is 3 edges, when using only the is_a required relationships.

R4 means that the longest path from the root, cellular_component, to the bottom term is 3 edges, when using both the is_a relationships (black arrows) and the optional part_of relationships (dashed orange arrows).

@dvklopfenstein
Copy link
Collaborator

Check out the new section at the top of this Python notebook added to better help other researchers understand D and R:

https://github.com/tanghaibao/goatools/blob/main/notebooks/get_isa_and_partof.ipynb

Thanks again for the terrific question

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

2 participants