Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read_Spectrum - Sum Spectra #59

Open
BerndMaier opened this issue Mar 14, 2023 · 4 comments
Open

Read_Spectrum - Sum Spectra #59

BerndMaier opened this issue Mar 14, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@BerndMaier
Copy link

Hi there,
if i see correct, Read_Spectra returns a list of all the scans entered.

Is there a way to get a Summed/Average_Spectra like Xcalibur or Freestyle do?

When I merge the list from rawrr::readSpectrum i get some weird results as data is not XY even (e.g. 9/10 scans share the exact same m/z value und 1 is 0.01 Da off)

esms_lc_sum
freestyle

Not sure if Xcalibur / Freestyle just merges after reading the spectra or if this is already part of the ThermoRawFileReader.
But adding an "Average" method to readSpectrum would be nice and also would save space, as the list can get quite large when reading the scans for whole chromatographic peaks.

All the best, Bernd

@cpanse cpanse added the enhancement New feature or request label Aug 28, 2023
@BerndMaier
Copy link
Author

Hi guys, just checking if you maybe got any idea around this.

All the best,
Bernd

@tobiasko
Copy link
Collaborator

tobiasko commented Apr 9, 2025

According to the RawFileReader documentation:

Averaging Scans
The raw file reader does not perform scan averaging or subtraction directly.
The DLL “ThermoFisher.CommonCore.BackgroundSubtration.dll” provides algorithms for averaging and subtracting scans.

But rawrr currently doesn't provide any R wrappers for these functions. So technically possible, but I guess we have currently no capacity to work on the code.

@cpanse
Copy link
Collaborator

cpanse commented Apr 9, 2025

If you can guide me to a C# code snippet; that would help.

@tobiasko
Copy link
Collaborator

There is no example code in @jshofstahl RawFileReader .doc file, there is just a high level description of the respective functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants