Get constraints for weights
getWeightsConstraints.Rd
Get constraints for weights
Usage
getWeightsConstraints(
params_full,
design_matrix,
weights_mode,
cols,
protein_cols,
psms_cols
)
Arguments
- params_full
object generated by CVXR::Variables
- design_matrix
design matrix for weights optimization
- weights_mode
"contributions" for "sum to one" and "non-negative" conditions, "probabilities" for only "non-negative" condition.
- cols
column names of the design matrix
- protein_cols
protein names extracted from column names
- psms_cols
feature names extracted from column names