-
Notifications
You must be signed in to change notification settings - Fork 46
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
Writing to multiple mz[X]ML files #257
Comments
A single file would be more useful (and/or to allow the user to split the files by a specific value, e.g. precursor mz or original filename or what ever). |
Actually, I would prefer multiple files:
Finally - I have not yet found an example where data from multiple samples is saved into one mzML file using proteowizard (documentation is not very helpful there). |
Ok with your points, but I think the user should be able to choose. Here's one example where I think one file you be useful. I have a TMT experiment with 10 files, where, at the end, I only need MS2 spectra. I do all my quantitation, identification, and end up with a So my suggestion would be not to enforce to save to n files, when n files were used as input to create the Question: if the one file is not possible, how would you deal with the following rw <- readMSData(c("file1", "file2", ..., "file10")
rwtest <- rw[c(23, 110, 234)]
writeMSData(twtest, ...) |
Yes, an option to allow the user to choose whether to save the data into one or multiple files is OK for me (suggestion: argument Re your question: I have to check then how to save multiple samples into the same mzML file, i.e. how to add multiple samples and runs into a |
After looking at Now, a possible solution would be to merge all spectra from the different files into one list of spectra and save this to a single file. This could eventually be done by:
Problem is any reference to spectra IDs, acquisitionNum and files on the original multi-file Also, we would have to be careful with InstrumentInfo and general run info in the new file, since it will look like all of the data was generated in a single run. @lgatto, would this fit your expectations? Would be nice to define a concrete use case based on a set of files on which to implement it - for me it's hard to guess what is required and what not since I'll most likely never need this option (yet; never say no :) ). |
I think I could live with re-writing Regarding I can see many cases where writing to a single file is confusing. Somehow, it is more of a convenience thing than anything else. At the end of the day, I need to provide all raw files and a script as a reproducible pipeline, and writing intermediate Also, in terms of |
Looking into
.writeMSData
, I see the followingwhich, as far as I understand, expects as many files to be written as were initially read in to create the
MSnExp
(orOnDiskMSnExp
).I am wondering whether it would be possible and/or preferable to write an
MSnExp
to a single file, even if it originally stems from multiple files.@jotsetung @sgibb - what do you think?
The text was updated successfully, but these errors were encountered: