Skip to content

Commit

Permalink
fixes for example
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-t committed Aug 2, 2024
1 parent 7f44587 commit 64e4de0
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions R/plot_shinygosling.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,18 @@
#' packages to be installed.
#'
#' @examples
#' \dontrun{
#' library(AlphamissenseR)
#' library(GenomicRanges)
#' if (requireNamespace("GenomicRanges")) {
#'
#' # Create a sample GRanges object from AlphamissenseR
#' tbl <-
#' am_data("hg38") |>
#' filter(uniprot_id == "Q1W6H9")
#' ## Create a sample GRanges object from AlphamissenseR
#' gpos <-
#' tbl |>
#' am_data("hg38") |>
#' filter(uniprot_id == "Q1W6H9") |>
#' to_GPos()
#' gr <- as(gpos, "GRanges")
#'
#'
#'
#' # Plot the GRanges object
#' AlphaMissenseR::plot_granges(gr, title = "My GRanges Plot", subtitle = "Custom subtitle")
#' plot_granges(gpos, title = "My GRanges Plot", subtitle = "Custom subtitle")
#' }
#'
#' @import shiny
Expand Down

0 comments on commit 64e4de0

Please sign in to comment.