Full text 2026

<i>agtools</i>: a software framework to manipulate assembly graphs

Mallawaarachchi V, Bouras G, Wick RR, et al.

Full text

Loading PDF… Expand reader Download

Abstract

<h4>Motivation</h4>Assembly graphs are a fundamental data structure used by genome and metagenome assemblers to represent sequences and their overlap information, facilitating the assembler in constructing longer genomic fragments. Apart from their core use in assemblers, assembly graphs have become increasingly important in a range of downstream applications such as metagenomic binning, plasmid detection, viral genome resolution, and haplotype phasing. However, there is a need for a comprehensive tool that allows programmatic access to manipulate assembly graphs (e.g. parse, convert, filter, and analyze) across different assembly graph formats.<h4>Results</h4>Here we present <i>agtools</i>, an open-source Python framework to manipulate assembly graphs produced by commonly used assemblers. <i>agtools</i> provides a command-line interface for tasks such as assembly graph format conversion, segment filtering, and component extraction. It also exposes a Python package interface to load, query, and analyze assembly graphs from popular genome and metagenome assemblers. This enables streamlined assembly-graph-based analyses that can be integrated into other bioinformatics software and workflows.<h4>Availability and implementation</h4>The source code of <i>agtools</i> is hosted on GitHub at https://github.com/Vini2/agtools and the documentation is available at https://agtools.readthedocs.io/. <i>agtools</i> can also be installed from Bioconda (https://anaconda.org/bioconda/agtools) and PyPI (https://pypi.org/project/agtools/).