Help to calculate the peak of waves
Tue, 05/14/2019 - 09:14 am
I am a new Igor pro 8 user.
My data include a huge number of mass-spectrometry data. I recorded the mass and intensity of each sample (the total sample number is about 100-200).
All data are in excel file (I can transfer to the tab-delimited file). Each sample contains two columns, one is named "mass1" and one is named "intent1". The mass will be the number from 400 to 1200 while the intensity will be the recorded value for each mass. Since the mass and intensity are scattered, for example:
With this data, we can observe a wave with the peak of intensity is 5.57E+2 at the mass of 401.25.
I want to get this value and export into another table.
Would you please help to suggest a code that:
- import the whole *txt file with the first row as a variable name.
- Generate the wave from each pair of data. For example, sample 1 will have a wave that came from the function: display 'intent1' vs 'mass1'. (I want to make all waves from the input data - about 100 samples).
- The wave from each sample contains many peaks. I want to get the peak information of mass and its related intensity (see the example).
- Then, make the output data with two columns for each sample including "mass1" and "intent1" as same as the input data. However, the output data will contain the mass and its correlated intensity the peak of waves.