getWeightsConstraints: Get constraints for weights

getWeightsConstraintsR Documentation

Get constraints for weights

Description

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


Vitek-Lab/SharedPeptidesExplorer documentation built on April 14, 2025, 1:45 p.m.