Skip to main content

Hdf5 validator package

Project description

H5 Validator - Validation tool for testing Fast5 files against the schema

ont_h5_validator is a simple tool for validating the structure of fast5 files against the file schema maintained by Oxford Nanopore Technologies

It provides:

  • Command line validation tools for validating fast5 files
  • Json format data schemas specifying the fast5 standard

NB The h5_validator is intended as a tool to validate the output of the latest MinKNOW-core. The schemas are currently intended to be restrictive and therefore additional fields (for example those added by albacore or guppy) will not be expected in the schema and flagged as invalid.

Getting Started

The ont_h5_validator is available on PyPI and can be installed via pip:

pip install ont-h5-validator

Alternatively it is available on github where it can be built from source:

git clone https://github.com/nanoporetech/ont_h5_validator
cd ont_h5_validator
python setup.py install

Dependencies

ont_h5_validator is a pure python project and should run on most python versions and operating systems.

It requires:

Interface - Console Scripts

The ont_h5_validator provides a console script for validating fast5 files against a JSON schema. This script is added during installation of this project and can be called from the command line or from within python.

h5_validate

This script expects:

h5_validate
    schema <(path) json schema file (see note-1)>
    filename <(path) fast5 file>
    [optional] -v, --verbose <(bool) show additional verbose output; default=False>
    [optional] --debug <(bool) include additional debug logging; default=False>

note-1: if the schema file is not found on the path specified the script will additionally look in the default directory h5_validator/schemas/

example usage:

h5_validate multi_read_fast5.yaml /data/multi_read.fast5 -v

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ont-h5-validator, version 2.0.1
Filename, size & hash File type Python version Upload date
ont_h5_validator-2.0.1-py2.py3-none-any.whl (13.4 kB) View hashes Wheel py2.py3
ont_h5_validator-2.0.1-py3.4.egg (19.2 kB) View hashes Egg 3.4
ont-h5-validator-2.0.1.tar.gz (10.8 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page