Skip to main content

Version Py versions Git Build Status License RTD doc

Overview

nmrml2isa is a Python3 program that can be used to generate an ISA-Tab structured investigation out of nmrML files, providing the backbone of a study that can then be edited with an ISA editing tool (see MetaboLights pre-packaged ISA Creator)

Install

See the Installation page of the online documentation.

Use

See the Usage page and the Examples page for more detailed descriptions of usage and examples.

CLI

The parser comes with a simple one-liner:

mzml2isa -i /path/to/nmrml_files/ -o /path/to/out_folder -s name_of_study

Module

It possible to import nmrml2isa as a Python module:

from nmrml2isa import parsing

in_dir = "/path/to/nmrml_files/"
out_dir = "/path/to/out_folder/"
study_identifier_name = "name_of_study"

parsing.full_parse(in_dir, out_dir, study_identifier_name)

Meta extraction

If you just want to extract the meta information without writing them in ISA-Tab files, it is possible to do so either by running the nmrml2isa.nmrml module as main:

python -m nmrml2isa.nmrml /path/to/your/file.nmrML
# this will produce a JSON dict of all extracted metadata

Or within a python program with the nmrml submodule:

from nmrml2isa import nmrml

nmrml_path = "/path/to/file.nmrML"
nmrml_meta = nmrml.nmrMLmeta(nmrml_path)

# python dictionnary
print(nmrml_meta.meta)

# json dictionnary
print(nmrml_meta.meta_json)

Download files

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

Source Distributions

nmrml2isa-0.1.2.zip (58.7 kB view details)

Uploaded Source

nmrml2isa-0.1.2.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nmrml2isa-0.1.2-py3-none-any.whl (56.8 kB view details)

Uploaded Python 3

File details

Details for the file nmrml2isa-0.1.2.zip.

File metadata

  • Download URL: nmrml2isa-0.1.2.zip
  • Upload date:
  • Size: 58.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nmrml2isa-0.1.2.zip
Algorithm Hash digest
SHA256 fcebf7c256d1f66d1a4ff65284679c556e5e3d7491e44f93f032ade1353a547f
MD5 ca3b1ea749c878111d7d3d5e5e39d856
BLAKE2b-256 0fd003a005e63cac6a406904b579c5a4a2a8b28a213d909005f5286d01a6e64e

See more details on using hashes here.

File details

Details for the file nmrml2isa-0.1.2.tar.gz.

File metadata

  • Download URL: nmrml2isa-0.1.2.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nmrml2isa-0.1.2.tar.gz
Algorithm Hash digest
SHA256 04585f5e1c8b7afbd34d204286cf0c46564a7251b4d46e05abe1853a3f43de5b
MD5 081af8e3a4f2acac6eef2d79eabb4ecd
BLAKE2b-256 1437c27d39a9b6aed9db392f27c4e94a1d3bb5db9e5f715f3fc49d2f4fbdfd78

See more details on using hashes here.

File details

Details for the file nmrml2isa-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nmrml2isa-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 868111fc37939041bb2b0f79912e8c70a201b7d75a5260dd4ea74a1b94c852b3
MD5 597d2ac257da72d03464f222db36759c
BLAKE2b-256 e6ce067048077657732683d2cae578825fdc6848f5acd0163417669319cc60d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page