Skip to main content

Scripts to type and compare assemblies based off of Enterobase schemes

Project description

Build Status PyPI version

EnteroTyper

This is a set of scripts to type assemblies according to schemes retrieved from Enterobase.

Enterobase databases can be manually retrieved with EnterobasePull. Database files retrieved from Enterobase can be automatically formatted via makeblastdb by the typer script.

Requirements

  • Python >= 3.6
  • ncbi-blast+ (makeblastdb and blastn must be in your $PATH)
  • MUSCLE (muscle must be in your $PATH)

Installation

pip install EnteroTyper

Usage

Calling EnteroTyper

Usage: enterotyper [OPTIONS] COMMAND [ARGS]...

  EnteroTyper is a suite of tools to type and evaluate assemblies with
  Enterobase typing schemes.

Options:
  --help  Show this message and exit.

Commands:
  bulk         Runs typer on many samples simultaneously
  compare      Compares sequence types across samples processed by typer
  concatenate  Concatenate sequences from report files generated by typer
  typer        Types an assembly based on a given Enterobase scheme

Single-sample Usage

Usage: enterotyper typer [OPTIONS]

  Types an assembly based on an Enterobase scheme

Options:
  -i, --input_assembly PATH  Path to input assembly in FASTA format
                             [required]
  -db, --database PATH       Path to your MLST database  [required]
  -o, --outdir PATH         Root directory to store all output files
                             [required]
  --create_db                Set this flag to create the blastDB files using
                             makeblastdb in the specified database
                             directory.Will re-create the database files if
                             they are already present.
  -v, --verbose              Set this flag to enable more verbose logging.
  --version                  Specify this flag to print the version and exit.
  --help                     Show this message and exit.

Multi-sample Usage

Usage: enterotyper bulk [OPTIONS]

  Runs typer on many samples simultaneously

Options:
  -i, --input_dir PATH  Path to directory containing FASTA assemblies
                        [required]
  -db, --database PATH  Path to your MLST database  [required]
  -o, --outdir PATH    Root directory to store all output files  [required]
  --create_db           Set this flag to create the blastDB files using
                        makeblastdb in the specified database directory.Will
                        re-create the database files if they are already
                        present.
  -v, --verbose         Set this flag to enable more verbose logging.
  --version             Specify this flag to print the version and exit.
  --help                Show this message and exit.

Sequence Concatenation

Usage: enterotyper concatenate [OPTIONS] [TARGETS]...

  Takes a list of target *.BLASTn_Detailed_Report.tsv files, followed by
  several options. Extracts sequences from the BLASTn report files as FASTA
  files, aligns them all with MUSCLE, and then concatenates all sequences
  into a single FASTA.

Options:
  -o, --outdir PATH     Root directory to store all output files  [required]
  -db, --database PATH  Path to your MLST database  [required]
  -v, --verbose         Set this flag to enable more verbose logging.
  --help                Show this message and exit.

Sequence Comparison

Usage: enterotyper compare [OPTIONS] [TARGETS]...

  Takes a list of target *.cgMLST_Allele_Report.tsv files as input.
  Number of mismatches will be indicated in output files -
  a zero means no mismatches between types.

Options:
  -o, --outdir PATH  Root directory to store all output files  [required]
  -v, --verbose       Set this flag to enable more verbose logging.
  --help              Show this message and exit.

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

EnteroTyper-0.1.7.tar.gz (14.3 kB view details)

Uploaded Source

File details

Details for the file EnteroTyper-0.1.7.tar.gz.

File metadata

  • Download URL: EnteroTyper-0.1.7.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for EnteroTyper-0.1.7.tar.gz
Algorithm Hash digest
SHA256 e5d8217e79d73aeab38c1a3026b45ccb3a5b7ac734a94d33f57d6fd9d5d7677e
MD5 e81f8ebd19127e1564f5bb397c70b824
BLAKE2b-256 d55abd6b8a0e7df1c0ca8379701b5aba8404439e0f420ab1a88ef8a6064ee0e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page