这是indexloc提供的服务,不要输入任何密码
Skip to content

how to rescale and align genes of different size? #75

@xyz0o

Description

@xyz0o

I am trying to show TEs around inversion breakpoints. Two of my inversions are extremely short so the TE depiction for other inversions is not visible. how can I get around this issue?
This is my code

ggplot(dfg, aes(xmin = start, xmax = end, y = Gene, fill = element, 
                forward = orientation)) +
  geom_gene_arrow() +
  facet_wrap(~ Gene, scales = "free", ncol = 1) +
  scale_fill_brewer(palette = "Set3") +
  geom_blank(data = dfg, aes(forward = 1)) +
  theme_genes()

for example, for gene4, I have many TEs, but due to scale they are not visible

gene4 Breakpoint 3994117 3994117 1
gene4 Breakpoint 11174374 11174375 1
gene4 TE1 11174718 11174764 0
gene4 TE2 11176065 11176105 1
gene4 TE3 11176070 11176111 0
gene4 TE4 11176124 11176330 1
gene4 TE5 11176616 11176706 1

image

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions