Skip to contents

The generic counterpart of annotate_fragpipe() for the custom path: validates the annotation's minimal columns, warns about samples present on only one side, and inner-joins on Sample_fp ("individual_files") or Sample_fp + Source_file ("combined_file"). Unlike annotate_fragpipe() it relocates Sample_ID to the last column rather than after Is_Unique (a generic export need not carry FragPipe's Is_Unique column).

Usage

annotate_unified(input, annotation, mode = "individual_files")

Arguments

input

Output of parse_unified().

annotation

Annotation data frame; must contain at least Condition, BioReplicate, TechReplicate, Sample, Sample_fp (and Source_file when mode = "combined_file").

mode

"individual_files" (default) or "combined_file".

Value

The inner join of annotation and input.

Examples

if (FALSE) { # \dontrun{
annotate_unified(parsed, annotation, mode = "individual_files")
} # }