Skip to main content

PanR: Panresistome Analysis Tool

Overview

PanR is a Python-based tool for analyzing panresistome data. It processes NCBI and Abricate summary files, merges the data, and generates visualizations such as lollipop plots, bar plots, and heatmaps. The tool is designed to help researchers analyze and visualize gene presence and prevalence across different geographic locations. It requires ncbi_clean.csv from FetchM and summary files in .tab (preferred) or .csv format from Abricate.

Key Features:

  • Merges and processes NCBI and Abricate data.
  • Analyzes gene presence across samples.
  • Generates visualizations for resistance gene distributions/prevalence.

Installation

Using pip

pip install panR

Using conda

conda create -n panr_env python=3.8
conda activate panr_env
pip install git+https://github.com/Tasnimul-Arabi-Anik/PanR.git

From GitHub (Manual Installation)

git clone https://github.com/Tasnimul-Arabi-Anik/PanR.git
cd PanR
pip install -r requirements.txt

Usage

Command-Line Arguments

panR --ncbi_dir <NCBI_DIRECTORY> --abricate-dir <ABRICATE_DIRECTORY> --output-dir <OUTPUT_DIRECTORY> --fig-format <FIGURE_FORMAT>

Arguments

Argument Description
--ncbi-dir Path to ncbi_clean.csv file.
--abricate-dir Directory containing Abricate summary .tab or .csv files.
--output-dir Directory to store merged results and visualizations.
--format Output format for figures (png, pdf, tiff,svg).

Example Run

panR --ncbi-dir ./data/ncbi_clean.csv --abricate-dir ./data/abricate --output-dir ./output --format png

Outputs

  • Processed Data: Saved in output/ directory as .csv.
  • Visualizations:
    • Heatmap of resistance genes across samples. figure1
    • Bar plot showing gene presence. figure3
    • lolipoplot showing gene counts figure2

License

This tool is provided under the MIT License.

Author

Tasnimul Arabi Anik

Metadata

Release files for PanR 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PanR 0.1.1
File Size Uploaded Provenance Actions
panr-0.1.1.tar.gz 6.8 kB Without provenance Details for panr-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PanR 0.1.1
File Interpreter ABI Platform Actions
PanR-0.1.1-py3-none-any.whl Python 3 none any Details for PanR-0.1.1-py3-none-any.whl

Total release size: 13.6 kB

Release files / panr-0.1.1.tar.gz

Download URL panr-0.1.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1406f00827f4dff484c4a7e766e2813d73edaa374b2fe60ae7a21ea0b753e5a3
BLAKE2b-256 checksum
How to use checksums
02c96795bae7ec8f45bf79110c4537153873590a5043264c1f6deec874480585
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / PanR-0.1.1-py3-none-any.whl

Download URL PanR-0.1.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c62d3f7d938ee152c8fb411c25598286e7f0b111c9425cc5ff1368af2dea5c1
BLAKE2b-256 checksum
How to use checksums
a5352c1735fbe43118bc2a43eda4574dbd78d984aa54c8f5f820ffb56781f45d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Security for PanR 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page