Open PMSeitzer opened 5 years ago
Can you reproduce the error with something like this?
test <- replicate(100, mzR::header(a_file))
Tried again, this time it failed deterministically:
a_file <- mzR::openMSfile(mzML_file)
Error: Can not open file <file-path>! Original error was: Error in pwizModule$open(filename): [SpectrumList_mzML::create()] Bad istream.
This appears to be this issue: https://github.com/sneumann/xcms/issues/264
my mzR
version is 2.16.2. I ran BiocManager::install("mzR")
before testing to ensure I had the latest version.
That mzR
version appears to be fairly old - the current stable release version (from Bioconductor 3.9) is 2.18.1. Could you try to get a recent R version (3.6.1) and install Bioconductor along with mzR
in that (you should then get the above mentioned stable version).
Sorry for the interruption, I get a similar error: "Original error was: Error in pwizModule$open(filename): boost::filesystem::path codecvt to wstring: error" However I have the latest versions of mzR, R studio and R software (see below). Interestingly, I don't get the error if I use rawConverter to convert from .RAW to .mzXML but when I download any mzXML spectrum from the Metabolights repository (e.g. https://www.ebi.ac.uk/metabolights/MTBLS103), I always get this error. So using the same reading function on these two files, it only works on one of them (.mzXML which was converted by rawConverter but not the downloaded one). Any idea what is happening?
Best regards,
F
It seems that when a file converted with "CompassXport" from Bruker vendor, this converter adds an extra line that crushes the file so mzR cannot read it (not present when proteowizard o rawconverter are used).
The extra line in the file that mzR cannot ignore is:
<nameValue name="recalibrationTime" value=""/>
Any clue if this is related to this topic?
Hi, we have been using CXP all the time, I will check if ours include that line above.Which CXP version are you using ? Which command line options ? Yours, Steffen
Hi, the dataset was downloaded from meteabolights (https://www.ebi.ac.uk/metabolights/MTBLS414), so it was converted by someone else. However, we found this info within the file:
<software type="conversion" name="CompassXport" version="3.0.7"/>
It fails when you run:
mzR = mzR::openMSfile("C:/my_directory/1_0a.mzXML")
Error: Can not open file C:/my_directory/1_0a.mzXML! Original error was: Error in pwizModule$open(filename): [Serializer_mzXML::Handler_dataProcessing] Unexpected element name: nameValue
Hi @Francisco-madrid-gambin , please avoid adding unrelated aspects to existing issue reports. Let's continue discussing your issue in #213 . Yours, Steffen
Here is the relevant section of the traceback:
This error occured when analyzing an mzML file that was generated using proteowizard applied to a Thermo raw file. Here is an example of one of the scan headers:
This error appears to happen non-deterministically.
I hypothesize that the issue is associated with
mzR
's scan header parsing code, in particular, perhaps there is some unexpected/unhandled information in the scan header that results inmzR
producing a buffer overflow error.