View source: R/parallel_paramSweep.R
parallel_paramSweep | R Documentation |
Internal parallelization function for paramSweep.
**NOT RUN**
parallel_paramSweep(n, n.real.cells, real.cells, pK, pN, data, orig.commands, PCs, sct)
n |
pN iteration counter. |
n.real.cells |
Number of real cells. Set automatically during paramSweep_v3. |
real.cells |
Vector of real cell IDs. Set automatically during paramSweep_v3. |
pK |
The PC neighborhood size used to compute pANN, expressed as a proportion of the merged real-artificial data. No default is set, as pK should be adjusted for each scRNA-seq dataset. Optimal pK values can be determined using mean-variance-normalized bimodality coefficient. |
pN |
The number of generated artificial doublets, expressed as a proportion of the merged real-artificial data. Default is set to 0.25, based on observation that DoubletFinder performance is largely pN-invariant (see McGinnis, Murrow and Gartner 2019, Cell Systems). |
data |
Count matrix. Set automatically during paramSweep_v3. |
orig.commands |
Count matrix. Set automatically during paramSweep_v3. |
PCs |
Number of statistically-sigificant PCs. Set according to paramSweep_v3 arguments. |
sct |
Logical representing whether Seurat object was pre-processed using 'sctransform'. Set according to paramSweep_v3 arguments (default = F). |
Parallelization function compatible with mclapply.
Implemented by Nathan Skeene, June 2019.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.