Description Usage Arguments Value Examples
This functions runs in parallel L
ICP runs, which is the computational
bottleneck of ILoReg. With ~ 3,000 cells this step should be completed
in ~ 2 h and ~ 1 h with 3 and 12 logical processors (threads), respectively.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | RunParallelICP.SingleCellExperiment(
object,
k,
d,
L,
r,
C,
reg.type,
max.iter,
threads
)
## S4 method for signature 'SingleCellExperiment'
RunParallelICP(
object,
k = 15,
d = 0.3,
L = 200,
r = 5,
C = 0.3,
reg.type = "L1",
max.iter = 200,
threads = 0
)
|
object |
An object of |
k |
A positive integer greater or equal to |
d |
A numeric greater than |
L |
A positive integer greater than |
r |
A positive integer that denotes the number of reiterations
performed until the ICP algorithm stops.
Increasing recommended with a significantly larger sample size
(tens of thousands of cells). Default is |
C |
A positive real number denoting the cost of constraints violation in
the L1-regularized logistic regression model from the LIBLINEAR library.
Decreasing leads to more stringent feature selection, i.e. less genes are
selected that are used to build the projection classifier. Decreasing to a
very low value (~ |
reg.type |
"L1" or "L2". L2-regularization was not investigated in the manuscript, but it leads to a more conventional outcome (less subpopulations). Default is "L1". |
max.iter |
A positive integer that denotes
the maximum number of iterations performed until ICP stops. This parameter
is only useful in situations where ICP converges extremely slowly, preventing
the algorithm to run too long. In most cases, reaching
the number of reiterations ( |
threads |
A positive integer that specifies how many logical processors
(threads) to use in parallel computation.
Set |
an object of SingleCellExperiment
class
1 2 3 4 5 | library(SingleCellExperiment)
sce <- SingleCellExperiment(assays = list(logcounts = pbmc3k_500))
sce <- PrepareILoReg(sce)
## These settings are just to accelerate the example, use the defaults.
sce <- RunParallelICP(sce,L=2,threads=1,C=0.1,r=1,k=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.