John Kane wrote:
Thanks for your time.
Please find a small example below - the real data is MUCH bigger.
If you look at rows 5 and 6 of this and calculate the mass precision window
I have to deal with (5 ppm), you'll find the following:
Row Lower 5ppm MassHigher 5ppm
This will determine where the overlaps are and delete them. You can
add some more code to determine which ones you want to delete.
# add the 5ppm to the dataframe
x$lower - x$Mass * (1 - 5e-6)
x$upper - x$Mass * (1 + 5e-6)
# create a matrix for determining overlap by adding 1 at the lower
Dear All,
I have a data frame with the columns Mass and Intensity (this is mass
spectrometry stuff). Each of the mass values gives rise to a mass window of
5 ppm around the individual mass (from mass - mass/1E6*5 to mass +
mass/1E5*5). I need to filter the array such that in case these mass
Sorry, this sounds like a fairly basic question that can be resolved by
which() and possible ifelse(). There is no details in your email.
I am afraid you have to learn the basics of R or ask question with more
details (e.g. example data).
Or ask someone locally.
Regards, Adai
Johannes
I think we need a bit more information and perhaps a
small example data set to see what you want.
I am not familiar with term mass window. Is this a
confidence interval around the mass value?
--- Johannes Graumann [EMAIL PROTECTED]
wrote:
Dear All,
I have a data frame with the columns