Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial GAF List Bindings #203

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Trivial GAF List Bindings #203

wants to merge 3 commits into from

Conversation

mt-xing
Copy link

@mt-xing mt-xing commented Mar 11, 2025

Introduces new Python bindings to the flatgfa-py project that allows one to trivially turn a GAF parse into a Python list of list of PyChunkEvent objects, which can then be iterated over.

Sample code:

graph = flatgfa.load("test.flatgfa")
print(graph.size)

for read in graph.test_gaf("test.gaf"):
    for event in read:
        print(event.handle)
        print(event.range)
        print(event.get_seq())

Note that handle, range, and get_seq() all return strings for now.

@mt-xing mt-xing requested a review from sampsyo March 11, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant