Metadata-Version: 2.4
Name: GraDiv
Version: 0.3.0
Summary: GraDiv is a tool to lead diversity analysis on a pangenome graph. It allows users to call variants from a pangenome graph indexed with GraTools, then compute diversity statistics from them.
Author-email: "Margaux Imbert (UM)" <margaux.imbert01@etu.umontpellier.fr>, "Stéphane De Mita (PHIM, INRAE)" <stephane.demita@inrae.fr>, "Ravel Sebastien (PHIM, CIRAD)" <sebastien.ravel@cirad.fr>, "Christine Tranchant (DIADE, IRD)" <christine.tranchant@cirad.fr>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://forge.ird.fr/phim/gradiv
Keywords: pangenome,graph,diversity
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: pybedtools
Requires-Dist: pysam
Requires-Dist: click>=8.0.3
Requires-Dist: click_extra
Requires-Dist: egglib>=3.5.0
Requires-Dist: rich
Dynamic: license-file

GraDiv
======

.. contents:: Table of Contents
    :depth: 2

GraDiv is a tool to lead diversity analysis on a pangenome graph.

It allows users to call variants from a pangenome graph, then compute diversity statistics from them.

Version history
===============

0.1 (2024-06-24): Original version, implementing the atomic variant calling algorithm.

0.2 (2026-05-05): Include the VGF format (version 2) for graph navigation. Region specification disabled.

0.3 (2026-10-28): VGF version 3.

Installation
============

To install version 0.1 (expecting a graph processed by Gratools) use:

.. code-block:: bash

    $ python3 -m pip install gradiv

To install the current version use:

.. code-block:: bash

    $ git clone git@forge.ird.fr:phim/gradiv.git
    $ cd gradiv
    $ pip install .

Usage of GraDiv
=================

Commands available
------------------

.. code-block:: bash

    Usage: gradiv [OPTIONS] COMMAND [ARGS]...

      A tool for diversity analysis of pangenome graphs

    Options:
      -v, --version Show the version and exit.
      -h, --help    Show this message and exit.

    Commands:
      call    Call polymorphisms from a VGF file
      compute Compute statistics from a genotype table
      convert Convert GFA file to VGF format


Testing a small GFA
-------------------

A small test graph is available in test_data/. The GFA file and GraTools index are provided.

Figures are provided to visualize the graph's structure. It is displayed as four different sub-graphs.

.. image:: https://forge.ird.fr/phim/gradiv/-/raw/main/test_data/figures/indels.png?ref_type=heads

Authors
=======

* Margaux IMBERT (PHIM, UM)
* Sébastien RAVEL (PHIM, CIRAD)
* Christine TRANCHANT (DIADE, IRD)
* Stéphane DE MITA (PHIM, INRAE)
