Replace protein-level quantifications with NA if they derive from too few lower feature level quantifications
mask_protein_level_quant.RdProtein level abundances are more accurately quantified where there are more features (PSMs/peptides) to summarise from.
Usually, we are performing the summarisation
from a matrix (columns=samples, rows=features) with an associated feature to protein ID mapping.
Within the matrix, some values may be missing (NA). In order to correctly identify which proteins can
be quantified, we need to start from the feature level object and create a mask
which we can use to replace protein-level quantification values with NA.
This is can be obtained with get_protein_no_quant_mask . This can then be combined with this function
to replace protein level quantification values with NA where they were derived from too few quantification values