.. _quick-start:

Quick Start
===========

Parsing a mzML file and setting measured precision
--------------------------------------------------

.. autofunction:: simple_parser.main

.. include:: code_inc/simple_parser.inc


Seeking in a mzML file
----------------------

One of the unique features of pymzML is the ability to (create) and read
indexed gzip which allows mzML file sizes to reach the levels of the original
RAW format. The interface to random access into a mzML file is implemented as a
Python dictionary in pymzML.

Example::

    #!/usr/bin/env python3.4
    import pymzML

    run = pymzML.run.Reader('test_data/BSA1.mzML')
    # by default precisions are set to ....
    # but can be defined as run.precisions = {1: , 2: , 3: ... }
    spectrum_with_id_123 = run[123]



