Reads peptide.csv from a PEAKS export subfolder, renames/derives the
core columns (Sequence, Charge, Nter/Cter, ...), pivots the
per-sample Area#<sample>/ms2r_score_#<sample>/... columns into long
format, and parses the ion-mobility column according to instrument.
Arguments
- filedir
Top-level directory containing
folder_peaks_db.- folder_peaks_db
PEAKS export subfolder name (relative to
filedir) containingpeptide.csv.- instrument
One of
"tims_tof"(parses theX1_k0_Rangecolumn directly intoinvk0),"faims_orbi", or"orbi"(both repurpose Compensation VoltageCVas a stand-in forinvk0— "not fully supported yet").
Value
A long-format data frame with one row per peptide-sample
observation, including the parsed invk0/invk0_start/invk0_end
columns.
Examples
if (FALSE) { # \dontrun{
read_peaks(getwd(), "JY_PEAKS_01", instrument = "tims_tof")
} # }