Skip to content

Commit

Permalink
Merge pull request #21 from mdnestor/master
Browse files Browse the repository at this point in the history
simplify filter_msgf_data
  • Loading branch information
vladpetyuk authored Sep 25, 2020
2 parents b167535 + 2e5dbe6 commit b3d9d25
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/filter_msgf_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ filter_msgf_data <- function(msnid,
if (level == "peptide") {
msnid$msmsScore <- -log10(msnid$PepQValue)
msnid$absParentMassErrorPPM <- abs(mass_measurement_error(msnid))
}

filtObj <- MSnIDFilter(msnid)

if (level == "peptide") {
filtObj <- MSnIDFilter(msnid)
filtObj$absParentMassErrorPPM <- list(comparison="<", threshold=10.0)
filtObj$msmsScore <- list(comparison=">", threshold=2.0)
method <- "Nelder-Mead"
Expand Down

0 comments on commit b3d9d25

Please sign in to comment.