Skip to main content

Fast ESKAPE bacterial genome classifier using k-mer profiles

Project description

BaClasT -- Bacterial Classification Tool

Fast classification of assembled bacterial genomes into ESKAPE pathogen species using k-mer frequency profiling.

Install

uv add baclast

CLI

baclast --predict genome.fna
baclast --predict genomes/ -o results.csv

Python

import src.classifier as baclast

baclast.predict(file="genome.fna")
baclast.to_csv(baclast.predict(file="genome.fna"), "results.csv")

What it classifies

ESKAPE pathogens (E. faecium, S. aureus, K. pneumoniae, A. baumannii, P. aeruginosa, E. cloacae) plus an "Other" class for non-ESKAPE bacteria. Includes centroid-based out-of-distribution detection.

How it works

Computes 4-mer frequency profiles (256 features) from genome assemblies and classifies with a Random Forest. A bundled pre-trained model is included -- no training data or setup required.

Requirements

Python >= 3.12, biopython, scikit-learn, joblib, numpy.

License

MIT

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

baclast-0.1.1.tar.gz (208.4 kB view details)

Uploaded Source

Built Distribution

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

baclast-0.1.1-py3-none-any.whl (213.4 kB view details)

Uploaded Python 3

File details

Details for the file baclast-0.1.1.tar.gz.

File metadata

  • Download URL: baclast-0.1.1.tar.gz
  • Upload date:
  • Size: 208.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.16

File hashes

Hashes for baclast-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7a55a8e11b874aabc0b5110ff6458bbe800b4d248b70c81d53bc428df76d706b
MD5 225516cc0976fb681e045ac56a4c9515
BLAKE2b-256 00e445755117fa20c109e81cfe2972a2aa60cccb3da7cff475409ca36367d660

See more details on using hashes here.

File details

Details for the file baclast-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: baclast-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 213.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.16

File hashes

Hashes for baclast-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98c01399df31d30aa0ea854ce82434dbc76d42c1b099a9d279a9089ff5ea550d
MD5 00091b5e8bf01c2c9b950eb132b409c8
BLAKE2b-256 3636f1187885a3a8d2389b7f3b5412179c1836c00161046c7ef3a07588bcffc2

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