Description Usage Arguments Value Examples
Function to estimate the type cell proportions in an unclassified cytometry data set denoted X_s by using the classification Lab_source from an other cytometry data set X_s. With this function the computation of the estimate of the class proportions is done with a descent ascent or minmax or two algorithms.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
X_s |
a cytometry dataframe with only |
X_t |
a cytometry dataframe with only |
Lab_source |
a vector of length |
Lab_target |
a vector of length |
theta_true |
If available, gold-standard proportions in the target data
set |
method |
a character string indicating which method to use to
compute the cytopt, either |
eps |
a float value of regularization parameter of the Wasserstein distance. Default is |
n_iter |
an integer Constant that iterate method select. Default is |
power |
a float constant the step size policy of the gradient ascent method is step/n^power. Default is |
step_grad |
an integer number step size of the gradient descent algorithm of the outer loop.
Default is |
step |
an integer constant that multiply the step-size policy. Default is |
lbd |
a float constant that multiply the step-size policy. Default is |
n_out |
an integer number of iterations in the outer loop. This loop corresponds to the gradient
descent algorithm to minimize the regularized Wasserstein distance between the source and
target data sets. Default is |
n_stoc |
an integer number of iterations in the inner loop. This loop corresponds to the stochastic
algorithm that approximates a maximizer of the semi dual problem. Default is |
minMaxScaler |
a logical flag indicating to whether to scale observations
between 0 and 1. Default is |
monitoring |
a logical flag indicating to possibly monitor the gap between the estimated proportions and the manual
gold-standard. Default is |
thresholding |
a logical flag indicating whether to threshold negative
values. Default is |
a object of class CytOpt
, which is a list of two elements:
proportions
a data.frame
with the (optionally true and)
estimated proportions for each method
monitoring
a list of estimates over the optimization iterations
for each method
(listed within)
1 2 3 4 5 6 7 8 9 | if(interactive()){
res <- CytOpT(X_s = HIPC_Stanford_1228_1A, X_t = HIPC_Stanford_1369_1A,
Lab_source = HIPC_Stanford_1228_1A_labels,
method='minmax')
summary(res)
plot(res)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.