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.0.tar.gz (9.0 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.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for plot_plasmids-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f8fcb52c8d6c9bcabc16f699560613cbbfbaf0f190bdda6403588ef678765f2c
MD5 34256eb8067d3e15bc87bf3059a3695f
BLAKE2b-256 83d21edc35d8637e3cb90ebaa3d9aade40adeefd927909c6500e0cda7d0334f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for plot_plasmids-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2b1f0664ce20c6ab14c538701c717615a6791f80a3e3a3a3fa70808faa0deea
MD5 d5fc048605783f9b85425cefdf0a9d75
BLAKE2b-256 87a9449866d74dbc73c9aaa2cb82d2b822ecd9191e91544b81c23fb67e207539

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