dataset_filter_custom | R Documentation |
Apply filtering rules to the peptide table and store results in a new intensity column. Normalization must be applied separately, see example below.
You can tweak columns "group" and "exclude" in the samples table to define desired groups and exclude either outlier samples, or entire conditions, as desired.
dataset_filter_custom(
peptides,
samples,
col_intensity,
peptide_min_detect,
peptide_frac_detect,
protein_min_peptides,
groups_min_pass
)
peptides |
typically |
samples |
typically |
col_intensity |
designated intensity column in |
peptide_min_detect |
minimum number of samples, per group (in samples table), where a peptide must be detected to count as 'valid' (per group). Value > 0 |
peptide_frac_detect |
minimum fraction of samples, per group (in samples table), where a peptide must be detected to count as 'valid' (per group). Value between 0 and 1 |
protein_min_peptides |
minimum number of 'valid' peptides, per group (in samples table), that a protein must have to count as 'valid' (per group). Value > 0 |
groups_min_pass |
minimum number of groups in which a protein must be 'valid' in order to be retained in the results. Value > 0 |
peptides
input table with results stored in column col_intensity
## Not run:
dataset$peptides = dataset_filter_custom(
dataset$peptides,
dataset$samples %>% mutate(group = tissue_type),
col_intensity = "intensity_all_group",
peptide_min_detect = 5,
peptide_frac_detect = 0.75,
protein_min_peptides = 2,
groups_min_pass = 1 # one-sided group filtering
)
dataset = normalize_peptide_intensity_column(
dataset,
col_intensity = "intensity_all_group", # same column name as above !
norm_algorithm = c("mwmb", "modebetween_protein"),
rollup_algorithm = "maxlfq"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.