Data filtering function

filter_protein(matrix, groups, min_sample = 0.5, at_least_one = FALSE)

Arguments

matrix

data frame containing LOG2 data

groups

A character vector dictating the grouping

min_sample

minimum % of samples that should have non missing protein value, or else the protein is excluded

at_least_one

TRUE means to keep the row if min_count is met for at least one condition, FALSE means min_count must be met across all groups for retention

Value

Filtered protein matrix