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

Links #8

Open
Jessica1080 opened this issue Jun 28, 2024 · 2 comments
Open

Links #8

Jessica1080 opened this issue Jun 28, 2024 · 2 comments

Comments

@Jessica1080
Copy link

Jessica1080 commented Jun 28, 2024

Hi,

I'm trying to understand the GC_links( ) function a bit better and it looks like the example charts on the GC_links page don't reflect the changes in code.

When you use the GC_links function with blast results - I understand that it pulls from either the similarity or identity and these are the displayed percentages, but what determines the colors of the link? Some are grey and some are red in the examples...maybe I missed it somewhere, but is there a threshold value that switches the link from red/grey?

Thanks so much!

@nvelden
Copy link
Owner

nvelden commented Jun 29, 2024

The grey color indicates genes that are in the same orientation between clusters. The red color indicates genes that are inverted (in the reverse orientation). If you want to change the color for each, you can use the normal_color and inverted_color variables. These variables can accept hex color codes (e.g., #969696 for grey) as well as normal color names (e.g., "grey").

In the example below, all links are colored grey based on their identity values.

GC_chart(
  erythromycin_BlastP,
  cluster = "cluster"
) %>%
  GC_links(
    "BlastP",
    measure = "identity", # none / similarity
    normal_color = "#969696",
    inverted_color = "#969696",
  )

For all options see the GC_links documentation:

@K3nnyBIOEPAR
Copy link

K3nnyBIOEPAR commented Oct 14, 2024

Hi,

Thank you for your work on Geneviewer!
I'm trying to make a cluster comparison using BlastP between several bacterial genomes. I succeeded to get the chart with the relevant genes but it seems that the GC_links don't work.
Please could you help me on this issue? I join my script below (until the GC_scale, all is work)
GC_chart(
data = BlastP_results_2,
cluster = "cluster",
group = "function.",
strand = "strand",
height = "300px"
) %>%
GC_labels(label = "gene", cluster = 1) %>%
GC_scale(axis_type = "range") %>%
GC_links(group = "BlastP", measure = "identity") %>%
GC_clusterLabel() %>%
GC_legend(TRUE)

Thanks for your help ;-)

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