Skip to main content

A CLI tool to rapidly fetch fetch MLST profiles given sequences for various diseases.

Project description

autoBIGS.cli

A command-line interface (CLI) based program that allows quickly batched requests for obtaining MLST profiles on multiple FASTA sequences and exporting it as a convenient CSV. Capable of querying a variety of MLST databases from both Institut Pasteur and PubMLST.

This program is simply a command-line interface for autoBIGS.engine.

Features

This CLI is capable of exactly what autoBIGS.engine is capable of:

  • Import multiple whole genome FASTA files
  • Fetch the available BIGSdb databases that is currently live and available
  • Fetch the available BIGSdb database schemes for a given MLST database
  • Retrieve exact/non-exact MLST allele variant IDs based off a sequence
  • Retrieve MLST sequence type IDs based off a sequence
  • Inexact matches are annotated with an asterisk (*)
  • Output all results to a single CSV

Planned Features for CLI

  • Specifications of multi-threading capacity
  • Session authentication for updated database schemes (as required by both PubMLST and Institut Pasteur)

Please refer to autoBIGS.engine for more planned features.

Usage

This CLI can be installed with pip. Please ensure pip is installed. Then:

  1. Run pip install autoBIGS-cli to install the latest version of the CLI for autoBIGS.

  2. Once installation is complete, run autoBIGS --version to test that the installation succeeded (and that you are running the appropriate version).

  3. Run autoBIGS -h to get information on how to get started.

Example

Let's say you have a fasta called seq.fasta which contains several sequences. You know all sequences in seq.fasta are Bordetella pertussis sequences, and you know you have the sequences for the necessary targets of your scheme in each of them. You want to retrieve MLST profiles for all of them. This can be done by:

  1. Running autoBIGS info -l to list all available seqdef databases and find the database associated with Bordetella (you should see one called pubmlst_bordetella_seqdef).

  2. Then, run autoBIGS info -lschemes pubmlst_bordetella_seqdef to get the available typing schemes and their associated IDs. In this example, let's assume we want a normal MLST scheme. In this case, we would pay attention to the number next to MLST (it should be 3). Alternatively, we can look at the name of the schemes and use those too (in this case, it is simply MLST).

  3. Then, run autoBIGS st -h and familiarize yourself with the parameters needed for sequence typing.

  4. Namely, you should find that you will need to run autoBIGS st seq.fasta pubmlst_bordetella_seqdef -sid 3 output.csv (alternatively, -sid 3 may be replaced with -sn MLST). You can optionally include multiple FASTA files, and --stop-on-fail to stop typing if one of your sequences fail to retrieve any type.

  5. Sit tight, and wait. The output.csv will contain your results once completed.

Versioning

the autoBIGS project follows semantic versioning where the three numbers may be interpreted as MAJOR.MINOR.PATCH.

Note regarding major version 0 (spec item 4), the following adaptation of semantic versioning definition is as follows:

  1. Given x.Y.z, Y is only incremented when a backwards incompatible change is made.

  2. Given x.y.Z, Z is only incremented when a backwards compatible change is made.

Versions of autoBIGS items with a major version number of 0 will introduce numerous changes and patches. As such, changes between such versions should be considered highly variable.

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

autobigs_cli-0.6.3.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

autobigs_cli-0.6.3-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file autobigs_cli-0.6.3.tar.gz.

File metadata

  • Download URL: autobigs_cli-0.6.3.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for autobigs_cli-0.6.3.tar.gz
Algorithm Hash digest
SHA256 bb8d18fcd440912858d9020b09a2a2c1a815646c1aa25ba62b974f4349c95247
MD5 e19415bc4f2536fb7084115d58bb898b
BLAKE2b-256 2bb348ec72248530021c7c841e75289ea8cca5040a964ab7e936393aa1c71412

See more details on using hashes here.

File details

Details for the file autobigs_cli-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: autobigs_cli-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for autobigs_cli-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e10ea63b85f164a86af6266059d4d4d0ee184f83876e720991621f492a7655b5
MD5 34cf5c281c5f1a84c043dcfccaaf4c61
BLAKE2b-256 4ea715576e438465d0978fbe0fe1ee13c5eb12ce88fc34f4673fdd28f5adda8e

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