-
Notifications
You must be signed in to change notification settings - Fork 50
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
fix mzIdentML import for MGF based identification files; see issue #42 #45
Conversation
This PR may breaks the API because the generic for # before PR
setGeneric("addIdentificationData", function(object, ...) standardGeneric("addIdentificationData"))
# PR
setGeneric("addIdentificationData", function(object, id, ...) standardGeneric("addIdentificationData")) Additionally the name of the second argument was
|
@lgatto a few questions:
|
A 3. questions same problem as 2.: backward compatibility: Both fd$spectrum.file <- basename(fileNames(object)[fromFile(object)])
fd$acquisition.number <- acquisitionNum(object) The This change breaks the backward compatibility. Should not be a real problem because nobody could add his own The output of What do you think? |
Would it be possible to just ignore the identification filename if there is no |
Yes, but I think we gain much from this. There have been 2 or 3 issues about adding id data, so some flexibility is welcome. In the future, I would also consider add a method for identification from |
Same as for 2 - go ahead, break it ;-) |
Conflicts: vignettes/MSnbase-demo.Rnw
IMHO this PR is ready to merge if The identification filenames are ignored now (was issue 1.). The backward compatibility is broken (were 2. and 3.). #42 is solved with this PR by the following clumsy call: library("MSnbase")
msexp <- readMgfData("3_2.mgf")
msexp <- addIdentificationData(msexp, "3_2.msgf.mzid",
fcol=c("spectrum.file", "TITLE"),
icol=c("spectrumFile", "spectrum title")) Theoretical #43 should be solved as well but I don't know the correct columns. |
Will do tomorrow - lot on my plate atm.
|
Sorry, dump question here msexp <- addIdentificationData(msexp, "3_2.msgf.mzid",
fcol=c("spectrum.file", "TITLE"),
icol=c("spectrumFile", "spectrum title")) but why do you have |
In this particular case msexp <- addIdentificationData(msexp, "3_2.msgf.mzid",
fcol=c("TITLE"),
icol=c("spectrum title")) I had multiple file support in mind. But I have seen that
|
Sure, go ahead! |
fix mzIdentML import for MGF based identification files; see issue #42
FYI: I have now pushed the latest version to the Bioc svn server. |
This PR is WIP. @lgatto's suggestion #42 (comment) and the documentation are still missing. I will leave a comment if this PR is finished.