Skip to content

Commit d6d92f0

Browse files
committed
Updated Vignette with ggplot 3.5 version.
1 parent 12480d8 commit d6d92f0

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

R/Coereba_App.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#' library(data.table)
3434
#'
3535
#' File_Location <- system.file("extdata", package = "Coereba")
36-
#' TheCSV <- file.path(File_Location, "GateCutoffsForNKs.csv")
36+
#' TheCSV <- file.path(File_Location, "ShinyGates.csv")
3737
#'
3838
#' FCS_Files <- list.files(path = File_Location, pattern = ".fcs", full.names = TRUE)
3939
#' UnmixedFCSFiles <- FCS_Files[1]

tests/testthat/test-Coereba_App.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ library(shinytest2)
33
library(plotly)
44

55
File_Location <- system.file("extdata", package = "Coereba")
6-
TheCSV <- file.path(File_Location, "GateCutoffsForNKs.csv")
6+
TheCSV <- file.path(File_Location, "ShinyGates.csv")
77
ShinyLocation <- system.file("shiny", package = "Coereba")
88

99
test_that("{shinytest2} recording: CoerebaApp_CSVOpens", {

vignettes/Workflow.qmd

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ library(flowCore)
4141
library(flowWorkspace)
4242
library(CytoML)
4343
library(openCyto)
44-
library(ggcyto)
44+
#library(ggcyto)
4545
library(data.table)
4646
library(dplyr)
4747
library(purrr)
@@ -79,10 +79,10 @@ Coereba primarily relies on the infrastructure provided `r Biocpkg("flowWorkspac
7979
8080
# CRAN packages: install.packages("ThePackageName")
8181
82-
# library(dplyr)
83-
# library(purrr)
84-
# library(stringr)
85-
# library(ggplot2)
82+
library(dplyr)
83+
library(purrr)
84+
library(stringr)
85+
library(ggplot2)
8686
# library(gt)
8787
# library(plotly)
8888
# library(htmltools)
@@ -91,11 +91,13 @@ Coereba primarily relies on the infrastructure provided `r Biocpkg("flowWorkspac
9191
# Bioconductor packages: BiocManager::install("ThePackageName")
9292
9393
library(Coereba)
94-
#library(flowCore)
95-
#library(flowWorkspace)
96-
#library(openCyto)
97-
#library(ggcyto)
94+
library(flowCore)
95+
library(flowWorkspace)
96+
library(openCyto)
97+
library(ggcyto)
9898
99+
# GitHub packages: remotes::install_github("DavidRach/Luciernaga")
100+
library(Luciernaga)
99101
```
100102

101103
## Locate your files
@@ -177,9 +179,6 @@ plot(UnmixedGatingSet)
177179
We can additionally verify that the gating of the cell populations of interest was correct, by visualizing the gates using `r Biocpkg("ggcyto")` or the `Luciernaga::Utility_GatingPlots` function from the `Luciernaga` package.
178180

179181
```{r}
180-
#| label: "Checking the openCyto gate"
181-
library(Luciernaga)
182-
183182
MyPlot <- Utility_GatingPlots(x=UnmixedGatingSet[4], sample.name=c("GROUPNAME", "TUBENAME"),
184183
removestrings=".fcs", subset="root", gtFile=UnmixedGates,
185184
DesiredGates=NULL, returnType="plots", outpath = getwd(),
@@ -879,7 +878,7 @@ Specimens <- InitialMetadata |> pull(specimen) |> unique()
879878
# Adding Adult Normalization Controls Not Present in Study Metadata
880879
Specimens <- c(Specimens, "NY068_02", "NY068_03", "NY068_03", "NY068_4",
881880
"NY068_5", "NY068_6", "NY068_7", "NY068_8")
882-
StudyMetadata <- StudyMetadata |> filter(bid %in% Specimens)
881+
StudyMetadata <- StudyMetadata |> dplyr::filter(bid %in% Specimens)
883882
StudyMetadata <- StudyMetadata |> rename(specimen=bid)
884883
CoerebaMetadata <- left_join(InitialMetadata, StudyMetadata, by="specimen")
885884
```
@@ -969,7 +968,7 @@ We can start by viewing all markers:
969968
#| label: MarkerPlots
970969
#| warning: FALSE
971970
972-
CordOnly <- Data |> filter(ptype %in% c("HU", "HEU-lo", "HEU-hi"))
971+
CordOnly <- Data |> dplyr::filter(ptype %in% c("HU", "HEU-lo", "HEU-hi"))
973972
974973
975974
ThePlot <- Utility_MarkerPlots(data=CordOnly, myfactor="ptype", shape_palette = shape_ptype, fill_palette = fill_ptype, panel=ThePanel, XAxisLevels=c("Vd2", "CD16", "CXCR5", "HLA-DR"), cex=3, size =3)

0 commit comments

Comments
 (0)