[go: up one dir, main page]

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

feat: add extractSpectraData function #523

Merged
merged 1 commit into from
Sep 14, 2020
Merged

feat: add extractSpectraData function #523

merged 1 commit into from
Sep 14, 2020

Conversation

jorainer
Copy link
Collaborator

- Add `extractSpectraData` to extract all data from an `MSnExp`, `Spectrum` or
  `MSpectra` as a `DataFrame`. This data could then be passed to the `Spectra`
  constructor to create a `Spectra` from the original object (see also issue
  rformassspectrometry/Spectra#123).
@lgatto
Copy link
Owner
lgatto commented Sep 14, 2020

Quick question before the review: why call this extractSpectraData() and not spectraData() in line with the Spectra nomenclature?

@jorainer
Copy link
Collaborator Author

Hm, good point. Well, mainly because we're actually extracting here also the m/z and intensity values and not just the spectraData - but I can change that, no problem.

@lgatto
Copy link
Owner
lgatto commented Sep 14, 2020

No, fine, let's keep it then. The might be an extensive operation for large data, so maybe the name extract will avoid it to be called spuriously.

@lgatto lgatto merged commit 0beb088 into master Sep 14, 2020
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