similarity_bootstrap: Bootstraps training and prediction of scRNA-seq data using...

Description Usage Arguments Value Examples

View source: R/similarity_bootstrap.R

Description

Bootstraps training and prediction of scRNA-seq data using binomial/multinomial logistic regression with tunable penalties

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
similarity_bootstrap(
  trainingSet,
  trainingCellType,
  testingSet,
  nboots = 50,
  simplify = FALSE,
  percent_probability = TRUE,
  bs_nCores = 10,
  train_nCores = parallel::detectCores(),
  verbose = FALSE,
  ...
)

Arguments

trainingSet

Seurat object, SummarizedExperiment object or expression matrix for training

trainingCellType

The cell types/clusters in the training data set

testingSet

Seurat object, SummarizedExperiment object or expression matrix for testing

nboots

integet specifying number of bootstrap runs to run

simplify

logical. collapse the predictions to a single data frame

percent_probability

logical. return as percentage or logit

bs_nCores

integer specifying number of cores for parallelization (for bootstrap).

train_nCores

integer specifying number of cores for parallelization (for glmnet).

verbose

logical. if TRUE, print the training/prediction steps. Otherwise, minimal messages will be returned on the screen

...

other functions pass to glmnet and predict. see ?glmnet and ?predict.glmnet

Value

Generates prediction.

Examples

1
pred <- predScSimilarity(model, test.sce)

zktuong/kelvinny documentation built on Oct. 22, 2020, 1:27 p.m.