<p>This is a long post, detailing my observations with questions at the end.</p>

<p>I have (foolishly) volunteered to look at some proteomics data in a proprietary format.  My aim is to convert it to mzXML, then generate "annotated PMF spectra" - that is, a plot of intensity v. m/z ratio where peaks are labelled with mass and perhaps peptide and positions in the protein.</p>

<p>The data are from a Voyager DE-STR MALDI-TOF instrument; the file suffix is ".dat".  It seems from <a href="http://tools.proteomecenter.org/wiki/index.php?title=Formats:mzXML">this information</a> that there are few options.  One is to install <a href="http://edwardslab.bmcb.georgetown.edu/software/PyMsXML.html">PyMsXML</a> on a Windows machine which also has the proprietary Data Explorer software.  PyMsXML appears not to have been updated since 2007.  Another possibility might be the executables from <a href="http://proteowizard.sourceforge.net/">ProteoWizard</a>, again requiring Data Explorer.</p>

<p>This is tremendously painful for me, since I never use Windows.  However, I do have a version of WinXP installed as a virtual machine using VirtualBox (Ubuntu).  I have worked through the PyMsXML installation guide, with the following results:</p>

<p><strong>1. Download and install ActivePython</strong></p>

<p>The latest version from ActiveState is 2.7.0.2 (or for Python3, 3.1.2.4).  However, the 2.7 version does not appear to include the "COM Makepy utility" referred to in the PyMsXML instructions.  I downloaded and installed the earliest available free version, 2.5.5.7, which does include the utility.</p>

<p><strong>2. Install Data Explorer</strong></p>

<p>I have been sent a zip archive.  Confusingly it is named "DataExplorer5.1.zip, but the actual version seems to be 4.0.0.0.  Anyway, it seems to install and run OK.</p>

<p><strong>3. Install COM library interfaces</strong></p>

<p>The instructions are to open the COM Makepy utility and look for "ExploreDataObjects 1.0 Type Library (1.0)" and "IDAExplorer 1.0 Type Library (1.0)" - the latter is for .dat files.  Neither of these exist.  However, there is a library named "Data Explorer 4.2 Type Library (4.2)".  The interface to this appears to install correctly.</p>

<p>The PyMsXML instructions then refer to a couple of tests to check installation.  The test for Analyst files fails, but the one for Data Explorer appears to pass.</p>

<p><strong>4. Download, install and edit the PyMsXML scripts</strong></p>

<p>This step is fine.  Next - run on a test file.  I run:</p>

<pre><code>pymsxml -R voyager -o myfile.mzXML myfile.dat
</code></pre>

<p>And I get the error:</p>

<pre><code>Traceback (most recent call last):
  File "C:\bin\pymsxml.py", line 1796, in &lt;module&gt;
    x.write(debug=opts.debug)
  File "C:\bin\pymsxml.py", line 83, in write
    self.write_scans(tmpFile,debug)
  File "C:\bin\pymsxml.py", line 300, in write_scans
    for (s,d) in self.reader.spectra():
  File "C:\bin\pymsxml.py", line 1528, in spectra
    (tf,fixedMass) = doc.InstrumentSettings.GetSetting(self.delib.constants.dePr
eCursorIon,i-1,None)
AttributeError: class constants has no attribute 'dePreCursorIon'
</code></pre>

<p>I have much less to say about the ProteoWizard executables:  they all fail to run with the message "The system cannot execute the specified program."  I briefly attempted to build from source under Cygwin, but gave that up as a waste of time.</p>

<p>So my questions are:</p>

<ul>
<li>Has anyone got PyMsXML to run using ActivePython &gt; 2.4 ?</li>
<li>Any idea what the PyMsXML error message means ? </li>
<li>Any tips at all for getting PyMsXML, ProteoWizard or any other tool to convert Voyager .dat files to mzXML ?</li>
</ul>

This one is tough to debug fully without Windows and the Data Explorer software. The problem is that the Data Explorer library, which is loaded via COM, is missing a constant that PyMsXML is expecting. Here are the relevant lines of code plucked from the source:

    from win32com.client import Dispatch, gencache
    self.delib = gencache.EnsureModule('{06972F50-13F6-11D3-A5CB-0060971CB54B}',
                                       0,4,2)
    (tf,fixedMass) = doc.InstrumentSettings.GetSetting(
                       self.delib.constants.dePreCursorIon,i-1,None)

Since PyMsXML is from 2007, the best guess is that something has changed in the Data Explorer API since then that is breaking it. One thing you could do is put a:

    print dir(self.delib.constants)

In front of the error line and see what the available constants are; if you're lucky maybe the constant will have changed names to something you can recognize and you'll be able to update the code and get it running.