Comments (4)
Hi - thanks for your feedback on ggtranscript
!
I'm unable to reproduce this issue and can't spot anything wrong in the code or environment. The grey boxes representing the CDS (which should be generated by geom_range(data = sod1_201_cds)
) are also missing from your plot - are you sure this is the plot generated by your attached code?
On a fresh R session, could you try running the code below and let me know if the outputted plot still has the geom_junction_label_repel
issue:
library(ggtranscript)
library(ggplot2)
library(dplyr)
library(magrittr)
sod1_exons <- sod1_annotation %>% dplyr::filter(type == "exon")
sod1_cds <- sod1_annotation %>% dplyr::filter(type == "CDS")
sod1_201_exons <- sod1_exons %>% dplyr::filter(transcript_name == "SOD1-201")
sod1_201_cds <- sod1_cds %>% dplyr::filter(transcript_name == "SOD1-201")
sod1_202_exons <- sod1_exons %>% dplyr::filter(transcript_name == "SOD1-202")
sod1_202_cds <- sod1_cds %>% dplyr::filter(transcript_name == "SOD1-202")
sod1_junctions <- sod1_junctions %>%
dplyr::mutate(transcript_name = "SOD1-201")
sod1_201_exons %>%
ggplot(aes(
xstart = start,
xend = end,
y = transcript_name
)) +
geom_range(
fill = "white",
height = 0.25
) +
geom_range(
data = sod1_201_cds
) +
geom_intron(
data = to_intron(sod1_201_exons, "transcript_name")
) +
geom_junction(
data = sod1_junctions,
junction.y.max = 0.5
) +
geom_junction_label_repel(
data = sod1_junctions,
aes(label = round(mean_count, 2)),
junction.y.max = 0.5
)
from ggtranscript.
from ggtranscript.
I'm having the same issue.
from ggtranscript.
Related Issues (13)
- high-level workflow example HOT 1
- Warning about size being replaced by linewidth in ggplot2 3.4.0+ HOT 3
- reverse orientation of transcripts on minus strand HOT 2
- shortened gaps with exon and CDS HOT 1
- "Size" aesthetic HOT 1
- extend `to_diff()` to junctions HOT 1
- labeling of exons (junctions?) HOT 4
- packing non-overlapping transcripts on the same y
- Allow `shorten_gaps()` to take into account CDS as well as exons
- Make plots interactive HOT 4
- Problems using facet_wrap HOT 2
- adding coverage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggtranscript.