Skip to content

Commit 6d96f7b

Browse files
Merge pull request #26 from CCBR/pkg-doc
docs: create package doc
2 parents 5f2ecaf + cc39c32 commit 6d96f7b

6 files changed

Lines changed: 48 additions & 25 deletions

File tree

NAMESPACE

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

R/SCOT-package.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#' SCOT: Toolbox for single cell RNA-seq
2+
#'
3+
#' Designed for single-cell RNA-seq analysis with [SINCLAIR](https://github.com/CCBR/SINCLAIR).
4+
#'
5+
#' See the website for more information, documentation, and examples:
6+
#' \url{https://ccbr.github.io/SCOT}
7+
#'
8+
#' @keywords internal
9+
"_PACKAGE"
10+
11+
## usethis namespace: start
12+
## usethis namespace: end
13+
NULL

R/filter_doublets.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ filter_doublets <- function(so_in, doublet_finder_method = "DoubletFinder") {
5353
so_in <- subset(so_in, cells = colnames(so_in)[which(so_in$doubletFinder_label == "Singlet")])
5454
} else if (doublet_finder_method == "scDblFinder") {
5555
sce <- Seurat::as.SingleCellExperiment(so_in)
56-
sce_dbl <- scDblFinder::scDblFinder(sce) %>% suppressWarnings()
56+
sce_dbl <- scDblFinder::scDblFinder(sce) |> suppressWarnings()
5757
so_in$scDblFinder_label <- sce_dbl$scDblFinder.class
5858
so_in <- subset(so_in, cells = colnames(so_in)[which(so_in$scDblFinder_label == "singlet")])
5959
} else if (doublet_finder_method == "union") {
@@ -91,7 +91,7 @@ filter_doublets <- function(so_in, doublet_finder_method = "DoubletFinder") {
9191
so_in$doubletFinder_label <- dfso[[utils::tail(names(dfso@meta.data), 1)]]
9292

9393
sce <- Seurat::as.SingleCellExperiment(so_in)
94-
sce_dbl <- scDblFinder::scDblFinder(sce) %>% suppressWarnings()
94+
sce_dbl <- scDblFinder::scDblFinder(sce) |> suppressWarnings()
9595
so_in$scDblFinder_label <- sce_dbl$scDblFinder.class
9696
so_in <- subset(so_in, cells = colnames(so_in)[intersect(
9797
which(so_in$doubletFinder_label == "Singlet"),
@@ -132,7 +132,7 @@ filter_doublets <- function(so_in, doublet_finder_method = "DoubletFinder") {
132132
so_in$doubletFinder_label <- dfso[[utils::tail(names(dfso@meta.data), 1)]]
133133

134134
sce <- Seurat::as.SingleCellExperiment(so_in)
135-
sce_dbl <- scDblFinder::scDblFinder(sce) %>% suppressWarnings()
135+
sce_dbl <- scDblFinder::scDblFinder(sce) |> suppressWarnings()
136136
so_in$scDblFinder_label <- sce_dbl$scDblFinder.class
137137
so_in <- subset(so_in, cells = colnames(so_in)[unique(c(
138138
which(so_in$doubletFinder_label == "Singlet"),

R/reexports.R

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
#' dplyr pipe
2-
#' @importFrom dplyr %>%
3-
#' @export
4-
dplyr::`%>%`
5-
6-
#' magrittr assignment pipe
7-
#' @importFrom magrittr %<>%
8-
#' @export
9-
magrittr::`%<>%`
10-
111
#' walrus operator
122
#' @importFrom rlang :=
133
#' @export
@@ -21,7 +11,7 @@ rlang::.data
2111

2212
# Suppress R CMD check note 'All declared Imports should be used'.
2313
# These packages are used by Seurat, but are only listed in Seurat's Suggests field.
24-
# See \url{https://community.rstudio.com/t/how-should-a-meta-package-handle-this-note-all-declared-imports-should-be-used/23400/3}
14+
# https://community.rstudio.com/t/how-should-a-meta-package-handle-this-note-all-declared-imports-should-be-used/23400/3
2515
#' @importFrom harmony RunHarmony
2616
#' @importFrom rliger createLiger
2717
NULL

man/SCOT-package.Rd

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/reexports.Rd

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)