Simple GFA parsing, printing, and pre-processing in Python.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mygfa-0.1.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file mygfa-0.1.tar.gz
.
File metadata
- Download URL: mygfa-0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.30.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1795992debfbcb15e04f502ceffb1be87c9a660e82aa1e47f1d834d917fb74d |
|
MD5 | 76302a11bc7c7942d381ff6bc9effa9f |
|
BLAKE2b-256 | f7aac57fc4c024182ad6466a56c026d52ed7ae5b1329701a073753fb48d0bb9e |
File details
Details for the file mygfa-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: mygfa-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.30.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72aeffb4f40344c1c663de283df5c17e08d357ab072e2b988f0734ea4be8f804 |
|
MD5 | 3d42cc1272c26b4105e2947b5fcc4340 |
|
BLAKE2b-256 | 699870c8087287920141b9e76ea44c5d2dd503b9f9656a6358c303e7e11ac0d4 |