Skip to main content

Plasmid Multi-Locus Sequence Typing

Project description

pMLST (Plasmid Multi-Locus Sequence Typing)

pMLST determines plasmid sequence types from assembled genomes or sequencing reads using pMLST schemes from the CGE pMLST database.

Installation

# Bioconda is preferred; it installs pMLST, BLAST, and KMA.
conda install -c conda-forge -c bioconda pmlst_ssi

# PyPI installs the Python package only. Install blastn/kma separately.
python3 -m pip install pmlst_ssi

# Source install also requires blastn/kma from conda or the system.
git clone https://github.com/ssi-dk/pmlst.git
cd pmlst
python3 -m pip install .

Database

Install or update the pMLST database after installing the tool. With conda, the default destination is the current environment's pMLST database location.

# Default location: conda env DB if conda is active, otherwise user data dir.
pmlst-download-db

# Custom location.
pmlst-download-db /path/to/pmlst_db

# Use a custom DB without passing -p every time.
export PMLST_DB=/path/to/pmlst_db

pMLST looks for the database in this order:

  1. -p / --database
  2. PMLST_DB
  3. $CONDA_PREFIX/share/pmlst/db
  4. the platform-specific user data directory from platformdirs

Docker

The Docker image includes pMLST, runtime dependencies, and a bundled database.

docker build -t pmlst .
docker run --rm -v "$PWD:/workdir" pmlst pmlst -i /workdir/test_data/test.fsa -s incf -x

Rebuild the image to update the bundled database:

docker build --no-cache -t pmlst .

Usage

Common command examples:

# Run pMLST on assembled contigs with BLAST.
pmlst -i test_data/test.fsa -s incf -x

# Run with an explicit method executable.
pmlst -i test_data/test.fsa -s incf -p /path/to/pmlst_db -mp /usr/bin/blastn

# Run with custom output and temporary directories.
pmlst -i sample.fasta -s incf -p /path/to/pmlst_db -o results -t tmp -x

Common command-line options:

Required:
  -i INPUTFILE [INPUTFILE ...]   One or more FASTA or FASTQ input files.
  -s SCHEME                      Scheme, comma-separated schemes, or all.
  -pf PF_RESULTS                 Precomputed PlasmidFinder results.

  Use either -s or -pf.
  Available schemes: incac, incf, inchi1, inchi2, inci1, incn,
                     pbssb1-family, shigella.

Output options:
  -o OUTDIR                      Output directory.
  -x                             Write extended text and FASTA outputs.
  -xm                            Like -x, but prefix extended output filenames
                                 with the scheme name for multi-scheme runs.
  -so                            Write simple tab-separated allele profile output.
  -q                             Quiet command-line output.
  -t TMP_DIR                     Temporary directory for external tool output.

Other options:
  -p DATABASE                    pMLST database directory.
  -mp METHOD_PATH                Path to blastn or kma.
  -c COVERAGE                    Minimum coverage.
  -id IDENTITY                   Minimum identity.

Web-server

A webserver implementing the methods is available at the CGE website and can be found here: https://cge.cbs.dtu.dk/services/pMLST/

Citation

When using the method please cite:

PlasmidFinder and pMLST: in silico detection and typing of plasmids. Carattoli A, Zankari E, Garcia-Fernandez A, Volby Larsen M, Lund O, Villa L, Aarestrup FM, Hasman H. Antimicrob. Agents Chemother. 2014. April 28th. doi: 10.1128/AAC.02412-14 [Epub ahead of print]

References

  1. Camacho C, Coulouris G, Avagyan V, Ma N, Papadopoulos J, Bealer K, Madden TL. BLAST+: architecture and applications. BMC Bioinformatics 2009; 10:421.
  2. Clausen PTLC, Aarestrup FM, Lund O. Rapid and precise alignment of raw reads against redundant databases with KMA. BMC Bioinformatics 2018; 19:307.

License

Copyright (c) 2014, Ole Lund, Technical University of Denmark All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

pmlst_ssi-2.1.1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

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

pmlst_ssi-2.1.1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file pmlst_ssi-2.1.1.tar.gz.

File metadata

  • Download URL: pmlst_ssi-2.1.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for pmlst_ssi-2.1.1.tar.gz
Algorithm Hash digest
SHA256 e87026cd41bfd268fdc5c1c3a59b824cc9bf6c1d179d559015288a9cb1bf1b1b
MD5 d3095d360129ff309f000af84b5fe7d9
BLAKE2b-256 9dd7933e2bea42c38cf677ccedd99c32f6607c7fefdca3f1b54c96a4aa33dd3e

See more details on using hashes here.

File details

Details for the file pmlst_ssi-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: pmlst_ssi-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for pmlst_ssi-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54088a5d1c90bbf299571f6346e8c3c8cd73fd9730abebd872db91ffe9cbf372
MD5 500e944f316baecd12e501056fa2b139
BLAKE2b-256 1f70a9a78695550a8ceef33554018147a980f30a4bbb3008f6d5da04926de09b

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