diff --git a/tools/plot_ragtag_paf/plot_ragtag_paf.R b/tools/plot_ragtag_paf/plot_ragtag_paf.R index 1fa0b715..bada194b 100644 --- a/tools/plot_ragtag_paf/plot_ragtag_paf.R +++ b/tools/plot_ragtag_paf/plot_ragtag_paf.R @@ -253,7 +253,9 @@ gp <- ggplot() + q_y + (y_axis_space / 3) ), hjust = 0.5, - vjust = 0.5 + vjust = 0.5, + size = fontsize, + size.unit = "pt" ) + annotate( geom = "text", @@ -264,7 +266,9 @@ gp <- ggplot() + t_y - (y_axis_space / 3) ), hjust = 0.5, - vjust = 0.5 + vjust = 0.5, + size = fontsize, + size.unit = "pt" ) # Reverse the scales and the limits to plot reference on top @@ -285,6 +289,8 @@ if (upside_down == TRUE) { ) } + + # reference contig names if (label_ref_contigs == TRUE) { gp <- gp + geom_text( @@ -295,7 +301,9 @@ if (label_ref_contigs == TRUE) { label = tname ), angle = 30, - hjust = ifelse(upside_down == TRUE, 0, 1) + hjust = ifelse(upside_down == TRUE, 0, 1), + size = 2 * fontsize / 3, + size.unit = "pt" ) } @@ -310,6 +318,8 @@ if (label_query_contigs == TRUE) { ), angle = 30, hjust = ifelse(upside_down == TRUE, 1, 0), + size = 2 * fontsize / 3, + size.unit = "pt" ) } diff --git a/tools/plot_ragtag_paf/plot_ragtag_paf.xml b/tools/plot_ragtag_paf/plot_ragtag_paf.xml index a6ab5d03..89c33332 100644 --- a/tools/plot_ragtag_paf/plot_ragtag_paf.xml +++ b/tools/plot_ragtag_paf/plot_ragtag_paf.xml @@ -1,4 +1,4 @@ - + to compare query contigs to the reference ghcr.io/tomharrop/r-containers:r2u_24.04_cv1 @@ -103,8 +103,11 @@ Accepts the PAF and AGP produced by the RagTag Scaffold and draws a plot showing the alignment of the query contigs to the reference contigs. - .. figure:: $PATH_TO_IMAGES/ragtag.png + .. figure:: https://raw.githubusercontent.com/usegalaxy-au/tools-au/refs/heads/master/tools/plot_ragtag_paf/static/images/ragtag.png :alt: RagTag plot + :width: 600px + :height: 400px + :align: center