Browse code

Fix R CMD CHECK warning

Yichen Wang authored on 29/09/2022 08:58:00
Showing 1 changed files
... ...
@@ -24,6 +24,9 @@ that stores the stats table within the metadata of the
24 24
 SingleCellExperiment object. Required.}
25 25
 
26 26
 \item{...}{Other arguments passed to the function.}
27
+
28
+\item{value}{The summary table for QC statistics generated from SingleCellTK
29
+to be added to the SCE object.}
27 30
 }
28 31
 \value{
29 32
 For \code{getSampleSummaryStatsTable}, A matrix/array object. 
Browse code

Fix Rd man warnings

Yichen Wang authored on 29/09/2022 03:01:51
Showing 1 changed files
... ...
@@ -2,12 +2,18 @@
2 2
 % Please edit documentation in R/allGenerics.R, R/sampleSummaryStats.R
3 3
 \name{getSampleSummaryStatsTable}
4 4
 \alias{getSampleSummaryStatsTable}
5
+\alias{setSampleSummaryStatsTable<-}
5 6
 \alias{getSampleSummaryStatsTable,SingleCellExperiment-method}
7
+\alias{setSampleSummaryStatsTable<-,SingleCellExperiment-method}
6 8
 \title{Stores and returns table of SCTK QC outputs to metadata.}
7 9
 \usage{
8 10
 getSampleSummaryStatsTable(inSCE, statsName, ...)
9 11
 
12
+setSampleSummaryStatsTable(inSCE, statsName, ...) <- value
13
+
10 14
 \S4method{getSampleSummaryStatsTable}{SingleCellExperiment}(inSCE, statsName, ...)
15
+
16
+\S4method{setSampleSummaryStatsTable}{SingleCellExperiment}(inSCE, statsName, ...) <- value
11 17
 }
12 18
 \arguments{
13 19
 \item{inSCE}{Input \linkS4class{SingleCellExperiment} object with saved
... ...
@@ -20,8 +26,10 @@ SingleCellExperiment object. Required.}
20 26
 \item{...}{Other arguments passed to the function.}
21 27
 }
22 28
 \value{
23
-A matrix/array object. Contains a summary table for QC statistics
24
-generated from SingleCellTK.
29
+For \code{getSampleSummaryStatsTable}, A matrix/array object. 
30
+Contains a summary table for QC statistics generated from SingleCellTK. For
31
+\code{setSampleSummaryStatsTable<-}, A SingleCellExperiment object where the 
32
+summary table is updated in the \code{metadata} slot.
25 33
 }
26 34
 \description{
27 35
 Stores and returns table of QC metrics generated from
Browse code

Document ... argument in get/list/setSampleSummaryStatsTable. Add rstantools in DESCRIPTION to avoid dependencies in github workflow check

rz2333 authored on 21/02/2022 22:26:18
Showing 1 changed files
... ...
@@ -16,6 +16,8 @@ getSampleSummaryStatsTable(inSCE, statsName, ...)
16 16
 \item{statsName}{A \code{character} value indicating the slot
17 17
 that stores the stats table within the metadata of the
18 18
 SingleCellExperiment object. Required.}
19
+
20
+\item{...}{Other arguments passed to the function.}
19 21
 }
20 22
 \value{
21 23
 A matrix/array object. Contains a summary table for QC statistics
Browse code

Edits to sampleSummaryStatsTable; setter/getter functions now have set/get prefixes

Yusuke Koga authored on 09/02/2022 13:50:44
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/allGenerics.R, R/sampleSummaryStats.R
3
+\name{getSampleSummaryStatsTable}
4
+\alias{getSampleSummaryStatsTable}
5
+\alias{getSampleSummaryStatsTable,SingleCellExperiment-method}
6
+\title{Stores and returns table of SCTK QC outputs to metadata.}
7
+\usage{
8
+getSampleSummaryStatsTable(inSCE, statsName, ...)
9
+
10
+\S4method{getSampleSummaryStatsTable}{SingleCellExperiment}(inSCE, statsName, ...)
11
+}
12
+\arguments{
13
+\item{inSCE}{Input \linkS4class{SingleCellExperiment} object with saved
14
+\link{assay} data and/or \link{colData} data. Required.}
15
+
16
+\item{statsName}{A \code{character} value indicating the slot
17
+that stores the stats table within the metadata of the
18
+SingleCellExperiment object. Required.}
19
+}
20
+\value{
21
+A matrix/array object. Contains a summary table for QC statistics
22
+generated from SingleCellTK.
23
+}
24
+\description{
25
+Stores and returns table of QC metrics generated from
26
+ QC algorithms within the metadata slot of the SingleCellExperiment object.
27
+}
28
+\examples{
29
+data(scExample, package = "singleCellTK")
30
+sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'")
31
+sce <- sampleSummaryStats(sce, simple = TRUE, statsName = "qc_table")
32
+getSampleSummaryStatsTable(sce, statsName = "qc_table")
33
+}