How to do it...

Matching spectra to peptides with protViz can be done by using the following steps:

  1. Load in the libraries and the MS data:
library(mzR)
library(protViz)
mzml_file <- file.path(getwd(), "datasets", "ch6", "MM8.mzML")
ms <- openMSfile(mzml_file)
  1. Extract the peaks and retention time from the spectrum:
p <- peaks(ms,2)
spec <- list(mZ = p[,1], intensity = p[,2])
  1. Create a plot of theoretical versus observed ion masses:
m <- psm("PEPTIDESEQ", spec, plot=TRUE)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.2.133