Skip to main content

Serovar detector

Actinobacillus pleuropneumoniae causes severe respiratory illness in production pigs and piglets. One major task in the prohobition of spread as well as treatment, is to identify the composition of capsule genes. These capsule genes can in combination be used too provide servariant typing of A. pleuropneumoniae.

This repository provides a pipeline for detecting capsule genes and dessiminate serovar from combination of present genes.

Setup

Requirements

  • snakemake >= 8.+
  • conda >= 24.7.1

I recommend creating a single Conda environment containing the latest versions of the required software

Installation

  1. (Recommendation) Use Micromamba or the like to set up an environment with the above requirement.
  2. Clone repository to desired location (e.g. ~/repos)
git clone https://github.com/KasperThystrup/serovar_detector.git ~/repos/serovar_detector

Usage

Quick start

Assuming that you have navigated into the repository folder (e.g. ~/repos/serovar_detector) and are executing the command from an conda environment with installed requirements.

python serovar_detector.py -r /path/to/input/reads -a /path/to/input/assemblies -D db/Actinobacillus_pleuropneumoniae -o /path/to/output/serovar_detector/ -t [nr. of threads]

Input

Serovar detector supports multiple input types in a single run, but for any given sample only expects one of the following;

  • Illumina Paired end sequencing reads
  • Genome assemblies

Output

A single tab-separated file serovars.tsv.

Options

usage: serovar_detector.py [-h] [-r --reads_dir] [-a --assembly_dir] -D
                           --database -o --outdir [-T --theshold] [-R] [-b]
                           [-B] [-k] [-t --threads] [-F] [-n] [-d]

Screen read files and assemblies for Serovar biomarker genes, in order to
preovide suggestions for isolate serovar. Currently only supporting
Actinobacillus Pleuropneumoniae.

An overview of the available options:

  -h, --help         show this help message and exit
  -r --reads_dir     Input path to reads directory
  -a --assembly_dir  Input path to assembly directory
  -D --database      Path and prefix to kmer-aligner database
  -o --outdir        Output path to Results and Temporary files directory
  -T --theshold      Cutoff threshold of match coverage and identity. Ignore
                     threshold by setting to 0 or False. (Default 98)
  -R                 Append to existing results file. (Default False)
  -b                 Update existing blacklist file with new samples. Creates
                     a blacklist file if non exists. (Default False)
  -B                 Ignore and overwrite existing blacklist file. Creates a
                     blacklist if non exists. (Default False)
  -k                 Preserve temporary files such as KMA result files.
                     (Default False)
  -t --threads       Number of threads to allocate for the pipeline. (Default
                     3)
  -F                 Force rerun of all tasks in pipeline. (Default False)
  -n                 Perform a dry run with Snakemake to see jobs but without
                     executing them. (Default False)
  -d                 Enable debug mode, stores snakemake object for inspection
                     in R. (Default False)

Citation

If you are using our tool in your analysis, please consider to cite us.

Angen Ø, Karstensen KT, Vilaró A, et al. Serotyping of Actinobacillus pleuropneumoniae based on whole genome sequencing: validation of a bioinformatic tool. Microb Genom. 2025;11(7):001434. doi:10.1099/mgen.0.001434

Download files

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

Source Distribution

serovar_detector-0.9.9.tar.gz (772.3 kB view details)

Uploaded Source

Built Distribution

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

serovar_detector-0.9.9-py3-none-any.whl (783.8 kB view details)

Uploaded Python 3

File details

Details for the file serovar_detector-0.9.9.tar.gz.

File metadata

  • Download URL: serovar_detector-0.9.9.tar.gz
  • Upload date:
  • Size: 772.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for serovar_detector-0.9.9.tar.gz
Algorithm Hash digest
SHA256 9ec4fcb1d73445e844ed3ecb4d52d074805ba8e9d6d099cab3e39224a55439f8
MD5 5425ff3de96e9f9ec5538a51ae057ce1
BLAKE2b-256 a69bf842e1f93db3cb77bc05c3d3cbd38d452f69ec4ffed7d83145ed3d2a07b8

See more details on using hashes here.

File details

Details for the file serovar_detector-0.9.9-py3-none-any.whl.

File metadata

File hashes

Hashes for serovar_detector-0.9.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c2a1b4f1bb01541100ec6ddc5e5f01f4bebf18e74e0e7ba97afa3fadb3754106
MD5 15299049f8e8427414b9ffbc399a905d
BLAKE2b-256 84e058bd37373eb2d25bec62c5f194cfb21b381784d80300a5337c191b5ebc96

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

This release

0.9.9 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page