Skip to content

Commit

Permalink
Merge pull request #32 from zktuong/qol_update
Browse files Browse the repository at this point in the history
Qol update
  • Loading branch information
zktuong authored Mar 22, 2022
2 parents 33e787a + 3ce7730 commit 85ecc9e
Show file tree
Hide file tree
Showing 7 changed files with 676 additions and 565 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: R

on:
pull_request:
branches:
- "*"
push:
branches:
- "master"
pull_request:
branches:
- "*"


env:
cache-version: 'cache-v1'
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ktplots
Title: Plot single-cell data dotplots
Version: 1.1.17
Version: 1.1.18
Authors@R: person("Kelvin", "Tuong", email = c("[email protected]", "[email protected]", "[email protected]"), role = c("aut", "cre"))
Description: Plotting tools for scData.
License: MIT
Expand Down
539 changes: 287 additions & 252 deletions R/plot_cpdb.R

Large diffs are not rendered by default.

660 changes: 356 additions & 304 deletions R/plot_cpdb2.R

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions man/plot_cpdb.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/plot_cpdb2.Rd

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

16 changes: 16 additions & 0 deletions tests/testthat/test_cpdbplot1.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ test_that("plot_cpdb works 2",{
expect_true(is.ggplot(p))
})

test_that("plot_cpdb works 3",{
p <- plot_cpdb("B cell", "CD4T cell", kidneyimmune, 'celltype', means, pvals, split.by = "Experiment", gene.family = 'chemokines', verbose = FALSE, default_style = FALSE)
expect_true(is.ggplot(p))
})

test_that("plot_cpdb works 4",{
p <- plot_cpdb("B cell", "B cell", kidneyimmune, 'celltype', means, pvals, split.by = "Experiment", gene.family = 'chemokines', verbose = FALSE)
expect_true(is.ggplot(p))
})

test_that("plot_cpdb works 5",{
p <- plot_cpdb("B cell", "cell", kidneyimmune, 'celltype', means, pvals, split.by = "Experiment", gene.family = 'chemokines', verbose = FALSE, default_style = FALSE, p.adjust.method = 'BH')
expect_true(is.ggplot(p))
})


test_that("werid characters are ok", {
# edit the example objects to simulate Rachel's objects
# rename B cells to TRC+
Expand Down

0 comments on commit 85ecc9e

Please sign in to comment.