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

A question regarding synteny #122

Closed
Rahimlou opened this issue Apr 2, 2022 · 1 comment
Closed

A question regarding synteny #122

Rahimlou opened this issue Apr 2, 2022 · 1 comment

Comments

@Rahimlou
Copy link

Rahimlou commented Apr 2, 2022

Just for my understanding, is it possible to show synteny for certain genes (i.e. some part of the genomes)? What function can be used to zoom a specific region in several genomes?

@thackl
Copy link
Owner

thackl commented Apr 2, 2022

Yes, that is possible. The function to do that is focus. You can do something like this:

# full genomes
p1 <- gggenomes(emale_genes, emale_seqs) %>%
 add_sublinks(emale_prot_ava) +
 geom_seq() + geom_gene() + geom_gene_tag(aes(label=name)) + geom_link()
p1

a

# zoom in on major capsid protein
p1 %>% focus(name=="MCP", .expand=2000)

b

@thackl thackl closed this as completed Oct 15, 2022
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