Loads a YAML dictionary describing how to map a tabular search-engine export
onto the pep_all schema, fills in defaults, and validates the required
keys. See parse_unified() for the engine that consumes it and
get_dictionary_template() for a fill-in template.
Details
A dictionary has these keys:
found_by— theFound_Bylabel written into every row (required).columns— atarget: sourcemapping (pep_all column : raw column); must cover at leastSequence,Peptide,Area, andLength(the last only whenderive.length_from_sequenceis nottrue).mode—"individual_files"(join onSample_fp, default) or"combined_file"(join onSample_fp+Source_file; then also mapSource_file).read$file/read$delim— filename to read in each sample subfolder and its delimiter (defaults"results.tsv", tab).derive$length_from_sequence— iftrue,Length <- nchar(Sequence).derive$format_charge— iftrue(default),Charge <- paste0("+ ", Charge).derive$peptide_id— column names pasted intoPeptideID(defaultc("ProteinFirst", "m_z", "Charge")).
Examples
if (FALSE) { # \dontrun{
dict <- read_dictionary(
system.file("extdata", "dictionaries", "fragpipe.yaml", package = "HowMaHiCo")
)
} # }