Skip to contents

DIA-NN counterpart to annotate_fragpipe() — always operates in "combined_file"-equivalent mode (DIA-NN's report.tsv always carries a Source_file/Run column), so the merge always matches on Sample_fp + Source_file. Validates the annotation table, compares matched (Sample_fp, Source_file) pairs and warns about any that will be dropped, then inner-joins and drops empty factor levels.

Usage

annotate_diann(input, annotation)

Arguments

input

Output of parse_diann().

annotation

Annotation data frame; must contain at least Condition, BioReplicate, TechReplicate, Sample, Sample_fp, Source_file.

Value

The inner join of annotation and input, with Sample_ID relocated to the end and empty factor levels dropped.

Examples

if (FALSE) { # \dontrun{
annotate_diann(pep_parsed, annotation)
} # }