... | ... |
@@ -12,6 +12,7 @@ runDoubletFinder( |
12 | 12 |
seuratNfeatures = 2000, |
13 | 13 |
seuratPcs = seq(15), |
14 | 14 |
seuratRes = 1.5, |
15 |
+ sct = FALSE, |
|
15 | 16 |
formationRate = 0.075, |
16 | 17 |
nCores = NULL, |
17 | 18 |
verbose = FALSE |
... | ... |
@@ -39,6 +40,8 @@ determine number of clusters. Default \code{1:15}.} |
39 | 40 |
which adjusts the number of clusters determined via the algorithm. Default |
40 | 41 |
\code{1.5}.} |
41 | 42 |
|
43 |
+\item{sct}{Whether or not to use SCT. Default \code{FALSE}.} |
|
44 |
+ |
|
42 | 45 |
\item{formationRate}{Doublet formation rate used within algorithm. Default |
43 | 46 |
\code{0.075}.} |
44 | 47 |
|
... | ... |
@@ -58,6 +58,7 @@ Uses doubletFinder to determine cells within the dataset |
58 | 58 |
} |
59 | 59 |
\examples{ |
60 | 60 |
data(scExample, package = "singleCellTK") |
61 |
+options(future.globals.maxSize = 786432000) |
|
61 | 62 |
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'") |
62 | 63 |
sce <- runDoubletFinder(sce) |
63 | 64 |
} |
... | ... |
@@ -6,8 +6,8 @@ |
6 | 6 |
\usage{ |
7 | 7 |
runDoubletFinder( |
8 | 8 |
inSCE, |
9 |
- useAssay = "counts", |
|
10 | 9 |
sample = NULL, |
10 |
+ useAssay = "counts", |
|
11 | 11 |
seed = 12345, |
12 | 12 |
seuratNfeatures = 2000, |
13 | 13 |
seuratPcs = seq(15), |
... | ... |
@@ -18,35 +18,39 @@ runDoubletFinder( |
18 | 18 |
) |
19 | 19 |
} |
20 | 20 |
\arguments{ |
21 |
-\item{inSCE}{Input SingleCellExperiment object. Must contain a counts matrix} |
|
21 |
+\item{inSCE}{inSCE A \linkS4class{SingleCellExperiment} object.} |
|
22 | 22 |
|
23 |
-\item{useAssay}{Indicate which assay to use. Default "counts".} |
|
23 |
+\item{sample}{Character vector or colData variable name. Indicates which |
|
24 |
+sample each cell belongs to. Default \code{NULL}.} |
|
24 | 25 |
|
25 |
-\item{sample}{Numeric vector. Each cell will be assigned a sample number.} |
|
26 |
+\item{useAssay}{A string specifying which assay in the SCE to use. Default |
|
27 |
+\code{"counts"}.} |
|
26 | 28 |
|
27 |
-\item{seed}{Seed for the random number generator. Default 12345.} |
|
29 |
+\item{seed}{Seed for the random number generator, can be set to \code{NULL}. |
|
30 |
+Default \code{12345}.} |
|
28 | 31 |
|
29 | 32 |
\item{seuratNfeatures}{Integer. Number of highly variable genes to use. |
30 |
-Default 2000.} |
|
33 |
+Default \code{2000}.} |
|
31 | 34 |
|
32 | 35 |
\item{seuratPcs}{Numeric vector. The PCs used in seurat function to |
33 |
-determine number of clusters. Default 1:15.} |
|
36 |
+determine number of clusters. Default \code{1:15}.} |
|
34 | 37 |
|
35 |
-\item{seuratRes}{Numeric vector. The resolution parameter used in seurat, |
|
36 |
-which adjusts the number of clusters determined via the algorithm. |
|
37 |
-Default 1.5.} |
|
38 |
+\item{seuratRes}{Numeric vector. The resolution parameter used in Seurat, |
|
39 |
+which adjusts the number of clusters determined via the algorithm. Default |
|
40 |
+\code{1.5}.} |
|
38 | 41 |
|
39 |
-\item{formationRate}{Doublet formation rate used within algorithm. |
|
40 |
-Default 0.075.} |
|
42 |
+\item{formationRate}{Doublet formation rate used within algorithm. Default |
|
43 |
+\code{0.075}.} |
|
41 | 44 |
|
42 |
-\item{nCores}{Number of cores used for running the function.} |
|
45 |
+\item{nCores}{Number of cores used for running the function. Default |
|
46 |
+\code{NULL}.} |
|
43 | 47 |
|
44 |
-\item{verbose}{Boolean. Wheter to print messages from Seurat and |
|
45 |
-DoubletFinder. Default FALSE.} |
|
48 |
+\item{verbose}{Boolean. Wheter to print messages from Seurat and |
|
49 |
+DoubletFinder. Default \code{FALSE}.} |
|
46 | 50 |
} |
47 | 51 |
\value{ |
48 |
-SingleCellExperiment object containing the |
|
49 |
- 'doublet_finder_doublet_score'. |
|
52 |
+\linkS4class{SingleCellExperiment} object containing the |
|
53 |
+\code{doublet_finder_doublet_score} variable in \code{colData} slot. |
|
50 | 54 |
} |
51 | 55 |
\description{ |
52 | 56 |
Uses doubletFinder to determine cells within the dataset |
... | ... |
@@ -57,3 +61,6 @@ data(scExample, package = "singleCellTK") |
57 | 61 |
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'") |
58 | 62 |
sce <- runDoubletFinder(sce) |
59 | 63 |
} |
64 |
+\seealso{ |
|
65 |
+\code{\link{runCellQC}}, \code{\link{plotDoubletFinderResults}} |
|
66 |
+} |
... | ... |
@@ -54,6 +54,6 @@ Uses doubletFinder to determine cells within the dataset |
54 | 54 |
} |
55 | 55 |
\examples{ |
56 | 56 |
data(scExample, package = "singleCellTK") |
57 |
-sce <- sce[, colData(sce)$type != 'EmptyDroplet'] |
|
57 |
+sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'") |
|
58 | 58 |
sce <- runDoubletFinder(sce) |
59 | 59 |
} |
... | ... |
@@ -53,9 +53,7 @@ Uses doubletFinder to determine cells within the dataset |
53 | 53 |
suspected to be doublets. |
54 | 54 |
} |
55 | 55 |
\examples{ |
56 |
-\donttest{ |
|
57 | 56 |
data(scExample, package = "singleCellTK") |
58 | 57 |
sce <- sce[, colData(sce)$type != 'EmptyDroplet'] |
59 | 58 |
sce <- runDoubletFinder(sce) |
60 | 59 |
} |
61 |
-} |
... | ... |
@@ -53,7 +53,7 @@ Uses doubletFinder to determine cells within the dataset |
53 | 53 |
suspected to be doublets. |
54 | 54 |
} |
55 | 55 |
\examples{ |
56 |
-\dontrun{ |
|
56 |
+\donttest{ |
|
57 | 57 |
data(scExample, package = "singleCellTK") |
58 | 58 |
sce <- sce[, colData(sce)$type != 'EmptyDroplet'] |
59 | 59 |
sce <- runDoubletFinder(sce) |
... | ... |
@@ -43,8 +43,6 @@ Default 0.075.} |
43 | 43 |
Default FALSE.} |
44 | 44 |
|
45 | 45 |
\item{numCores}{Integer. Number of cores used to run doubletFinder. Default is 1 (no parallel computing).} |
46 |
- |
|
47 |
-\item{seed.}{Integer. Random seed set for computation. Default is 12345.} |
|
48 | 46 |
} |
49 | 47 |
\value{ |
50 | 48 |
SingleCellExperiment object containing the |
... | ... |
@@ -13,7 +13,8 @@ runDoubletFinder( |
13 | 13 |
seuratPcs = 1:15, |
14 | 14 |
seuratRes = 1.5, |
15 | 15 |
formationRate = 0.075, |
16 |
- verbose = FALSE |
|
16 |
+ verbose = FALSE, |
|
17 |
+ numCores = 1 |
|
17 | 18 |
) |
18 | 19 |
} |
19 | 20 |
\arguments{ |
... | ... |
@@ -40,6 +41,10 @@ Default 0.075.} |
40 | 41 |
|
41 | 42 |
\item{verbose}{Boolean. Wheter to print messages from Seurat and DoubletFinder. |
42 | 43 |
Default FALSE.} |
44 |
+ |
|
45 |
+\item{numCores}{Integer. Number of cores used to run doubletFinder. Default is 1 (no parallel computing).} |
|
46 |
+ |
|
47 |
+\item{seed.}{Integer. Random seed set for computation. Default is 12345.} |
|
43 | 48 |
} |
44 | 49 |
\value{ |
45 | 50 |
SingleCellExperiment object containing the |
... | ... |
@@ -13,6 +13,7 @@ runDoubletFinder( |
13 | 13 |
seuratPcs = 1:15, |
14 | 14 |
seuratRes = 1.5, |
15 | 15 |
formationRate = 0.075, |
16 |
+ nCores = NULL, |
|
16 | 17 |
verbose = FALSE |
17 | 18 |
) |
18 | 19 |
} |
... | ... |
@@ -38,8 +39,10 @@ Default 1.5.} |
38 | 39 |
\item{formationRate}{Doublet formation rate used within algorithm. |
39 | 40 |
Default 0.075.} |
40 | 41 |
|
41 |
-\item{verbose}{Boolean. Wheter to print messages from Seurat and DoubletFinder. |
|
42 |
-Default FALSE.} |
|
42 |
+\item{nCores}{Number of cores used for running the function.} |
|
43 |
+ |
|
44 |
+\item{verbose}{Boolean. Wheter to print messages from Seurat and |
|
45 |
+DoubletFinder. Default FALSE.} |
|
43 | 46 |
} |
44 | 47 |
\value{ |
45 | 48 |
SingleCellExperiment object containing the |
... | ... |
@@ -11,7 +11,7 @@ runDoubletFinder( |
11 | 11 |
seed = 12345, |
12 | 12 |
seuratNfeatures = 2000, |
13 | 13 |
seuratPcs = 1:15, |
14 |
- seuratRes = c(0.5, 1, 1.5, 2), |
|
14 |
+ seuratRes = 1.5, |
|
15 | 15 |
formationRate = 0.075, |
16 | 16 |
verbose = FALSE |
17 | 17 |
) |
... | ... |
@@ -33,7 +33,7 @@ determine number of clusters. Default 1:15.} |
33 | 33 |
|
34 | 34 |
\item{seuratRes}{Numeric vector. The resolution parameter used in seurat, |
35 | 35 |
which adjusts the number of clusters determined via the algorithm. |
36 |
-Default c(0.5, 1, 1.5, 2).} |
|
36 |
+Default 1.5.} |
|
37 | 37 |
|
38 | 38 |
\item{formationRate}{Doublet formation rate used within algorithm. |
39 | 39 |
Default 0.075.} |
... | ... |
@@ -25,17 +25,21 @@ runDoubletFinder( |
25 | 25 |
|
26 | 26 |
\item{seed}{Seed for the random number generator. Default 12345.} |
27 | 27 |
|
28 |
-\item{seuratNfeatures}{Integer. Number of highly variable genes to use. Default 2000.} |
|
28 |
+\item{seuratNfeatures}{Integer. Number of highly variable genes to use. |
|
29 |
+Default 2000.} |
|
29 | 30 |
|
30 | 31 |
\item{seuratPcs}{Numeric vector. The PCs used in seurat function to |
31 | 32 |
determine number of clusters. Default 1:15.} |
32 | 33 |
|
33 |
-\item{seuratRes}{Numeric vector. The resolution parameter used in seurat, which adjusts the |
|
34 |
-number of clusters determined via the algorithm. Default c(0.5, 1, 1.5, 2).} |
|
34 |
+\item{seuratRes}{Numeric vector. The resolution parameter used in seurat, |
|
35 |
+which adjusts the number of clusters determined via the algorithm. |
|
36 |
+Default c(0.5, 1, 1.5, 2).} |
|
35 | 37 |
|
36 |
-\item{formationRate}{Doublet formation rate used within algorithm. Default 0.075.} |
|
38 |
+\item{formationRate}{Doublet formation rate used within algorithm. |
|
39 |
+Default 0.075.} |
|
37 | 40 |
|
38 |
-\item{verbose}{Boolean. Wheter to print messages from Seurat and DoubletFinder. Default FALSE.} |
|
41 |
+\item{verbose}{Boolean. Wheter to print messages from Seurat and DoubletFinder. |
|
42 |
+Default FALSE.} |
|
39 | 43 |
} |
40 | 44 |
\value{ |
41 | 45 |
SingleCellExperiment object containing the |
... | ... |
@@ -4,10 +4,17 @@ |
4 | 4 |
\alias{runDoubletFinder} |
5 | 5 |
\title{Generates a doublet score for each cell via doubletFinder} |
6 | 6 |
\usage{ |
7 |
-runDoubletFinder(inSCE, useAssay = "counts", sample = NULL, |
|
8 |
- seed = 12345, seuratNfeatures = 2000, seuratPcs = 1:15, |
|
9 |
- seuratRes = c(0.5, 1, 1.5, 2), formationRate = 0.075, |
|
10 |
- verbose = FALSE) |
|
7 |
+runDoubletFinder( |
|
8 |
+ inSCE, |
|
9 |
+ useAssay = "counts", |
|
10 |
+ sample = NULL, |
|
11 |
+ seed = 12345, |
|
12 |
+ seuratNfeatures = 2000, |
|
13 |
+ seuratPcs = 1:15, |
|
14 |
+ seuratRes = c(0.5, 1, 1.5, 2), |
|
15 |
+ formationRate = 0.075, |
|
16 |
+ verbose = FALSE |
|
17 |
+) |
|
11 | 18 |
} |
12 | 19 |
\arguments{ |
13 | 20 |
\item{inSCE}{Input SingleCellExperiment object. Must contain a counts matrix} |
... | ... |
@@ -4,17 +4,10 @@ |
4 | 4 |
\alias{runDoubletFinder} |
5 | 5 |
\title{Generates a doublet score for each cell via doubletFinder} |
6 | 6 |
\usage{ |
7 |
-runDoubletFinder( |
|
8 |
- inSCE, |
|
9 |
- useAssay = "counts", |
|
10 |
- sample = NULL, |
|
11 |
- seed = 12345, |
|
12 |
- seuratNfeatures = 2000, |
|
13 |
- seuratPcs = 1:15, |
|
14 |
- seuratRes = c(0.5, 1, 1.5, 2), |
|
15 |
- formationRate = 0.075, |
|
16 |
- verbose = FALSE |
|
17 |
-) |
|
7 |
+runDoubletFinder(inSCE, useAssay = "counts", sample = NULL, |
|
8 |
+ seed = 12345, seuratNfeatures = 2000, seuratPcs = 1:15, |
|
9 |
+ seuratRes = c(0.5, 1, 1.5, 2), formationRate = 0.075, |
|
10 |
+ verbose = FALSE) |
|
18 | 11 |
} |
19 | 12 |
\arguments{ |
20 | 13 |
\item{inSCE}{Input SingleCellExperiment object. Must contain a counts matrix} |
... | ... |
@@ -4,10 +4,17 @@ |
4 | 4 |
\alias{runDoubletFinder} |
5 | 5 |
\title{Generates a doublet score for each cell via doubletFinder} |
6 | 6 |
\usage{ |
7 |
-runDoubletFinder(inSCE, useAssay = "counts", sample = NULL, |
|
8 |
- seed = 12345, seuratNfeatures = 2000, seuratPcs = 1:15, |
|
9 |
- seuratRes = c(0.5, 1, 1.5, 2), formationRate = 0.075, |
|
10 |
- verbose = FALSE) |
|
7 |
+runDoubletFinder( |
|
8 |
+ inSCE, |
|
9 |
+ useAssay = "counts", |
|
10 |
+ sample = NULL, |
|
11 |
+ seed = 12345, |
|
12 |
+ seuratNfeatures = 2000, |
|
13 |
+ seuratPcs = 1:15, |
|
14 |
+ seuratRes = c(0.5, 1, 1.5, 2), |
|
15 |
+ formationRate = 0.075, |
|
16 |
+ verbose = FALSE |
|
17 |
+) |
|
11 | 18 |
} |
12 | 19 |
\arguments{ |
13 | 20 |
\item{inSCE}{Input SingleCellExperiment object. Must contain a counts matrix} |
... | ... |
@@ -4,23 +4,29 @@ |
4 | 4 |
\alias{runDoubletFinder} |
5 | 5 |
\title{Generates a doublet score for each cell via doubletFinder} |
6 | 6 |
\usage{ |
7 |
-runDoubletFinder(sce, sample = NULL, seed = 12345, seurat.pcs = 1:15, |
|
8 |
- seurat.res = 2, seurat.nfeatures = 2000, verbose = FALSE) |
|
7 |
+runDoubletFinder(inSCE, useAssay = "counts", sample = NULL, |
|
8 |
+ seed = 12345, seuratNfeatures = 2000, seuratPcs = 1:15, |
|
9 |
+ seuratRes = c(0.5, 1, 1.5, 2), formationRate = 0.075, |
|
10 |
+ verbose = FALSE) |
|
9 | 11 |
} |
10 | 12 |
\arguments{ |
11 |
-\item{sce}{SingleCellExperiment object. Must contain a counts matrix} |
|
13 |
+\item{inSCE}{Input SingleCellExperiment object. Must contain a counts matrix} |
|
14 |
+ |
|
15 |
+\item{useAssay}{Indicate which assay to use. Default "counts".} |
|
12 | 16 |
|
13 | 17 |
\item{sample}{Numeric vector. Each cell will be assigned a sample number.} |
14 | 18 |
|
15 | 19 |
\item{seed}{Seed for the random number generator. Default 12345.} |
16 | 20 |
|
17 |
-\item{seurat.pcs}{Numeric vector. The PCs used in seurat function to |
|
21 |
+\item{seuratNfeatures}{Integer. Number of highly variable genes to use. Default 2000.} |
|
22 |
+ |
|
23 |
+\item{seuratPcs}{Numeric vector. The PCs used in seurat function to |
|
18 | 24 |
determine number of clusters. Default 1:15.} |
19 | 25 |
|
20 |
-\item{seurat.res}{Numeric vector. The resolution parameter used in seurat |
|
21 |
-which adjusts the number of clusters determined via the algorithm. Default 2.} |
|
26 |
+\item{seuratRes}{Numeric vector. The resolution parameter used in seurat, which adjusts the |
|
27 |
+number of clusters determined via the algorithm. Default c(0.5, 1, 1.5, 2).} |
|
22 | 28 |
|
23 |
-\item{seurat.nfeatures}{Integer. Number of highly variable genes to use. Default 2000.} |
|
29 |
+\item{formationRate}{Doublet formation rate used within algorithm. Default 0.075.} |
|
24 | 30 |
|
25 | 31 |
\item{verbose}{Boolean. Wheter to print messages from Seurat and DoubletFinder. Default FALSE.} |
26 | 32 |
} |
... | ... |
@@ -4,15 +4,8 @@ |
4 | 4 |
\alias{runDoubletFinder} |
5 | 5 |
\title{Generates a doublet score for each cell via doubletFinder} |
6 | 6 |
\usage{ |
7 |
-runDoubletFinder( |
|
8 |
- sce, |
|
9 |
- sample = NULL, |
|
10 |
- seed = 12345, |
|
11 |
- seurat.pcs = 1:15, |
|
12 |
- seurat.res = 2, |
|
13 |
- seurat.nfeatures = 2000, |
|
14 |
- verbose = FALSE |
|
15 |
-) |
|
7 |
+runDoubletFinder(sce, sample = NULL, seed = 12345, seurat.pcs = 1:15, |
|
8 |
+ seurat.res = 2, seurat.nfeatures = 2000, verbose = FALSE) |
|
16 | 9 |
} |
17 | 10 |
\arguments{ |
18 | 11 |
\item{sce}{SingleCellExperiment object. Must contain a counts matrix} |
... | ... |
@@ -4,8 +4,15 @@ |
4 | 4 |
\alias{runDoubletFinder} |
5 | 5 |
\title{Generates a doublet score for each cell via doubletFinder} |
6 | 6 |
\usage{ |
7 |
-runDoubletFinder(sce, sample, seed = 12345, seurat.pcs = 1:15, |
|
8 |
- seurat.res = 1.2, ...) |
|
7 |
+runDoubletFinder( |
|
8 |
+ sce, |
|
9 |
+ sample = NULL, |
|
10 |
+ seed = 12345, |
|
11 |
+ seurat.pcs = 1:15, |
|
12 |
+ seurat.res = 2, |
|
13 |
+ seurat.nfeatures = 2000, |
|
14 |
+ verbose = FALSE |
|
15 |
+) |
|
9 | 16 |
} |
10 | 17 |
\arguments{ |
11 | 18 |
\item{sce}{SingleCellExperiment object. Must contain a counts matrix} |
... | ... |
@@ -18,7 +25,11 @@ runDoubletFinder(sce, sample, seed = 12345, seurat.pcs = 1:15, |
18 | 25 |
determine number of clusters. Default 1:15.} |
19 | 26 |
|
20 | 27 |
\item{seurat.res}{Numeric vector. The resolution parameter used in seurat |
21 |
-which adjusts the number of clusters determined via the algorithm. Default 1.2.} |
|
28 |
+which adjusts the number of clusters determined via the algorithm. Default 2.} |
|
29 |
+ |
|
30 |
+\item{seurat.nfeatures}{Integer. Number of highly variable genes to use. Default 2000.} |
|
31 |
+ |
|
32 |
+\item{verbose}{Boolean. Wheter to print messages from Seurat and DoubletFinder. Default FALSE.} |
|
22 | 33 |
} |
23 | 34 |
\value{ |
24 | 35 |
SingleCellExperiment object containing the |
... | ... |
@@ -4,7 +4,8 @@ |
4 | 4 |
\alias{runDoubletFinder} |
5 | 5 |
\title{Generates a doublet score for each cell via doubletFinder} |
6 | 6 |
\usage{ |
7 |
-runDoubletFinder(sce, sample, seed = 12345, ...) |
|
7 |
+runDoubletFinder(sce, sample, seed = 12345, seurat.pcs = 1:15, |
|
8 |
+ seurat.res = 1.2, ...) |
|
8 | 9 |
} |
9 | 10 |
\arguments{ |
10 | 11 |
\item{sce}{SingleCellExperiment object. Must contain a counts matrix} |
... | ... |
@@ -12,6 +13,12 @@ runDoubletFinder(sce, sample, seed = 12345, ...) |
12 | 13 |
\item{sample}{Numeric vector. Each cell will be assigned a sample number.} |
13 | 14 |
|
14 | 15 |
\item{seed}{Seed for the random number generator. Default 12345.} |
16 |
+ |
|
17 |
+\item{seurat.pcs}{Numeric vector. The PCs used in seurat function to |
|
18 |
+determine number of clusters. Default 1:15.} |
|
19 |
+ |
|
20 |
+\item{seurat.res}{Numeric vector. The resolution parameter used in seurat |
|
21 |
+which adjusts the number of clusters determined via the algorithm. Default 1.2.} |
|
15 | 22 |
} |
16 | 23 |
\value{ |
17 | 24 |
SingleCellExperiment object containing the |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,26 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/doubletFinder_doubletDetection.R |
|
3 |
+\name{runDoubletFinder} |
|
4 |
+\alias{runDoubletFinder} |
|
5 |
+\title{Generates a doublet score for each cell via doubletFinder} |
|
6 |
+\usage{ |
|
7 |
+runDoubletFinder(sce, sample, seed = 12345, ...) |
|
8 |
+} |
|
9 |
+\arguments{ |
|
10 |
+\item{sce}{SingleCellExperiment object. Must contain a counts matrix} |
|
11 |
+ |
|
12 |
+\item{sample}{Numeric vector. Each cell will be assigned a sample number.} |
|
13 |
+ |
|
14 |
+\item{seed}{Seed for the random number generator. Default 12345.} |
|
15 |
+} |
|
16 |
+\value{ |
|
17 |
+SingleCellExperiment object containing the |
|
18 |
+ 'doublet_finder_doublet_score'. |
|
19 |
+} |
|
20 |
+\description{ |
|
21 |
+Uses doubletFinder to determine cells within the dataset |
|
22 |
+ suspected to be doublets. |
|
23 |
+} |
|
24 |
+\examples{ |
|
25 |
+sce <- runDoubletFinder(sce) |
|
26 |
+} |