A tool to generate PCoA or NMDS plots for plasmids.
Project description
plot_plasmids
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 theskani triangleoutput file.--mob_dir: Directory containing themob_typeroutput files.--amr_dir: Directory containing theamrfinderplusoutput 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>
Arguments
-d,--dist_matrix: Path to the plasmid distance matrix (CSV or TSV format), as generated by theprepcommand.-a,--amr: Path to the AMRfinderPlus summary results file (TSV format), as generated by theprepcommand.-m,--mob: Path to the MOB-typer results file (TSV format), as generated by theprepcommand.-o,--output: Path for the output plot file (e.g., plot.png, plot.svg).-p,--plot_type: Type of ordination plot to generate (pcoaornmds). Default ispcoa.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85477af0ae1cf40e335d2227de90737b0335a5e9abb20bcc2d4916da2cebaf87
|
|
| MD5 |
966d87508703e50d7d30d47adcbf6e55
|
|
| BLAKE2b-256 |
4dc92c7e4e5eb2b4f993e9c6c0307d8990e81f145913da684a800e19e83fd114
|
File details
Details for the file plot_plasmids-0.2.1-py3-none-any.whl.
File metadata
- Download URL: plot_plasmids-0.2.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
719f7383225192c3dfcdaab2d8f017f06b8c1d0219dad5ae544a60b16358ca19
|
|
| MD5 |
ab406e73814b79dd562bb6755bbdae85
|
|
| BLAKE2b-256 |
c5d8da96d07fb6615cae87f463e80390b6159dda3d898f923630ce4fca9a87bd
|