... | ... |
@@ -68,7 +68,6 @@ Imports: |
68 | 68 |
scran, |
69 | 69 |
Seurat (>= 3.1.3), |
70 | 70 |
shiny, |
71 |
- shinyDirectoryInput, |
|
72 | 71 |
shinyFiles, |
73 | 72 |
shinyWidgets, |
74 | 73 |
shinyjs, |
... | ... |
@@ -111,9 +110,8 @@ Suggests: |
111 | 110 |
org.Mm.eg.db, |
112 | 111 |
stringr, |
113 | 112 |
harmony, |
114 |
- liger |
|
115 |
-Remotes: |
|
116 |
- joshua-d-campbell/shiny-directory-input, |
|
113 |
+ liger, |
|
114 |
+ shinyDirectoryInput |
|
117 | 115 |
VignetteBuilder: knitr |
118 | 116 |
URL: https://compbiomed.github.io/sctk_docs/ |
119 | 117 |
BugReports: https://github.com/compbiomed/singleCellTK/issues |
... | ... |
@@ -20,8 +20,9 @@ |
20 | 20 |
#' Refer \code{anndata.write_h5ad} documentation for details. Default \code{NULL}. |
21 | 21 |
#' @examples |
22 | 22 |
#' data(sce_chcl, package = "scds") |
23 |
+#' \dontrun{ |
|
23 | 24 |
#' exportSCEtoAnnData(sce=sce_chcl, compression="gzip") |
24 |
-#' |
|
25 |
+#' } |
|
25 | 26 |
#' @export |
26 | 27 |
exportSCEtoAnnData <- function(sce, |
27 | 28 |
useAssay = 'counts', |
... | ... |
@@ -13,8 +13,9 @@ |
13 | 13 |
#' @param sample Name of the sample. It will be used as the prefix of file names. |
14 | 14 |
#' @examples |
15 | 15 |
#' data(sce_chcl, package = "scds") |
16 |
+#' \dontrun{ |
|
16 | 17 |
#' exportSCEtoFlatFile(sce_chcl, "sce_chcl") |
17 |
-#' |
|
18 |
+#' } |
|
18 | 19 |
#' @export |
19 | 20 |
#' @importFrom SummarizedExperiment colData rowData |
20 | 21 |
exportSCEtoFlatFile <- function(sce, |
... | ... |
@@ -41,7 +41,7 @@ |
41 | 41 |
#' the relative widths for each plot. |
42 | 42 |
#' @examples |
43 | 43 |
#' data(scExample, package="singleCellTK") |
44 |
-#' \donttest{ |
|
44 |
+#' \dontrun{ |
|
45 | 45 |
#' sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'") |
46 | 46 |
#' sce <- getUMAP(inSCE=sce, useAssay="counts", reducedDimName="UMAP") |
47 | 47 |
#' sce <- runPerCellQC(sce) |
... | ... |
@@ -85,7 +85,7 @@ reportCellQC <- function(inSCE, output_file = NULL, |
85 | 85 |
#' @examples |
86 | 86 |
#' data(scExample, package = "singleCellTK") |
87 | 87 |
#' sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'") |
88 |
-#' \donttest{ |
|
88 |
+#' \dontrun{ |
|
89 | 89 |
#' sce <- runDecontX(sce) |
90 | 90 |
#' sce <- getUMAP(sce) |
91 | 91 |
#' reportQCTool(inSCE = sce, algorithm = "DecontX") |
... | ... |
@@ -21,7 +21,7 @@ |
21 | 21 |
#' @examples |
22 | 22 |
#' data(scExample, package = "singleCellTK") |
23 | 23 |
#' sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'") |
24 |
-#' \donttest{ |
|
24 |
+#' \dontrun{ |
|
25 | 25 |
#' sce <- runCellQC(sce) |
26 | 26 |
#' } |
27 | 27 |
#' @export |
... | ... |
@@ -141,7 +141,7 @@ runCellQC <- function(inSCE, |
141 | 141 |
#' of \code{inSCE}. |
142 | 142 |
#' @examples |
143 | 143 |
#' data(scExample, package = "singleCellTK") |
144 |
-#' \donttest{ |
|
144 |
+#' \dontrun{ |
|
145 | 145 |
#' sce <- runDropletQC(sce) |
146 | 146 |
#' } |
147 | 147 |
#' @export |
... | ... |
@@ -9,11 +9,10 @@ |
9 | 9 |
#' @examples |
10 | 10 |
#' data(sce_chcl, package = "scds") |
11 | 11 |
#' sce_chcl <- scater_logNormCounts(sce_chcl,"logcounts", "counts") |
12 |
-#' print(sce_chcl) |
|
13 | 12 |
scater_logNormCounts <- function(inSCE, logAssayName = "ScaterLogNormCounts", useAssay = "counts"){ |
14 | 13 |
inSCE <- scater::logNormCounts( |
15 | 14 |
x = inSCE, |
16 | 15 |
name = logAssayName, |
17 | 16 |
exprs_values = useAssay) |
18 | 17 |
return(inSCE) |
19 |
-} |
|
20 | 18 |
\ No newline at end of file |
19 |
+} |
... | ... |
@@ -8,7 +8,6 @@ |
8 | 8 |
#' @examples |
9 | 9 |
#' data(sce_chcl, package = "scds") |
10 | 10 |
#' sce_chcl <- scran_modelGeneVar(sce_chcl, "counts") |
11 |
-#' print(head(rowData(sce_chcl))) |
|
12 | 11 |
#' @importFrom SummarizedExperiment assay rowData rowData<- |
13 | 12 |
scran_modelGeneVar <- function(inSCE, assayName) { |
14 | 13 |
tempDataFrame <- data.frame(scran::modelGeneVar(assay(inSCE, assayName))) |
... | ... |
@@ -9,8 +9,11 @@ |
9 | 9 |
#' @param directory Output directory. Default is './'. |
10 | 10 |
#' @param format The format of output. It currently supports flat files, rds files |
11 | 11 |
#' and python h5 files. It can output multiple formats. Default: c("SCE", "AnnData", "FlatFile", "HTAN"). |
12 |
-#' @examples |
|
13 |
-#' exportSCE(mouseBrainSubsetSCE, format = "SCE") |
|
12 |
+#' @example |
|
13 |
+#' data(scExample) |
|
14 |
+#' \dontrun{ |
|
15 |
+#' exportSCE(sce, format = "SCE") |
|
16 |
+#' } |
|
14 | 17 |
#' @export |
15 | 18 |
exportSCE <- function(inSCE, |
16 | 19 |
samplename = "sample", |
... | ... |
@@ -100,7 +100,7 @@ A wrapper function which visualizes outputs from the |
100 | 100 |
} |
101 | 101 |
\examples{ |
102 | 102 |
data(scExample, package="singleCellTK") |
103 |
-\donttest{ |
|
103 |
+\dontrun{ |
|
104 | 104 |
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'") |
105 | 105 |
sce <- getUMAP(inSCE=sce, useAssay="counts", reducedDimName="UMAP") |
106 | 106 |
sce <- runPerCellQC(sce) |
... | ... |
@@ -33,7 +33,7 @@ A function to generate .html Rmarkdown report for the specified QC algorithm ou |
33 | 33 |
\examples{ |
34 | 34 |
data(scExample, package = "singleCellTK") |
35 | 35 |
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'") |
36 |
-\donttest{ |
|
36 |
+\dontrun{ |
|
37 | 37 |
sce <- runDecontX(sce) |
38 | 38 |
sce <- getUMAP(sce) |
39 | 39 |
reportQCTool(inSCE = sce, algorithm = "DecontX") |