Closed meilumcdermott closed 7 years ago
At least one of the problems is that the file names don't match. The mzML file is named 33data.mzML
but the 33data.mzid
refers to C:\\Users\\mmcdermott\\Documents\\Boston Data Runs\\mzML files\\2016-03-03-CD34-TMT-pST-Set1-3D-15-230.mzML
.
If you just want to combine one single mzML file with one mzid file you could circumvent the file name problem by setting the fcol
and icol
argument of addIdentificationData
manually (the default is spectrum id and acquisition number for both (unfortunately the column names of fcol
and icol
differ)):
mymsexp1 <- addIdentificationData(mymsnexp, myidentFile,
# just match on acquisition number
fcol="acquisition.number", icol="acquisitionNum")
Awesome - I didn't realize there was a reference within the mzID file itself. That fixed the issue. Thank you for your prompt reply, and for all the work you guys do on the package!
I tried to do some troubleshooting but couldn't figure out why this was happening.
The MSnExp is loading from the mzML file, but the corresponding mzID file is not adding the identifications.
My code:
mzML seems to be read in perfectly fine:
And then the issue in addIdentificationData():
I tried to see if maybe MSnbase wasn't just wasn't reading the mzID, but seems as if it can (sorry for the scrolling):
mzML files are converted from Thermo RAW files using MSConvert and are centroided. mzID files were generated by MSGFplus (from the Bioconductor package). I used mzID package to convert the mzID to csv format if you want to look at that.
Dropbox link
I also tried to do the process with MGF files with readMgfData(), and the same thing happened (idFile was NA), but I did some further reading and realized the mzML was better to use anyway over MGF.
I also tried running the example files that came with the package (dummyiTRAQ.mzXML and dummyiTRAQ.mzid), and those were correct. So possibly something to do with my files? (I assumed MSGFplus output the current version of mzid, but perhaps not.)
And of course:
Let me know if you need any other info. Thank you!