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

refactor: patially rewrite code to exctract header info #252

Closed

Conversation

jorainer
Copy link
Collaborator

  • Create index list in R instead of C++.
  • Use size_t instead of int where suitable.
  • Ensure that correct data types are passed between R and C++.
  • Use new (own) implementation to extract the acquisition number from the
    spectrum ID instead of id::translateNativeIDToScanNumber from proteowizard
    to avoid segfaults on macOS (Build error on macOS on BioC xcms#422).

- Create index list in R instead of C++.
- Use `size_t` instead of `int` where suitable.
- Ensure that correct data types are passed between R and C++.
- Use new (own) implementation to extract the acquisition number from the
  spectrum ID instead of `id::translateNativeIDToScanNumber` from proteowizard
  to avoid segfaults on macOS (sneumann/xcms#422).
@jorainer
Copy link
Collaborator Author

This avoids the segfaults on macOS (although pwiz is then stuck at random for a period of time before proceeding - but at least it does no longer break). I haven't tried, but the changes in RcppPwiz should also work on older proteowizard versions.

@sneumann
Copy link
Owner

sneumann commented Jan 27, 2022

Hi, how much of this PR is still relevant ? Yours, Steffen

@jorainer
Copy link
Collaborator Author

I think we can close that. Maybe I'll have another look if we encounter some errors in future.

@jorainer jorainer closed this Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants