getWeightsConstraints | R Documentation |
Get constraints for weights
getWeightsConstraints(
params_full,
design_matrix,
weights_mode,
cols,
protein_cols,
psms_cols
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.