Skip to main content

A tool to generate PCoA or NMDS plots for plasmids.

Project description

plot_plasmids

PyPI version codecov

A tool to generate PCoA or NMDS plots for plasmids, colored by carbapenemase genes and rep types.

Installation

You can install plot_plasmids from PyPI:

pip install plot-plasmids

Or, for development, you can install it from this repository:

git clone https://github.com/example/plot_plasmids.git
cd plot_plasmids
pip install -e .

Usage

plot_plasmids has two subcommands: prep and plot.

prep

The prep command takes the raw output from skani, mob_typer, and amrfinderplus and prepares the files for the plot command.

plot_plasmids prep --skani <skani_matrix> --mob_dir <mob_dir> --amr_dir <amr_dir> --output_dir <out_dir>

Arguments

  • --skani: Path to the skani triangle output file.
  • --mob_dir: Directory containing the mob_typer output files.
  • --amr_dir: Directory containing the amrfinderplus output files.
  • --output_dir: Directory to save the processed files.

plot

The plot command generates the PCoA or NMDS plot.

plot_plasmids plot -d <distance_matrix> -a <amr_results> -m <mob_results> -o <plot.png>

Example plot

Arguments

  • -d, --dist_matrix: Path to the plasmid distance matrix (CSV or TSV format), as generated by the prep command.
  • -a, --amr: Path to the AMRfinderPlus summary results file (TSV format), as generated by the prep command.
  • -m, --mob: Path to the MOB-typer results file (TSV format), as generated by the prep command.
  • -o, --output: Path for the output plot file (e.g., plot.png, plot.svg).
  • -p, --plot_type: Type of ordination plot to generate (pcoa or nmds). Default is pcoa.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plot_plasmids-0.2.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plot_plasmids-0.2.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file plot_plasmids-0.2.1.tar.gz.

File metadata

  • Download URL: plot_plasmids-0.2.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for plot_plasmids-0.2.1.tar.gz
Algorithm Hash digest
SHA256 85477af0ae1cf40e335d2227de90737b0335a5e9abb20bcc2d4916da2cebaf87
MD5 966d87508703e50d7d30d47adcbf6e55
BLAKE2b-256 4dc92c7e4e5eb2b4f993e9c6c0307d8990e81f145913da684a800e19e83fd114

See more details on using hashes here.

File details

Details for the file plot_plasmids-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for plot_plasmids-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 719f7383225192c3dfcdaab2d8f017f06b8c1d0219dad5ae544a60b16358ca19
MD5 ab406e73814b79dd562bb6755bbdae85
BLAKE2b-256 c5d8da96d07fb6615cae87f463e80390b6159dda3d898f923630ce4fca9a87bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page