diff --git a/R/clean_DIANN.R b/R/clean_DIANN.R index 38cea27b..0ed98b05 100644 --- a/R/clean_DIANN.R +++ b/R/clean_DIANN.R @@ -221,32 +221,24 @@ #' Assign IsotopeLabelType for DIANN protein turnover workflows. #' -#' Dispatches to one of two classification paths depending on \code{has_channel}: +#' Two paths, chosen by \code{has_channel}. With a \code{Channel} column, +#' \code{Channel} maps straight to \code{IsotopeLabelType} (\code{"H"} and +#' \code{"L"} pass through, anything else becomes \code{NA}) and is then +#' dropped; \code{labeledAminoAcids} acts only as the opt-in flag, and +#' sequences are not inspected. #' -#' \strong{Channel-based path} (\code{has_channel = TRUE}): \code{Channel} -#' values are mapped directly to \code{IsotopeLabelType} (\code{"H"} → -#' \code{"H"}, \code{"L"} → \code{"L"}, anything else → \code{NA}), and the -#' \code{Channel} column is then dropped. \code{labeledAminoAcids} acts solely -#' as the opt-in flag that enables this path; the amino acid codes are -#' \strong{not} used to validate or filter \code{ModifiedSequence}. -#' -#' \strong{ModifiedSequence-parsing path} (\code{has_channel = FALSE}): -#' \code{PeptideSequence} (the retained \code{ModifiedSequence}) is scanned -#' for isotope-labeled amino acids, which appear in parentheses immediately -#' after the labeled residue, in the form \code{(