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

recalibration #552

Open
ricoderks opened this issue Sep 8, 2021 · 4 comments
Open

recalibration #552

ricoderks opened this issue Sep 8, 2021 · 4 comments

Comments

@ricoderks
Copy link
Contributor

Hi,

I would like to modify the m/z values in an OnDiskMSnExp for recalibration purposes, but I can not figure out how to modify the m/z values. Do I need to use ProcessingStep for this? Can you push me into the right direction?

Cheers, Rico

@lgatto
Copy link
Owner

lgatto commented Sep 8, 2021

The on-disk back-end is write only. You thus either load/convert the data into an in-memory object, or indeed, add the processing step to the processing queue and (I think) the processing will be applied after reading and before writing. But @jorainer would need to confirm.

More generally, I would suggest you move to the new Spectra infrastructure. You should be able to do everything you can do with MSnbase, as well as more.

@ricoderks
Copy link
Contributor Author

Ok, thanks. I'll have a look at Spectra.

@jorainer
Copy link
Collaborator

jorainer commented Sep 8, 2021

So, basically to read mzML files you would do:

sps <- Spectra(<mzML files>, MsBackendMzR())
## Then do something with the spectra data

## Export the data again to mzML files
export(MsBackendMzR(), sps, file = <new file name>)

Feel free to open issues in Spectra if something is not working or if you need help/new features.

@ricoderks
Copy link
Contributor Author

I just installed and will try it immediately 👍

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

No branches or pull requests

3 participants