Giter Site home page Giter Site logo

shawnhoogstra / mzml-retention-time-converter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 22 KB

Retention Time Converter is an open-source software for converting retention times in mzML data files.

License: GNU General Public License v3.0

Python 100.00%

mzml-retention-time-converter's Introduction

Retention Time Converter

About RTC

Retention Time Converter is an open-source software for converting retention times in mzML data files. The goal of this python tool and application is to provide an easy-to-use utility for retention time conversions. With this tool you may convert the retention times within any mzML data to simulate if it was run under differing conditions, columns, or lengths of times. It is also useful for converting retention times to retention indices. This tool requires a reference file with the retention times of standard compounds run at the varying conditions.

How to Use

A reference file in 'csv' format is required in order to convert retention times. For several examples see the included reference files 'RT6_TO_RTI.csv', and 'RT6_TO_RT27.csv'. The first file included converts the spectrums of a run over 6 minutes to a retention time indices using NAPS standards. The second included file converts the spectrums of a run over 6 minutes to the retention times over 27 minutes.

The standard format of these files is three columns with the first column containing the retention time or retention index of the standards in the type of run you would like to convert your file to. The second column includes the m/z of the the standard compound. The final column includes the retention times of the standard compounds run at the same conditions of your unconverted file.

Simply run the script at the command line or use the included .exe file to load up the tool. Keep in mind running the .exe file may take some time to load as it has to compile the code. It is included for those who wish to not use the command line. Simple browse to the locations of your reference file, your mzML, and the location/name of where you want to save your converted file. Click convert and wait until confirmation of conversion.

How it works

RTC generates a cubic spline function using the Akima1DInterpolator from the scipy package. See https://docs.scipy.org/doc/scipy-0.18.1/reference/generated/scipy.interpolate.Akima1DInterpolator.html for more details. Simply put a curve is drawn through the points in the reference file using the retention times for the given standard compounds as the x and y coordinates. This curve can then be used to convert retention times from one run to another run under differing conditions.

Note that this interpolator is only used for precise data and the curve will only pass through the specified points exactly. As such, interpolating past the given standards will given inaccurate results. Therefore, files will only be converted within the given retention times of the standard compounds.

mzml-retention-time-converter's People

Contributors

shawnhoogstra avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.