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

The direction of a single exon gene #93

Open
rejo27 opened this issue Sep 19, 2024 · 2 comments
Open

The direction of a single exon gene #93

rejo27 opened this issue Sep 19, 2024 · 2 comments

Comments

@rejo27
Copy link

rejo27 commented Sep 19, 2024

Dear Gviz team:
I have a small question about drawing gene tracks. If the gene I want to draw has only one exon (no introns), how can I know its direction?

For example, gene1-4 in the figure.
Looking forward to your reply.

@rejo27 rejo27 closed this as completed Sep 19, 2024
@rejo27 rejo27 reopened this Sep 19, 2024
@ivanek
Copy link
Owner

ivanek commented Sep 19, 2024

Hi @rejo27 ,

Essentially you can follow the vignette:

plotTracks(grtrack, collapseTranscripts = TRUE, shape = "arrow", 
           transcriptAnnotation = "symbol")

or

plotTracks(grtrack, collapseTranscripts = "meta", shape = "arrow", 
           transcriptAnnotation = "symbol")

Hope that helps.

@rejo27
Copy link
Author

rejo27 commented Sep 20, 2024

Dear Gviz team:
Thanks for your reply!
I tried your suggestion and got the final gene structure. Although I can get the direction of a single exon gene, it loses the UTR information (gene2 track). I also tried to modify the code, but it seems that there is an arrow for each exon (gene3), which is not ideal. I want to achieve the effect of only displaying the arrow on the last exon without losing the UTR information, that is, the effect in the red box. Do you think such information can be achieved?
test1

Looking forward to your reply.

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