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

Instruction needed #16

Open
witszymanski opened this issue Oct 12, 2023 · 1 comment
Open

Instruction needed #16

witszymanski opened this issue Oct 12, 2023 · 1 comment

Comments

@witszymanski
Copy link

Hi!

In the manuscript you write:

Thus, MsQuality supports a large variety of data input formats (ranging from mzML, mzXML, CDF, MGF, MSP to some raw vendor file formats, such as Bruker TimsTOF and Thermo raw files)

Can you provide some instruction on how to load the .raw files and .d folders into an object? I couldn't find any info about this.

Greets

Witek

@jorainer
Copy link
Collaborator

For .raw files you would need to use the MsBackendRawFileReader and for .d files the MsBackendTimsTOF package.

To import/represent MS data from these raw data formats using Spectra you would need to use e.g.

library(Spectra)
library(MsBackendTimsTof)

sps <- Spectra("data/TimsTOF/Urine 1to1 PASEF pos_16_2_528.d/", source = MsBackendTimsTof())
sps
MSn data (Spectra) with 1522547 spectra in a MsBackendTimsTof backend:
          msLevel precursorMz  polarity
        <integer>   <numeric> <integer>
1               1          NA         1
2               1          NA         1
...           ...         ...       ...
1522546         1          NA         1
1522547         1          NA         1
 ... 35 more variables/columns.
 Use  'spectraVariables' to list all of them.

so, once you have the data imported through Spectra respectively the backend you can use MsQuality on that.

Note that MsBackendTimsTof depends on the opentimsr which was however removed from CRAN, so you would need to install first opentimsr, then MsBackendTimsTof. Also, note that the MsBackendTimsTof is currently in developmental status.

remotes::install_github("michalsta/opentims", subdir="opentimsr")
remotes::install_github("RforMassSpectrometry/MsBackendTimsTof")

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

2 participants