Skip to main content

PYMEX: PSI-MI/IMEx Data Access

Project description

PYMEX package is a collection of modules providing tools for accessing interaction data distributed by The IMEx Consortium partners as well as for parsing, transformation and construction of PSI-MI endorsed interaction data files.

Modules

  • pymex.xmlrecord - A generic, configurable XML record serializer/deserializer.
  • pymex.mif - PSI-MI XML format support (versions 2.5.4 and 3.0.0).
  • pymex.pypsiq - PSICQUC server access.

Quick Start

    from lxml import etree as ET
    import pymex.mif

    rec = pymex.mif.Record()
    rec.parseMif( file, 'mif254' )

    for interaction in rec.interactions:
       print( "Interaction type:",interaction.type.label )
       print( "Participant count:", len(interaction.participants))
       for participant in interaction.participants:   
          print(" Participant:",participant.interactor.label)
          print("   Host:", participant.interactor.host.label)
          print("   Type:", participant.interactor.type.label)
          print("   Sequence:", participant.interactor.sequence)

    recDom = rec.toMif( 'mif300' )
    print( ET.tostring(recDom,pretty_print=True).decode("utf-8") )

Further details: Pymex Wiki

Project details


Download files

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

Source Distribution

pymex-0.9.31.tar.gz (53.8 kB view details)

Uploaded Source

Built Distribution

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

pymex-0.9.31-py2-none-any.whl (65.3 kB view details)

Uploaded Python 2

File details

Details for the file pymex-0.9.31.tar.gz.

File metadata

  • Download URL: pymex-0.9.31.tar.gz
  • Upload date:
  • Size: 53.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9

File hashes

Hashes for pymex-0.9.31.tar.gz
Algorithm Hash digest
SHA256 4dbf2c5707eba7cb1608d71b26d202dc28453dc66900999f5be0a3cd30603d91
MD5 fa77dca62d00fafc64084af673069776
BLAKE2b-256 2ae1ba310db7f01ad8b7c55e9fd2c1a38d3040207c9e9fcf64d79db6f22b7fc6

See more details on using hashes here.

File details

Details for the file pymex-0.9.31-py2-none-any.whl.

File metadata

  • Download URL: pymex-0.9.31-py2-none-any.whl
  • Upload date:
  • Size: 65.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9

File hashes

Hashes for pymex-0.9.31-py2-none-any.whl
Algorithm Hash digest
SHA256 9aa9cc8da434d405e1ccb8d7783f673e6f83fc82828a0c3755eb6e69aa51b688
MD5 ba41fb3fbf3ebc9a7cd362e805e67c17
BLAKE2b-256 ef6ede983e2eb991c4059dca0a58ea932a14d3acddf56ea2069729f110fa2286

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