Check input parameters
check_parameters(
matrix,
penalty,
algorithm,
cross_validation,
seed,
n_folds,
percent_samples,
r_threshold,
regulators,
targets,
regulators_num,
verbose,
cores,
...
)
An expression matrix, cells by genes
The type of regularization.
This can take either one of the following choices: L0
, L0L1
and L0L2
.
For high-dimensional and sparse data, such as single-cell sequencing data, L0L2
is more effective.
The type of algorithm used to minimize the objective function.
Currently CD
and CDPSI
are supported.
The CDPSI
algorithm may yield better results, but it also increases running time.
Check whether cross validation is used.
The seed used in randomly shuffling the data for cross-validation.
The number of folds for cross-validation.
The percent of all samples used for sparse_regression
. Default set to 1.
Threshold of \(R^2\) or correlation coefficient.
A character vector with the regulators to consider for CSN inference.
A character vector with the targets to consider for CSN inference.
The number of non-zore coefficients, this value will affect the final performance. The maximum support size at which to terminate the regularization path. Recommend setting this to a small fraction of min(n,p) (e.g. 0.05 * min(n,p)) as L0 regularization typically selects a small portion of non-zeros.
Logical value. Whether to print detailed information.
Number of CPU cores used. Setting to parallelize the computation with foreach
.
Parameters for other methods.
Not return value, called for check input parameters