Skip to content

Commit

Permalink
change argument names for iSEEinit
Browse files Browse the repository at this point in the history
  • Loading branch information
NajlaAbassi committed Mar 21, 2024
1 parent 1a56857 commit a5f0ecb
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 22 deletions.
8 changes: 4 additions & 4 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#' cluster <- "stimulus"
#' group <- "single cell quality"
#' initial <- iSEEinit(sce = sce,
#' feature.list = gene_list,
#' features = gene_list,
#' clusters = cluster,
#' groups = group)
#'
Expand Down Expand Up @@ -183,7 +183,7 @@ view_initial_tiles <- function(initial) {
#' cluster <- "stimulus"
#' group <- "single cell quality"
#' initial <- iSEEinit(sce = sce,
#' feature.list = gene_list,
#' features = gene_list,
#' clusters = cluster,
#' groups = group)
#'
Expand Down Expand Up @@ -302,11 +302,11 @@ view_initial_network <- function(initial,
#' cluster <- "stimulus"
#' group <- "single cell quality"
#' initial1 <- iSEEinit(sce = sce,
#' feature.list = gene_list_1,
#' features = gene_list_1,
#' clusters = cluster,
#' groups = group)
#' initial2 <- iSEEinit(sce = sce,
#' feature.list = gene_list_2,
#' features = gene_list_2,
#' clusters = cluster,
#' groups = group)
#' initials_merged <- glue_initials(initial1,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ gene_list <- c("ENSMUSG00000026581", "ENSMUSG00000005087", "ENSMUSG00000015437")
cluster <- "stimulus"
group <- "single cell quality"

initial <- iSEEinit(sce = sce, feature.list = gene_list, clusters = cluster, groups = group)
initial <- iSEEinit(sce = sce, features = gene_list, clusters = cluster, groups = group)

iSEE(sce, initial = initial)
```
Expand Down
4 changes: 2 additions & 2 deletions man/glue_initials.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions man/iSEEinit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/view_initial_network.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/view_initial_tiles.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
test_that("iSEEfier utils work", {
init_1 <- iSEEinit(sce = sce_allen,
feature.list = c("Il2rb",
features = c("Il2rb",
"Klre1"),
clusters = "Primary.Type",
groups = "Secondary.Type")
expect_true(is.list(init_1))

init_2 <- iSEEinit(sce = sce_allen,
feature.list = c("Actb", "Gapdh"),
features = c("Actb", "Gapdh"),
clusters = "Primary.Type",
groups = "Secondary.Type", markdownboard = TRUE)
groups = "Secondary.Type",
add_markdown_panel = TRUE)
expect_true(is.list(init_2))

expect_true(length(init_1) == 10)
Expand Down

0 comments on commit a5f0ecb

Please sign in to comment.