Skip to content

Commit

Permalink
Merge pull request #85 from Vitek-Lab/devel
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
devonjkohler authored Feb 14, 2024
2 parents 1c871e0 + 81da1b0 commit fc90cfa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions R/converters.R
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fc90cfa

Please sign in to comment.