Skip to content

Instantly share code, notes, and snippets.

@fedarko
fedarko / gfa-to-fasta.py
Created April 15, 2022 02:45
Convert GFA to FASTA
#! /usr/bin/env python3
# Converts a GFA assembly graph to a FASTA file of all sequences
# within the graph. Notably, this ignores connections between sequences
# in the graph.
#
# Depends on Python 3.6 or later.
#
# Usage:
# $ ./gfa_to_fasta.py mygraph.gfa contigs.fasta