From 81da1b02f773a3b2b471c874bb53c81c80ea0ba7 Mon Sep 17 00:00:00 2001 From: devonjkohler Date: Wed, 14 Feb 2024 14:59:13 -0500 Subject: [PATCH] bug fix --- R/converters.R | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/R/converters.R b/R/converters.R index 4474d39..791c59f 100644 --- a/R/converters.R +++ b/R/converters.R @@ -848,13 +848,11 @@ PDtoMSstatsPTMFormat = function(input, } msstats_input = list(PTM = ptm_input, PROTEIN = protein_input) - } - - else { + } else { if (use_unmod_peptides){ ptm_input=as.data.frame(ptm_input) - protein_input = ptm_input[!grepl(mod_id, ptm_input$PeptideSequence),] - ptm_input = ptm_input[grepl(mod_id, ptm_input$PeptideSequence),] + protein_input = ptm_input[!grepl("\\*", ptm_input$PeptideSequence),] + ptm_input = ptm_input[grepl("\\*", ptm_input$PeptideSequence),] msstats_input = list(PTM = ptm_input, PROTEIN = protein_input) } else {