Skip to content

Commit 4a536e4

Browse files
Replace chord diagram with tRNA structure plot in rewiring vignette
Use plot_tRNA_structure() with linkage arcs to show significant rewiring for tRNA-Glu-TTC, replacing the chord diagram visualization.
1 parent b29b8e7 commit 4a536e4

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

vignettes/articles/rewiring.Rmd

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,24 @@ pcoa <- perform_pcoa(mat)
121121
plot_pcoa_rewiring(pcoa, scores)
122122
```
123123

124-
## Network visualization
124+
## Structure visualization
125125

126-
Build a chord diagram from the ROR data to visualize modification rewiring
127-
between positions.
126+
Plot significant rewiring linkages on the tRNA cloverleaf structure for a
127+
single isodecoder.
128128

129129
```{r}
130-
#| label: fig-chord-ror
131-
#| fig.cap: "Chord diagram of modification rewiring between control and infected conditions."
132-
#| fig.width: 6
133-
#| fig.height: 6
134-
ror_agg <- ror |>
135-
dplyr::group_by(pos1, pos2) |>
136-
dplyr::summarise(log_ror = mean(ror), .groups = "drop")
137-
138-
plot_chord_ror(ror_agg, title = "Modification rewiring: inf vs ctl")
130+
#| label: fig-structure-ror
131+
#| fig.cap: "tRNA structure showing significant modification rewiring linkages for tRNA-Glu-TTC."
132+
ror_glu <- ror |>
133+
filter(isodecoder == "tRNA-Glu-TTC", significant) |>
134+
rename(value = ror)
135+
136+
svg <- plot_tRNA_structure(
137+
"tRNA-Glu-TTC",
138+
"Escherichia coli",
139+
linkages = ror_glu
140+
)
141+
structure_html(svg)
139142
```
140143

141144
## Session info

0 commit comments

Comments
 (0)