Skip to content

batch export of EIC data to CSV #4752

Closed

Description

@tentrillion

I am a new openMS user trying to extract ion chromatograms from a large batch of mzML files acquired from an MS1-only qTOF instrument (Sciex), and to convert them to a plain-text format. I suspect I am looking for the dumbest behavior possible: I'd like to specify target m/zs, an m/z tolerance, and maybe an RT range, and have openMS look inside each input mzML file, and output chromatograms in a format that I can use for plotting (e.g. with ggplot2 in R or similar). An ideal format would be CSV two columns per input mzML file, one for time and the other for intensity. I'm really attracted to the command-line usability and modularity of openMS, but couldn't figure out how to do this task. Here are several independent approaches I tried, but none so far has worked as well as I'd hoped:

  1. EICExtractor. This function seems to simultaneously extract and integrate peaks of interest. I'm not looking for peak integrals / areas, just the EIC data. So potentially I was mislead by the name of this function.

  2. TargetedFileConverter to convert a TSV file with my m/zs of interest to TraML, followed by OpenSwathChromatogramExtractor to generate an mzML output file, followed by FileConverter to convert to CSV. This did not work because FileConverter cannot generate CSV output from mzML. Also, it seems to lump multiple m/z values into the same chromatogram, which makes sense for SWATH but not for the generic case of arbitrary m/z values.

It took me a bit of searching to figure out that 2 was the preferred approach, since initially I assumed that this function was irrelevant for me since I did not have SWATH data. I was able to generate an mzML file with this approach, which seems to contain all the data I need, but was hoping to avoid having to use any other MS analysis programs to read these chromatogram-containing mzML files.

Is there another approach I should try? Any pointers or help appreciated.

Activity

  1. tentrillion commented on May 26, 2020

    @tentrillion
    Author

    Also, perhaps a minor bug in TargetedFileConverter: it crashes with an error when there are less than 8 columns in the input TSV. I was able to fix it by adding more columns (e.g. Annotation) which are listed as not being required, but it does seem like 8 columns are required, which is not what the documentation says.

  2. tentrillion commented on Mar 18, 2025

    @tentrillion
    Author

    Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions