-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
…her plots in scratch Rmd
There was a problem hiding this 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"), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved e6137b2
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R/plot_shinygosling.R
Outdated
#' 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 |
There was a problem hiding this comment.
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()
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R/plot_shinygosling.R
Outdated
|
||
#' @param as_GRanges A GRanges object containing the genomic ranges to | ||
#' be plotted. | ||
#' @param title Character string. The title of the plot. Default is |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved bbc4def
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R/plot_shinygosling.R
Outdated
#' @return A Shiny app object that, when run, displays the Gosling | ||
#' plot. | ||
#' | ||
#' @note This function requires the shiny, gosling, and GenomicRanges |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved 7f44587
R/plot_shinygosling.R
Outdated
#' packages to be installed. | ||
#' | ||
#' @examples | ||
#' \dontrun{ |
There was a problem hiding this comment.
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
}
vignettes/alphafold.Rmd
Outdated
gpos <- | ||
tbl |> | ||
to_GPos() | ||
gp <- as(gpos, "GRanges") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vignettes/alphafold.Rmd
Outdated
``` | ||
|
||
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} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vignettes/alphafold.Rmd
Outdated
|
||
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") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vignettes/introduction.Rmd
Outdated
@@ -1,6 +1,7 @@ | |||
--- | |||
title: "A. Introduction" | |||
output: rmarkdown::html_vignette | |||
runtime: shiny |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
R/plot_shinygosling.R
Outdated
stroke = "lightgrey", | ||
strokeWidth = list(value = 1), | ||
opacity = list(value = 0.3) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Hi @lee-t I think we should either finish up the original pull request or close this while you work on this independently? |
Hi @mtmorgan |
…g. Change alphafold vignette to show images.
R/plot_shinygosling.R
Outdated
#' | ||
#' @export | ||
plot_granges <- | ||
function(as_GRanges, | ||
function(gr, |
There was a problem hiding this comment.
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"
)
{
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R/plot_shinygosling.R
Outdated
@@ -54,11 +54,13 @@ plot_granges <- | |||
) | |||
stopifnot( |
There was a problem hiding this comment.
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
NAand
nzchar()`...). 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>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R/plot_shinygosling.R
Outdated
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") |
There was a problem hiding this comment.
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"
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outdated, see lines 76.
R/plot_shinygosling.R
Outdated
dir.create(cache_dir, recursive = TRUE) | ||
|
||
## trigger the option for bars or lolipop | ||
if (plot_type =="bars"){ |
There was a problem hiding this comment.
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 using
identical()` should be avoided).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R/plot_shinygosling.R
Outdated
#' # 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 |
There was a problem hiding this comment.
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"
#' )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…cked later in the plotting function at line192.
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
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 |
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
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
plot_granges
that takes a GRanges or GPos object formatted by AlphamissenseR and plots an interactive multiscale lolipop plot usingshiny.gosling
plot_granges
to the vignette alphafold.Rmd