Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plot_granges #6

Closed
wants to merge 44 commits into from
Closed

Add plot_granges #6

wants to merge 44 commits into from

Conversation

lee-t
Copy link

@lee-t lee-t commented Jul 29, 2024

  • add plot_shinygosling.R that adds the function plot_granges that takes a GRanges or GPos object formatted by AlphamissenseR and plots an interactive multiscale lolipop plot using shiny.gosling
  • add examples for plot_granges to the vignette alphafold.Rmd
  • updated DESCRIPTION with suggested packages and additional contributors.

Copy link
Owner

@mtmorgan mtmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lee-t for this really interesting addition! I've made a number of comments; several occur once but apply throughout the PR.

There are a number structural changes to the PR itself, but the most important for me was that at the end of the day the illustrative example did not really showcase the possibilities of Gosling-based visualization.

Out of scope for this PR, but I think it would be worth-while to explore an htmlwidget version of shiny.gosling; this seems to be more useful in terms of light-weight interactive widgets to be embedded in literate documents.

@@ -3,24 +3,30 @@ Title: Accessing AlphaMissense Data Resources in R
Version: 1.1.5
Authors@R:
c(person(
"Martin", "Morgan", role = c("aut", "cre"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 'white space' changes replace spaces with tabs, but tabs are not used in AlphaMissesnseR. In general PRs should contain the essential changes required for the feature being implemented.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved e6137b2

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry to be a pain but the original indentation was 8 spaces, not 4 and not tab.

Copy link
Author

@lee-t lee-t Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#' columns. The 'am_class' column is used for coloring the points,
#' while 'ALT' is used for the text of the points.

#' @param as_GRanges A GRanges object containing the genomic ranges to
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the argument should be designed to accept a GPos() object, which is the efficient way to store variant-style data. If a coercion to GRanges() is necessary (is it?) then this should be inside the function so that the user does not need to worry about this step.

I would name the argument gpos, which is more consistent with the argument names of other functions (e.g., tbl of as_GPos()).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


#' @param as_GRanges A GRanges object containing the genomic ranges to
#' be plotted.
#' @param title Character string. The title of the plot. Default is
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The convention in AlphaMissenseR is to use character(1) to describe a scalar character, or character() if it can be any length.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved bbc4def

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not updated in the commit. I'm expecting something like

#' @param title the character(1) title of the plot <etc>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#' @return A Shiny app object that, when run, displays the Gosling
#' plot.
#'
#' @note This function requires the shiny, gosling, and GenomicRanges
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no gosling package...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved 7f44587

#' packages to be installed.
#'
#' @examples
#' \dontrun{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of \dontrun{}, I think it is better to run conditional on the necessary packages being available. In that way, the example, which can serve as a kind of integration test, is typically run on build systems, as well as when the user runs example(GPos_plot). Also no need to attach AlphaMissenseR (note the typo in line 31, not detected because the code is not run!) in the example. So

if (requireNamespace("GenomicRanges")) {
     ## rest of example code
}

gpos <-
tbl |>
to_GPos()
gp <- as(gpos, "GRanges")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this step unnecessary / compress creation of gpos to same as in example page.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

```

The function `plot_granges` serves as a wrapper that processes the alphamissenseR formatted GPos object into a multiscale lolipop plot in [shiny.gosling][]. The resulting plot is a shinyapp object that can be embedded in Rmarkdown or Quarto.
```{r plot_example}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a more descriptive name instead of plot_example, e.g., GPos_plot

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


The function `plot_granges` serves as a wrapper that processes the alphamissenseR formatted GPos object into a multiscale lolipop plot in [shiny.gosling][]. The resulting plot is a shinyapp object that can be embedded in Rmarkdown or Quarto.
```{r plot_example}
AlphaMissenseR::plot_granges(gr, title = "Test track : Q1W6H9", subtitle = "Multiscale plot in Shiny.Gosling")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to qualify as AlphaMissenseR::GPos_plot(), just GPos_plot().

At the end of the day the plot is not actually very interesting, and the formatting (with 1/2 points on the left, right, and bottom, and with the legend obscuring many points, at least for me) is not very good; is there a more compelling visualization that make better use of the display capabilities of shiny.gosling?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1,6 +1,7 @@
---
title: "A. Introduction"
output: rmarkdown::html_vignette
runtime: shiny
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you tell me what the consequences of this line are, especially for displaying the page in a pkgdown site like at https://mtmorgan.github.io/AlphaMissenseR ? If there are consequences, or if the intention is to provide further Gosling-based functionality, then does it make sense to introduce a new vignette, 'D. Gosling Integration'. For instance, perhaps like the AlphaFold vignette there is a 'fast path' that basically does everything for the user to created a canned visualization, and a more step-by-step illustrating construction of arbitrary Gosling artifacts.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No obvious functionality differences on pkgdown because if you're publishing vignettes they are usually forced rendered as static HTML pages by knitr. The intention was if people did run the rmd then the document would start up the shiny runtime enabling the interactive

Comment on lines 85 to 87
stroke = "lightgrey",
strokeWidth = list(value = 1),
opacity = list(value = 0.3)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should some of these parameters be exposed as arguments for the user to customize? If so I'd write the function definition as something like GPos_plot(gpos, title, subtitle, ..., stroke = "lightgrey", <etc>) where more obscure arguments (including 'subtitle'?) go after the ... and follow as closely as possible whatever the shiny.gosling convention is.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the latest comment on the integration with gosling API

@mtmorgan
Copy link
Owner

Hi @lee-t I think we should either finish up the original pull request or close this while you work on this independently?

@lee-t
Copy link
Author

lee-t commented Sep 17, 2024

Hi @mtmorgan
Thanks a lot for the comments, sorry it took this long to address them in one giant waterfall of responses. I want to take this time to explain the scope of the PR which is to provide the user with an interactive genome browser-like view on the AlphaMissense data for specfic gene of interest.
At this time, we (the team at CCB) do not intend to expose the entire Gosling API, ie the approach here is to hand-pick a couple of suitable plots for displaying the data, where a barplot-like view of the pathogenicity score at each position, similar to a sequencing coverage plot, seems to provide for a meaningful view. Lollipop plots focusing on the pathogenicity classification (ambiguous, benign, pathogenic) at each position would be another meaningful way to look at the data.
In the PR, we deploy gosling through shiny.gosling, a readily available Bioconductor package that wraps around a subset of gosling’s functionality through the R/Shiny framework. That is not optimal, but the most viable path to build upon at this point in time.
We agree that an htmlwidget implementation would be useful and an interesting project. In fact, Trevor Manz here from the Gehlenborg lab at HMS works on grosling, that provides an R-interface to the python version of gosling through reticulate, and that does return htmlwidgets. But this package is GitHub-only and not yet at a state that we could build on it in Bioconductor. We have spoken with Trevor about submitting grosling to Bioconductor, but this would take quite a bit more effort and time, and not something that he seemed to want to push like right now.
Based on your feedback I have now cleaned up code and the corresponding vignette section. One particular drawback of the shiny solution is that shiny apps can’t really be embedded into Bioc vignettes. Judged from other Shiny-based Bioc packages such as iSEE, the solution here seems to be to include screenshots of the app in the vignette, and only invoke the app when the user works in interactive mode (a24edaa). Please let us know whether you would support such a solution.

…g. Change alphafold vignette to show images.
#'
#' @export
plot_granges <-
function(as_GRanges,
function(gr,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the indentation when function arguments span more than one line is (also avoid 'cryptic' names where possible)

plot_granges <-
    function(
        granges,
        title = "GRanges Plot",
        subtitle = "Stacked nucleotide example"
    )
{
    ...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -54,11 +54,13 @@ plot_granges <-
)
stopifnot(
Copy link
Owner

@mtmorgan mtmorgan Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, combine assertions into a single stopifnot(). Use the S4 is() to test S4 objects (this might require a #' @importFrom methods is); I think the assertion is(granges, "GRanges") is sufficient for your purposes?. The convention in the package uses isScalarCharacter(), along the lines of (check that these are correct with respect to NAandnzchar()`...). I am conservative in use of additional error text, hoping to think that the message is sufficiently clear, or if not clear then encountered commonly enough that the user has figured out how to interpret it (rather than encountering different messages in each package).

stopifnot(
    is(granges, "GRanges"),
    isScalarCharacter(title),
    isScalarCharacter(subtitle),
    isScalarCharacter(plot_type)
)

Actually I think the plot_type test needs to be more explicit -- isScalarCharacter(plot_type) && plot_type %in% <allowable values>.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dir.create(".gosling")
}
## This fixes the bug if .gosling directory does not already exist
gosling_cache <- file.path(R_user_dir("AlphaMissenseR", which = "cache"), ".gosling")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure that lines do not exceed 80 characters, following formatting conventions in the package, e.g.,

    gosling_cache <- file.path(
        R_user_dir("AlphaMissenseR", which = "cache"),
        ".gosling"
    )

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outdated, see lines 76.

dir.create(cache_dir, recursive = TRUE)

## trigger the option for bars or lolipop
if (plot_type =="bars"){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As best practice use 'identical(plot_type, "bars"), since this returns TRUE or FALSE, whereas as written this can return cryptic errors if, e.g., plot_typewhere NA or "" (I realize that the checks above ensure that this is not the case, but that does not mean that the better practice of usingidentical()` should be avoided).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#' # Plot the GRanges object
#' plot_granges(gpos, title = "My GRanges Plot", subtitle = "Custom subtitle")
#' ## Plot the GRanges object
#' plot_granges(gpos, mode = "bar", title = "Q1W6H9 track", subtitle
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format so that the rendered example follows the convention of the package

#' plot_granges(
#'     gpos, mode = "bar", title = "Q1W6H_track",
#'     subtitle = "bar plot example"
#' )

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtmorgan mtmorgan closed this in 556c77c Sep 24, 2024
mtmorgan added a commit that referenced this pull request Sep 24, 2024
Co-authored-by: lee-t <tyrone_lee@hms.harvard.edu>
Co-authored-by: Nitesh Turaga <nitesh.turaga@gmail.com>
Co-authored-by: tram-nguyen-n <tram_nguyen@hms.harvard.edu>
Co-authored-by: lgeistlinger <ludwig.geistlinger@gmail.com>

commit aa46568
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 14:25:40 2024 -0400

    change @details

commit b0b5a45
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:41:34 2024 -0400

    reformat DESCRIPTION

commit c65a351
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:30:56 2024 -0400

    format example

commit c9e9088
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:29:19 2024 -0400

    change to use `identical()`

commit 57cbc97
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:23:45 2024 -0400

    combine assertions into one `stopifnot()`, `plot_type` is already checked later in the plotting function at line192.

commit 73f173d
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:17:17 2024 -0400

    change function indentation and input granges name

commit a24edaa
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Sep 17 14:37:53 2024 -0400

    Rename plot_shinygosling to match function. Edit documentation wording. Change alphafold vignette to show images.

commit 916e254
Author: lgeistlinger <ludwig.geistlinger@gmail.com>
Date:   Wed Aug 21 17:00:43 2024 -0400

    some cosmetics to the gosling section

commit 48a0558
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 21 11:56:30 2024 -0400

    some message suppression and link fixes

commit e32322f
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 17:53:33 2024 -0400

    found the missing visual channel imports.

commit 008b5d6
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 17:36:31 2024 -0400

    reverting importFrom, cache order

commit 963a9ff
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 16:55:43 2024 -0400

    imports and cache creation reverted

commit 0c66dc9
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 15:18:16 2024 -0400

    fixing vignettes, trying to pass R CMD check

commit 00c57a7
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:10:24 2024 -0400

    sync help page for plot_shinygosling.rd

commit c265cf2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:03:34 2024 -0400

    remove runtime from intro

commit b4a28bb
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:03:16 2024 -0400

    text and example changes to alphafold.Rmd; fix spelling of 'lollipop'

commit e6137b2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 11:49:12 2024 -0400

    replace tabs with spaces (on Windows-1252)

commit 96fa7f5
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 17:52:38 2024 -0400

    'plot_type' selects between bars and lolipop plots

commit af48390
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:48:30 2024 -0400

    add tooltips to lolipop plot

commit b9b7388
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:46:47 2024 -0400

    use cache for gosling dir

commit bbc4def
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:30:31 2024 -0400

    add validation for input types

commit 6dfd4b2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 13:47:23 2024 -0400

    rename as_granges->gr, get_range - > g; fix GRanges accesssors in zoom view

commit 64e4de0
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri Aug 2 16:58:33 2024 -0400

    fixes for example

commit 7f44587
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri Aug 2 16:51:21 2024 -0400

    no `gosling` R package

commit 94837cf
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:55:39 2024 -0400

    whitespace DESCRIPTION

commit a4a6785
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:52:56 2024 -0400

    add contributors to DESCRIPTION

commit 70ca8d6
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:46:07 2024 -0400

    edit vignettes; remove gosling.shiny vis from intro, add to alphafold

commit 4eefe87
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:36:59 2024 -0400

    modify function; change colormap, change example, fix categories

commit 424fe6b
Author: tram-nguyen-n <tram_nguyen@hms.harvard.edu>
Date:   Mon Jul 29 19:43:15 2024 +0000

    checks for directory .gosling

commit 9e9170a
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:30:23 2024 -0400

    Fixes

commit 236aa27
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:10:34 2024 -0400

    Remove .RData

commit 1790d52
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:09:19 2024 -0400

    revert changes to ignores

commit ea6f464
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:06:10 2024 -0400

    Remove .gosling repo

commit 75428d2
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:00:35 2024 -0400

    Remove d_clinvar.R, fix DESCRIPTION

commit 4bac60a
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:28:26 2024 -0400

    Remove .Rproj

commit 123c788
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:26:31 2024 -0400

    Remove z_scratch.Rmd after consulting with Tram and Tyronne

commit 7fa6954
Merge: 2aba65e 1214ac9
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:24:45 2024 -0400

    Merge branch 'devel' into vis_shinygosling

commit 2aba65e
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 10:56:41 2024 -0400

    wrap lolipop plotting in function "plot_shinygosling" examples and other plots in scratch Rmd

commit 224e5f2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Jun 20 14:56:02 2024 -0400

    fix knitting error: seperating track objects

commit b6a7358
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Jun 20 14:47:09 2024 -0400

    update b_vis vignette. take screenshots for presentation

commit 1886cb4
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed May 29 13:59:10 2024 -0400

    update suggests w/shiny.gosling, fix runtime and library calls, update gitignore

commit b4c4136
Merge: f3dcd5a 199e755
Author: Tyrone Lee <tyrone_lee@hms.harvard.edu>
Date:   Tue May 28 16:40:29 2024 -0400

    Merge branch 'mtmorgan:devel' into vis_shinygosling

commit f3dcd5a
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue May 28 15:12:52 2024 -0400

    minor labels

commit ffbeac3
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri May 24 17:31:58 2024 -0400

    add integrated shiny.gosling plot embedded into vignette, first pass
@mtmorgan
Copy link
Owner

mtmorgan commented Sep 24, 2024

Thanks @lee-t ! I used a squash commit to merge your pull request (my opinion is that the commit history should be relatively 'clean', reflecting the final changes rather than the back-and-forth during code development). The squash commit enumerates all of your commits 45a7d1d but I am still trying to get this to be reflected in GitHub.

Also, I made three commits 448cc7e 79d6751 38b28b5 after yours that are perhaps worth reviewing, where I revised your code to a format that I thought was consistent with the package style. A big change involves naming the function gosling_plot().

mtmorgan added a commit that referenced this pull request Sep 24, 2024
Co-authored-by: lee-t <tyrone_lee@hms.harvard.edu>
Co-authored-by: Nitesh Turaga <nitesh.turaga@gmail.com>
Co-authored-by: tram-nguyen-n <tram_nguyen@hms.harvard.edu>
Co-authored-by: lgeistlinger <ludwig.geistlinger@gmail.com>

commit aa46568
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 14:25:40 2024 -0400

    change @details

commit b0b5a45
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:41:34 2024 -0400

    reformat DESCRIPTION

commit c65a351
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:30:56 2024 -0400

    format example

commit c9e9088
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:29:19 2024 -0400

    change to use `identical()`

commit 57cbc97
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:23:45 2024 -0400

    combine assertions into one `stopifnot()`, `plot_type` is already checked later in the plotting function at line192.

commit 73f173d
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:17:17 2024 -0400

    change function indentation and input granges name

commit a24edaa
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Sep 17 14:37:53 2024 -0400

    Rename plot_shinygosling to match function. Edit documentation wording. Change alphafold vignette to show images.

commit 916e254
Author: lgeistlinger <ludwig.geistlinger@gmail.com>
Date:   Wed Aug 21 17:00:43 2024 -0400

    some cosmetics to the gosling section

commit 48a0558
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 21 11:56:30 2024 -0400

    some message suppression and link fixes

commit e32322f
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 17:53:33 2024 -0400

    found the missing visual channel imports.

commit 008b5d6
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 17:36:31 2024 -0400

    reverting importFrom, cache order

commit 963a9ff
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 16:55:43 2024 -0400

    imports and cache creation reverted

commit 0c66dc9
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 15:18:16 2024 -0400

    fixing vignettes, trying to pass R CMD check

commit 00c57a7
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:10:24 2024 -0400

    sync help page for plot_shinygosling.rd

commit c265cf2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:03:34 2024 -0400

    remove runtime from intro

commit b4a28bb
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:03:16 2024 -0400

    text and example changes to alphafold.Rmd; fix spelling of 'lollipop'

commit e6137b2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 11:49:12 2024 -0400

    replace tabs with spaces (on Windows-1252)

commit 96fa7f5
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 17:52:38 2024 -0400

    'plot_type' selects between bars and lolipop plots

commit af48390
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:48:30 2024 -0400

    add tooltips to lolipop plot

commit b9b7388
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:46:47 2024 -0400

    use cache for gosling dir

commit bbc4def
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:30:31 2024 -0400

    add validation for input types

commit 6dfd4b2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 13:47:23 2024 -0400

    rename as_granges->gr, get_range - > g; fix GRanges accesssors in zoom view

commit 64e4de0
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri Aug 2 16:58:33 2024 -0400

    fixes for example

commit 7f44587
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri Aug 2 16:51:21 2024 -0400

    no `gosling` R package

commit 94837cf
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:55:39 2024 -0400

    whitespace DESCRIPTION

commit a4a6785
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:52:56 2024 -0400

    add contributors to DESCRIPTION

commit 70ca8d6
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:46:07 2024 -0400

    edit vignettes; remove gosling.shiny vis from intro, add to alphafold

commit 4eefe87
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:36:59 2024 -0400

    modify function; change colormap, change example, fix categories

commit 424fe6b
Author: tram-nguyen-n <tram_nguyen@hms.harvard.edu>
Date:   Mon Jul 29 19:43:15 2024 +0000

    checks for directory .gosling

commit 9e9170a
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:30:23 2024 -0400

    Fixes

commit 236aa27
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:10:34 2024 -0400

    Remove .RData

commit 1790d52
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:09:19 2024 -0400

    revert changes to ignores

commit ea6f464
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:06:10 2024 -0400

    Remove .gosling repo

commit 75428d2
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:00:35 2024 -0400

    Remove d_clinvar.R, fix DESCRIPTION

commit 4bac60a
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:28:26 2024 -0400

    Remove .Rproj

commit 123c788
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:26:31 2024 -0400

    Remove z_scratch.Rmd after consulting with Tram and Tyronne

commit 7fa6954
Merge: 2aba65e 1214ac9
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:24:45 2024 -0400

    Merge branch 'devel' into vis_shinygosling

commit 2aba65e
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 10:56:41 2024 -0400

    wrap lolipop plotting in function "plot_shinygosling" examples and other plots in scratch Rmd

commit 224e5f2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Jun 20 14:56:02 2024 -0400

    fix knitting error: seperating track objects

commit b6a7358
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Jun 20 14:47:09 2024 -0400

    update b_vis vignette. take screenshots for presentation

commit 1886cb4
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed May 29 13:59:10 2024 -0400

    update suggests w/shiny.gosling, fix runtime and library calls, update gitignore

commit b4c4136
Merge: f3dcd5a 199e755
Author: Tyrone Lee <tyrone_lee@hms.harvard.edu>
Date:   Tue May 28 16:40:29 2024 -0400

    Merge branch 'mtmorgan:devel' into vis_shinygosling

commit f3dcd5a
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue May 28 15:12:52 2024 -0400

    minor labels

commit ffbeac3
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri May 24 17:31:58 2024 -0400

    add integrated shiny.gosling plot embedded into vignette, first pass
@mtmorgan mtmorgan reopened this Sep 24, 2024
mtmorgan added a commit that referenced this pull request Sep 24, 2024
Co-authored-by: lee-t <tyrone_lee@hms.harvard.edu>
Co-authored-by: Nitesh Turaga <nitesh.turaga@gmail.com>
Co-authored-by: tram-nguyen-n <tram_nguyen@hms.harvard.edu>
Co-authored-by: lgeistlinger <ludwig.geistlinger@gmail.com>

commit aa46568
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 14:25:40 2024 -0400

    change @details

commit b0b5a45
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:41:34 2024 -0400

    reformat DESCRIPTION

commit c65a351
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:30:56 2024 -0400

    format example

commit c9e9088
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:29:19 2024 -0400

    change to use `identical()`

commit 57cbc97
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:23:45 2024 -0400

    combine assertions into one `stopifnot()`, `plot_type` is already checked later in the plotting function at line192.

commit 73f173d
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Sep 19 13:17:17 2024 -0400

    change function indentation and input granges name

commit a24edaa
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Sep 17 14:37:53 2024 -0400

    Rename plot_shinygosling to match function. Edit documentation wording. Change alphafold vignette to show images.

commit 916e254
Author: lgeistlinger <ludwig.geistlinger@gmail.com>
Date:   Wed Aug 21 17:00:43 2024 -0400

    some cosmetics to the gosling section

commit 48a0558
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 21 11:56:30 2024 -0400

    some message suppression and link fixes

commit e32322f
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 17:53:33 2024 -0400

    found the missing visual channel imports.

commit 008b5d6
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 17:36:31 2024 -0400

    reverting importFrom, cache order

commit 963a9ff
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 16:55:43 2024 -0400

    imports and cache creation reverted

commit 0c66dc9
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 15:18:16 2024 -0400

    fixing vignettes, trying to pass R CMD check

commit 00c57a7
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:10:24 2024 -0400

    sync help page for plot_shinygosling.rd

commit c265cf2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:03:34 2024 -0400

    remove runtime from intro

commit b4a28bb
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 12:03:16 2024 -0400

    text and example changes to alphafold.Rmd; fix spelling of 'lollipop'

commit e6137b2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed Aug 7 11:49:12 2024 -0400

    replace tabs with spaces (on Windows-1252)

commit 96fa7f5
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 17:52:38 2024 -0400

    'plot_type' selects between bars and lolipop plots

commit af48390
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:48:30 2024 -0400

    add tooltips to lolipop plot

commit b9b7388
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:46:47 2024 -0400

    use cache for gosling dir

commit bbc4def
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 16:30:31 2024 -0400

    add validation for input types

commit 6dfd4b2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue Aug 6 13:47:23 2024 -0400

    rename as_granges->gr, get_range - > g; fix GRanges accesssors in zoom view

commit 64e4de0
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri Aug 2 16:58:33 2024 -0400

    fixes for example

commit 7f44587
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri Aug 2 16:51:21 2024 -0400

    no `gosling` R package

commit 94837cf
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:55:39 2024 -0400

    whitespace DESCRIPTION

commit a4a6785
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:52:56 2024 -0400

    add contributors to DESCRIPTION

commit 70ca8d6
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:46:07 2024 -0400

    edit vignettes; remove gosling.shiny vis from intro, add to alphafold

commit 4eefe87
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 16:36:59 2024 -0400

    modify function; change colormap, change example, fix categories

commit 424fe6b
Author: tram-nguyen-n <tram_nguyen@hms.harvard.edu>
Date:   Mon Jul 29 19:43:15 2024 +0000

    checks for directory .gosling

commit 9e9170a
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:30:23 2024 -0400

    Fixes

commit 236aa27
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:10:34 2024 -0400

    Remove .RData

commit 1790d52
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:09:19 2024 -0400

    revert changes to ignores

commit ea6f464
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:06:10 2024 -0400

    Remove .gosling repo

commit 75428d2
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 15:00:35 2024 -0400

    Remove d_clinvar.R, fix DESCRIPTION

commit 4bac60a
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:28:26 2024 -0400

    Remove .Rproj

commit 123c788
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:26:31 2024 -0400

    Remove z_scratch.Rmd after consulting with Tram and Tyronne

commit 7fa6954
Merge: 2aba65e 1214ac9
Author: Nitesh Turaga <nitesh.turaga@gmail.com>
Date:   Mon Jul 29 14:24:45 2024 -0400

    Merge branch 'devel' into vis_shinygosling

commit 2aba65e
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Mon Jul 29 10:56:41 2024 -0400

    wrap lolipop plotting in function "plot_shinygosling" examples and other plots in scratch Rmd

commit 224e5f2
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Jun 20 14:56:02 2024 -0400

    fix knitting error: seperating track objects

commit b6a7358
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Thu Jun 20 14:47:09 2024 -0400

    update b_vis vignette. take screenshots for presentation

commit 1886cb4
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Wed May 29 13:59:10 2024 -0400

    update suggests w/shiny.gosling, fix runtime and library calls, update gitignore

commit b4c4136
Merge: f3dcd5a 199e755
Author: Tyrone Lee <tyrone_lee@hms.harvard.edu>
Date:   Tue May 28 16:40:29 2024 -0400

    Merge branch 'mtmorgan:devel' into vis_shinygosling

commit f3dcd5a
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Tue May 28 15:12:52 2024 -0400

    minor labels

commit ffbeac3
Author: lee-t <tyrone_lee@hms.harvard.edu>
Date:   Fri May 24 17:31:58 2024 -0400

    add integrated shiny.gosling plot embedded into vignette, first pass
@mtmorgan mtmorgan closed this Sep 25, 2024
@lee-t
Copy link
Author

lee-t commented Sep 25, 2024

I reviewed the comments 448cc7e 79d6751 38b28b5 and think on the last one, helps a lot on the integration. Also wanted to express my gratitude for including the function in the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants