Skip to main content

mygfa

This is a simple Python library for parsing, manipulating, and emitting pangenomic graphs in the GFA format. It prioritizes simplicity and clarity over performance and functionality.

As demonstrated in example.py, this is what it looks like to compute the node depth for a GFA file:

import mygfa
import sys
graph = mygfa.Graph.parse(sys.stdin)
seg_depths = {name: 0 for name in graph.segments}
for path in graph.paths.values():
    for step in path.segments:
        seg_depths[step.name] += 1

Type pip install mygfa to get started.

Metadata

Release files for mygfa 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mygfa 0.1
File Size Uploaded Provenance Actions
mygfa-0.1.tar.gz 5.0 kB Without provenance Details for mygfa-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mygfa 0.1
File Interpreter ABI Platform Actions
mygfa-0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for mygfa-0.1-py2.py3-none-any.whl

Total release size: 10.8 kB

Release files / mygfa-0.1.tar.gz

Download URL mygfa-0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d1795992debfbcb15e04f502ceffb1be87c9a660e82aa1e47f1d834d917fb74d
BLAKE2b-256 checksum
How to use checksums
f7aac57fc4c024182ad6466a56c026d52ed7ae5b1329701a073753fb48d0bb9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.30.0

Release files / mygfa-0.1-py2.py3-none-any.whl

Download URL mygfa-0.1-py2.py3-none-any.whl
Size 5.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
72aeffb4f40344c1c663de283df5c17e08d357ab072e2b988f0734ea4be8f804
BLAKE2b-256 checksum
How to use checksums
699870c8087287920141b9e76ea44c5d2dd503b9f9656a6358c303e7e11ac0d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.30.0

Security for mygfa 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page