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 schemas 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
  • Output all results to a single CSV

Planned Features for CLI

  • Specifications of multi-threading capacity
  • Session authentication for updated database schemas (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 schema 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 -lschema pubmlst_bordetella_seqdef to get the available typing schemas 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).

  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 3 output.csv. You can optionally include multiple FASTA files, and/or --exact to only retrieve exact sequence types, and/or --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.

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.4.2.tar.gz (42.0 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.4.2-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autobigs_cli-0.4.2.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for autobigs_cli-0.4.2.tar.gz
Algorithm Hash digest
SHA256 fc7bf6c604974796f5c8aae52fd9ab9924f5490f4f207a26be803217aae30c82
MD5 7310930f973e85e0438c183f73be515f
BLAKE2b-256 37767cbc445653df44b1f0fff0521af1cd7e64138d17f281aaf5f128bc56a9ae

See more details on using hashes here.

File details

Details for the file autoBIGS.cli-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: autoBIGS.cli-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for autoBIGS.cli-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23e9f66cb213d631a86dbe6ab2004a3be27dea60a0a8050ba98fe3bccd2f38a8
MD5 0a6b7a532ba7efdf5eb0f41cafec5604
BLAKE2b-256 c5dd3f19a2c8e84bb6f44f7acbf9112b55635923bb8d41785de632191e094816

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