psmBoekweg is a PSM object containing 700 peptide-spectrum
matches randomly sampled from a larger dataset. The PSMs were
identified using the Sage search engine.
Format
A PSM object with 700 rows. Each PSM contains the following
metadata columns (among others):
psm_idUnique identifier for the PSM
peptidePeptide sequence
proteinsProtein identifiers
filenameSource mzML file name
scannrScan number
rankRank of the PSM
chargePrecursor charge state
hyperscoreSage hyperscore
peptide_qPeptide-level q-value (FDR)
protein_qProtein-level q-value (FDR)
rtRetention time (seconds)
Examples
data(psmBoekweg)
psmBoekweg
#> PSM with 700 rows and 40 columns.
#> Spectra: 700 unique
#> db: 572 target, 128 decoy
#> ranks: 1:700
#> names(40): psm_id peptide ... protein_q ms2_intensity
## Number of PSMs
length(psmBoekweg)
#> [1] 40
## Access peptide sequences
head(psmBoekweg$peptide)
#> [1] "VATAQDDITGDGTTSNVLIIGELLK" "ASASGSGAQVGGPISSGSSASSVTVTR"
#> [3] "DLGLSESGEDVNAAILDESGK" "FDGALNVDLTEFQTNLVPYPR"
#> [5] "MSVQPTVSLGGFEITPPVVLR" "LGQSDPAPLQHQMDIYQK"
## Filter to rank 1 PSMs only
psmRank1 <- filterPsmRank(psmBoekweg)
#> Removed 0 PSMs with rank > 1.
length(psmRank1)
#> [1] 40
## Summary of q-values
summary(psmBoekweg$peptide_q)
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> 4.338e-05 4.338e-05 4.338e-05 7.034e-02 1.200e-01 3.598e-01
## To join with the spectra, use `Spectra::joinSpectraData()`
data(spBoekweg)
head(psmBoekweg$pkey <- paste0(basename(psmBoekweg$filename),
sub("^.+scan=", "::", psmBoekweg$scannr)))
#> [1] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::124613"
#> [2] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::32698"
#> [3] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::85610"
#> [4] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::124591"
#> [5] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::124193"
#> [6] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::52322"
head(spBoekweg$pkey <- paste0(basename(spBoekweg$dataOrigin),
sub("^.+scan=", "::", spBoekweg$spectrumId)))
#> [1] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::6404"
#> [2] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::6405"
#> [3] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::6833"
#> [4] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::6843"
#> [5] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::7218"
#> [6] "OR11_20160122_PG_HeLa_CVB3_CT_A.mzML::7219"
sp <- Spectra::joinSpectraData(spBoekweg, psmBoekweg, by.x = "pkey")
