From eef476492dc8c9550f4b1a91abb70b7653ed995c Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Tue, 26 May 2026 21:39:25 -0400 Subject: [PATCH] Add a fallback if IsotopeLabelType is missing from dataset --- R/clean_DIANN.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/R/clean_DIANN.R b/R/clean_DIANN.R index 4332ddf..4428a65 100644 --- a/R/clean_DIANN.R +++ b/R/clean_DIANN.R @@ -107,6 +107,9 @@ cleanDIANNChunk = function(input, output_path, MBR, quantificationColumn, pos, calculateAnomalyScores = calculateAnomalyScores, anomalyModelFeatures = anomalyModelFeatures ) + if (!is.element("IsotopeLabelType", colnames(input))) { + input <- dplyr::mutate(input, IsotopeLabelType = "L") + } #input = MSstatsMakeAnnotation(input, annotation) .writeChunkToFile(input, output_path, pos) NULL