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
- ...
- Install panacus using conda/mamba:
mamba install -c conda-forge -c bioconda panacus
- 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
- Run panacus:
panacus report report.yaml > report.html
- 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.
Make sure you have conda/mamba installed!
mamba install -c conda-forge -c bioconda panacus
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
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
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 can be found in the examples directory. To get more information about how to use panacus
check out the documentation.
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).