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:
-p/--databasePMLST_DB$CONDA_PREFIX/share/pmlst/db- 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. [Epub ahead of print]
References
- Camacho C, Coulouris G, Avagyan V, Ma N, Papadopoulos J, Bealer K, Madden TL. BLAST+: architecture and applications. BMC Bioinformatics 2009; 10:421.
- 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
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 pmlst_ssi-2.1.0.tar.gz.
File metadata
- Download URL: pmlst_ssi-2.1.0.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d4c6117509f221a419194eca4c7d8968d1f36a5ad2eedce7c35973ace1b7c1c
|
|
| MD5 |
1718288dfcd546e400ede357b9e22149
|
|
| BLAKE2b-256 |
104d8237afeb89e81206197cfb266edc076f665ab17d90a96fb6c98f920444fa
|
File details
Details for the file pmlst_ssi-2.1.0-py3-none-any.whl.
File metadata
- Download URL: pmlst_ssi-2.1.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4745f0fecc31b7ee2859778573bcb1425c066b9c85f3377f65d53c45441bbb55
|
|
| MD5 |
932a7eff69045f947f3d9cfa777aeb80
|
|
| BLAKE2b-256 |
604b9c49c7fe87c4bee7bfb0333b9774f7007c35f2e7fc7247afef0920605ff6
|