You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve had a lot of questions over the past couple of years about peak “percent presence”.
But, before I get into that, this isn’t a concept I came up with, or even implemented. The underlying code wraps a function filterPeaks() from the {MALDIquant} R package.
Lab: “Chase, I ran 3 replicates and set my percent presence filter to 50%. If 2 of 3 replicates have a mass peak at 400 m/z… Will that peak be retained?”
Chase[Panicking]: “I don’t remember, let me look at the code”
So I’m going to walk you through, in reproducible code, what exactly percent presence will remove in this scenario.
The below function creates three fake mass peak lists (imagine three, peak-picked mass spectra). The arguments masses_1, masses_2, masses_3 can be changed so you can play around with scenarios. Intensity values are not important for this exercise and so are defaulted to a value of one.
Create the mass peak lists as described above. Pay attention to the masses in each mass list (e.g. mass list 1 masses_1 has m/z values of 1, 2 and 3; mass list 3 masses_3 has m/z values of 1, 3 and 4)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Percent Presence
I’ve had a lot of questions over the past couple of years about peak “percent presence”.
But, before I get into that, this isn’t a concept I came up with, or even implemented. The underlying code wraps a function
filterPeaks()
from the {MALDIquant} R package.You find out more about MALDIquant from GitHub or the Strimmer Lab website.
The context is the following:
Lab: “Chase, I ran 3 replicates and set my percent presence filter to 50%. If 2 of 3 replicates have a mass peak at 400 m/z… Will that peak be retained?”
Chase[Panicking]: “I don’t remember, let me look at the code”
So I’m going to walk you through, in reproducible code, what exactly percent presence will remove in this scenario.
Install and load the MALDIquant package
library("MALDIquant")
The below function creates three fake mass peak lists (imagine three, peak-picked mass spectra). The arguments
masses_1
,masses_2
,masses_3
can be changed so you can play around with scenarios. Intensity values are not important for this exercise and so are defaulted to a value of one.Create the mass peak lists as described above. Pay attention to the masses in each mass list (e.g. mass list 1
masses_1
has m/z values of 1, 2 and 3; mass list 3masses_3
has m/z values of 1, 3 and 4)Here we loop over 0% to 100%, by intervals of 10%, calculating which peaks remain
Results are below, in the form
## percent presence
## m/z retained
Beta Was this translation helpful? Give feedback.
All reactions