View source: R/OriginalModel.R
ref_combat_impute | R Documentation |
A function used to perform reference batch correction and imputation in the
testing data for gene signatures that require retraining of the model.
We used the k-nearest neighbors to impute the expression values for missing gene(s).
The imputation operation is achieved using impute.knn
.
Since the computational time for the imputation step can be excessive for large
number of missing genes. We made some constrains to prevent the overflow of imputation
operation. The evaluation will not run if more than geneMax
*100\
of the genes are not found for the corresponding gene signature in the input study.
By default geneMax
= 0.8, so the evaluation will not run if more than 80\
of the genes are missing when matching the input study to the reference data.
ref_combat_impute(
theObject_train,
useAssay,
gene_set,
input,
SigName,
adj,
geneMax = 0.8
)
theObject_train |
A SummarizedExperiment object that has been pre-stored in the data file: OriginalTrainingData. |
useAssay |
A character string or an integer specifying the assay in the |
gene_set |
A character vector that includes gene symbols for selected gene signature. |
input |
A SummarizedExperiment object with gene symbols as the assay row names. |
SigName |
Optional. A character string that indicates the name for |
adj |
A small real number used in combat to solve for genes with 0 counts in rare cases. Not required for most of cases. |
geneMax |
A real number between 0 and 1. This is used to detect the
maximum percent missing genes allowed in the evaluated signatures.
See |
Gene set subset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.