MSnbase (version 1.20.7)

removeNoId-methods: Removes non-identified features

Description

The method removes non-identifed features in MSnExp and MSnSet instances using relevant information from the feaureData slot of a user-provide filtering vector of logicals.

Arguments

Methods

signature(object = "MSnExp", fcol = "pepseq", keep = NULL)
Removes the feature from object that have a feature fcol (default is "pepseq") equal to NA. Alternatively, one can also manually define keep, a vector of logical, defining the feature to be retained.
signature(object = "MSnSet", fcol = "pepseq", keep = NULL)
As above of MSnSet instances.

See Also

MSnExp and MSnSet.

Examples

Run this code
  quantFile <- dir(system.file(package = "MSnbase", dir = "extdata"),
                     full.name = TRUE, pattern = "mzXML$")
  identFile <- dir(system.file(package = "MSnbase", dir = "extdata"),
                     full.name = TRUE, pattern = "dummyiTRAQ.mzid")
  msexp <- readMSData(quantFile)
  msexp <- addIdentificationData(msexp, identFile)
  fData(msexp)$pepseq
  length(msexp)

  ## using default fcol
  msexp2 <- removeNoId(msexp)
  length(msexp2)
  fData(msexp2)$pepseq

  ## using keep
  print(fvarLabels(msexp))
  (k <- fData(msexp)$'ms-gf:evalue' > 75)
  k[is.na(k)] <- FALSE
  k
  msexp3 <- removeNoId(msexp, keep = k)
  length(msexp3)
  fData(msexp3)$pepseq

Run the code above in your browser using DataCamp Workspace