Skip to content

codialab/panacus

Repository files navigation

Rust Build Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge

A Counting Tool for Pangenome Graphs

panacus is a counting tool for pangenome graphs

panacus is a tool for calculating statistics for GFA files. It supports GFA files with P and W lines, but requires that the graph is blunt, i.e., nodes do not overlap and consequently, each link (L) points from the end of one segment (S) to the start of another.

panacus supports the following calculations:

  • coverage histogram
  • pangenome growth statistics
  • path similarity
  • allele/non-reference features-plots
  • node plots resolved by length and coverage
  • ...

Quickstart

  1. Install panacus using conda/mamba:
mamba install -c conda-forge -c bioconda panacus
  1. Create a file report.yaml with the following content:
- graph: ../graphs/test_graph.gfa    # Change this to a GFA file on your system
  analyses:
    - !Hist
      count_type: Bp
    - !Growth
      coverage: 1,1,2
      quorum: 0,0.9,0
  1. Run panacus:
panacus report report.yaml > report.html
  1. Take a look at the generated html file using your favorite browser!

For more info on what to write into report.yaml see the documentation.

Installation

From bioconda channel

Make sure you have conda/mamba installed!

mamba install -c conda-forge -c bioconda panacus

From binary release

Linux x86_64

wget --no-check-certificate -c https://github.com/codialab/panacus/releases/download/0.4.1/panacus-0.4.1_x86_64-unknown-linux-musl.tar.gz
tar -xzvf panacus-0.4.1_x86_64-unknown-linux-musl.tar.gz

# install the Python libraries necessary for panacus-visualize
pip install --user matplotlib numpy pandas scikit-learn scipy seaborn

# suggestion: add tool to path in your ~/.bashrc
export PATH="$(readlink -f panacus-0.4.1_x86_64-unknown-linux-musl/bin)":$PATH

# you are ready to go!
panacus --help

Mac OSX arm64

wget --no-check-certificate -c https://github.com/marschall-lab/panacus/releases/download/0.4.1/panacus-0.4.1_aarch64-apple-darwin.tar.gz
tar -xzvf panacus-0.4.1_aarch64-apple-darwin.tar.gz

# install the Python libraries necessary for panacus-visualize
pip install --user matplotlib numpy pandas scikit-learn scipy seaborn

# suggestion: add tool to path in your ~/.bashrc
export PATH="$(readlink -f panacus-0.4.1_aarch64-apple-darwin/bin)":$PATH

# you are ready to go!
panacus --help

From repository

panacus requires a working RUST build system (version >= 1.74.1) to build from source. See here for more details.

git clone git@github.com:marschall-lab/panacus.git

cd panacus
cargo build --release

mkdir bin
ln -s ../target/release/panacus bin/
ln -s ../scripts/panacus-visualize.py bin/panacus-visualize

# install the Python libraries necessary for panacus-visualize
pip install --user matplotlib numpy pandas scikit-learn scipy seaborn

# suggestion: add tool to path in your ~/.bashrc
export PATH="$(readlink -f bin)":$PATH

# you are ready to go!
panacus --help

Examples

Examples can be found in the examples directory. To get more information about how to use panacus check out the documentation.

Citation

Parmigiani, L., Garrison, E., Stoye, J., Marschall, T. & Doerr, D. Panacus: fast and exact pangenome growth and core size estimation. Bioinformatics, https://doi.org/10.1093/bioinformatics/btae720 (2024).

About

Panacus is a tool for computing statistics for GFA-formatted pangenome graphs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6